• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Bar Type Modification

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    NT Bar Type Modification

    Hi there...

    Could you send me a copy of the NT bar type Line Break? I would like to modify it.

    Or, where can I find it in the local machine. I can not find it in the NT 7 folders.



    Greg

    #2
    Hello Greg,

    Thank you for your post.

    You will find all Bar Types in the following directory on your PC: (My) Documents\NinjaTrader 7\bin\Custom\Type > they will be in the @BarTypes.cs.

    DO NOT EDIT the @BarTypes.cs file but create a new file and use the @BarTypes.cs as a guide. There is no documentation on Custom Bar Types as this is unsupported.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      ok...thanks Patrick

      Comment


        #4
        Hello,
        I created new file and put it to: C:\Documents\NinjaTrader 7\bin\Custom\Type. But it is not on the list of the bar types in a chart... I don´t understand how to use/open @BarTypes.cs file...

        Comment


          #5
          Hello emuns,

          Thank you for your post.

          When creating custom bar types and then placing them in the directory, make sure to compile your NinjaScript files by going to Tools > Edit NinjaScript > Indicator > select any indicator > OK > then press F5 on your keyboard when the NinjaScript Editor loads, if there are no errors restart NinjaTrader.

          Once this is complete the custom bar type should appear in the DataSeries menu.
          Patrick H.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by emuns View Post
            Hello,
            I created new file and put it to: C:\Documents\NinjaTrader 7\bin\Custom\Type. But it is not on the list of the bar types in a chart... I don´t understand how to use/open @BarTypes.cs file...
            I have successfully added a bartype in an indicator, in fact it was very easy and works.

            2 problems:

            1) You still do need to restart to test any changes.
            2) Print doesn't work. (Won't compile!). But I was able to open a StreamWriter and was able to debug my code logic.

            Comment


              #7
              Hello sledge,
              my problem was caused by conflict with another bar type which I also use. However thank you for your notice.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ballboy11, Today, 11:57 AM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by swcooke, Today, 09:41 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by Catalon, Today, 10:02 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by pel11, Yesterday, 06:25 PM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by dmackay41, Today, 09:35 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_SergeyS  
              Working...
              X