Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Looking for PeriodType on a Custom Datatype

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

    Looking for PeriodType on a Custom Datatype

    Hello,

    I purchased a custom datatype, called the BWTPrecisionRenko. When I open a chart and choose "DataSeries", I can choose the type, "BWTPrecisionRenko" with no problem. I also have to choose a brick size and a reversal percentage.

    I want to use the Add() statement, in a strategy to test a multi brick size strategy.

    I want to run the strategy against a BWTPrecisionRenko - 3 Tick, 125% datatype, as the primary and use the Add() to add the secondary object BWTPrecisionRenko - 9 tick, 125%.

    My problem is that in the ..\Ninjatrader 7\bin\Custom directory all I see is the dll, "BWTPrecisionRenko.dll".

    So I can't look in it to see what the proper periodType is. I've tried Custom0 - Custom9, Final1 - Final4, and BWTPrecisionRenko as a PeriodType. NT is not taking it.

    Is there any way to find out what the proper syntax for the Add() statement is? What periodType does NT see the BWTPrecisionRenko datatype as?
    Attached Files

    #2
    In the Custom directory, can you find the period type in question in the file "@BarsTypes.cs"?

    Comment


      #3
      Radical. Thanks for the response, but I don't see anything about that custom datatype in @BarsTypes.cs.

      Comment


        #4
        Unfortunately the Add() method will not support custom bar types.
        MatthewNinjaTrader Product Management

        Comment


          #5
          I've used Add() on custom bar types, in the past. The difference was I had access to the customBarType.cs file, so I could look in it and see what periodType was coded.

          I'm currently using the Add() method with other custom bar types.

          Comment


            #6
            Yes, it is possible but we have not designed it to look for these bar types. We'll leave this thread open in hopes another community member can help you.
            MatthewNinjaTrader Product Management

            Comment


              #7
              That sounds like a good idea for the wishlist. Considering the number of 3rd party developers you support. I'm sure more than a few of them are creating custom datatypes.

              What about supporting these datatypes by having NT automatically look for, and display the periodType that's being used by the custom datatype?

              Comment


                #8
                to take it up a notch, i suggest you enable developers to add custom barstypes the way you allow developers to add new indicators.

                as was mentioned above, you can add custom bars type with the Add() method provided you know which PeriodType the developer used.

                there is a thread over at BMT (unofficial) to track which values are used:


                cheers,
                -e

                Comment


                  #9
                  I agree with e-man.

                  In the world of day trading, the standard datatypes, (minute, ticks, volume, range, etc.) are not really that useful.

                  My strategies were not generating consistent profits using them. But when I switched to some custom datatypes, things changed for the better. $$$$

                  So, supporting developers effort to create custom datatypes is a great idea.

                  Comment


                    #10
                    Hello rcsingleton,
                    You can build custom bar types in NinjaTrader though we do not officially provide support for it. Please refer to the @BarsType.cs file in the folder <My Documents>\NinjaTrader 7\bin\Custom\Type\ to get more idea on it.
                    JoydeepNinjaTrader Customer Service

                    Comment


                      #11
                      Thank you for providing your feedback as we continually strive to improve upon NinjaTrader's features. Your suggestion has been placed into our system with ID# 1969.
                      MatthewNinjaTrader Product Management

                      Comment


                        #12
                        Removal of Data Series&gt;Period&gt;Type

                        How do I remove some custom data series period types . . .

                        I have gone to MyDocs>NT7>bin>custom>type and do not find them listed . . . I am trying to install a new bar type and am not able to do it . . . so I am assuming that all of the "Custom0-Custom9" slots are filled and my new period type is being rejected . . .

                        also, how would I open this file . . . @BarsType.cs . . . ?

                        I am not a geek so I need a simple solution to my problem ! ! !

                        thx, rick

                        Comment


                          #13
                          Custom0-Custom9 and Final0-Final4 are the available values.

                          if you don't already have a favorite text editor, notepad++ is free and will color-code the c# in a .cs file.

                          if you do a search on that directory for "PeriodType.Custom" or "PeriodType.Final" that could bring you to the references for the custom barstype you currently have installed.

                          cheers,
                          -e

                          edit: should be Final4 not Final9
                          Last edited by e-man; 09-16-2012, 01:27 PM. Reason: edit: should be Final4 not Final9

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by sjsj2732, Yesterday, 04:31 AM
                          0 responses
                          32 views
                          0 likes
                          Last Post sjsj2732  
                          Started by NullPointStrategies, 03-13-2026, 05:17 AM
                          0 responses
                          286 views
                          0 likes
                          Last Post NullPointStrategies  
                          Started by argusthome, 03-08-2026, 10:06 AM
                          0 responses
                          283 views
                          0 likes
                          Last Post argusthome  
                          Started by NabilKhattabi, 03-06-2026, 11:18 AM
                          0 responses
                          133 views
                          1 like
                          Last Post NabilKhattabi  
                          Started by Deep42, 03-06-2026, 12:28 AM
                          0 responses
                          91 views
                          0 likes
                          Last Post Deep42
                          by Deep42
                           
                          Working...
                          X