Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Type support very very limited in NinjaTrader

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

    Chart Type support very very limited in NinjaTrader

    Hello,

    I wanted to add few more Chart Types into Ninjatrader. I purchased few indicators from NinjaTrader 3rd Party vendors, which provided 4 more additional Chart Types.

    Then I also have 2 Chart types like better brick size & Better Renko from bigMike.

    Now after installing the 4 Chart types of NinjaTrader 3rd Party vendors and 2 additional Chart Types of BigMike, I am surprised to see that NinjaTrader is not allowing more than 3 additional Chart types, even though I want 6 additional chart types. I have to manually go into NinjaTrader 7/ bin/ Custom/ Type and delete 3 chart types, to get other 3 chart types displayed. This is a real problem.

    Kindly let me know, the following 2 questions ( seen below).

    1- How can I add 6 Additional Chart Types (with only additional 3 being supported now)?
    2- If additional 6 Chart types are not supported by Ninjatrader, can I delete Default Chart type of NinjaTrader such as Day, Week & Month which I never use?

    I am eagerly looking forward to your response.

    Thanks & Regards,
    Mohi

    #2
    Hello Mohi,

    Thank you for your note.

    NinjaTrader can support up to 15 custom bar types.

    PeriodType.Custom0 through Custom 9
    PeriodType.Final0 through Final4.

    What may be happening is two or more custom bar types that you are importing are sharing the same custom PeriodType.

    While creating custom bar types is unsupported. If you have access to the source you can view the lines of code to see what Custom Bar Types are using the manually edit the line PeriodType.Custom# to an unused number.

    However, if these are 3rd party protected bars, you would need to contact the 3rd party developer.
    CameronNinjaTrader Customer Service

    Comment


      #3
      Thanks Cameron for the update. Based on your response, below are my 3 queries. I appreciate your feedback.

      Originally posted by NinjaTrader_Cameron View Post

      NinjaTrader can support up to 15 custom bar types.

      PeriodType.Custom0 through Custom 9
      PeriodType.Final0 through Final4.
      Where should I place the above 2 lines of code that you mentioned, for NinjaTrader to support 15 custom bar types?

      Originally posted by NinjaTrader_Cameron View Post

      What may be happening is two or more custom bar types that you are importing are sharing the same custom PeriodType.
      How can I make the custom bar types share different custom PeriodType?

      Below are the custom chart types I want to use
      1- Better Brick Style
      2- Better Renko
      3- HlcChartStyle (based on High lows of a bar)
      4- Momentum Bars (based on range of a bar)
      5- Range Harmonic Bars
      6- Renko Harmonic Bars

      Kindly advice where should I make these additional 6 chart types share different custom PeriodType? currently they are placed in <NinjaTrader 7> bin/ custom/type?

      Originally posted by NinjaTrader_Cameron View Post

      While creating custom bar types is unsupported. If you have access to the source you can view the lines of code to see what Custom Bar Types are using the manually edit the line PeriodType.Custom# to an unused number.

      However, if these are 3rd party protected bars, you would need to contact the 3rd party developer.
      How do I access the source of a bar type?
      I know how to edit an indicator via Edit NinjaScript. How do I edit the source code of a Chart Style?

      Thanks & Regards,
      Mohi

      Comment


        #4
        Mohi,

        Originally posted by mohi4u View Post
        Where should I place the above 2 lines of code that you mentioned, for NinjaTrader to support 15 custom bar types?
        Those piece of code are for each individual bar type. Each bar type has been programmed to hold one of those unique numbers. The case you are running into is that two custom bars share a number. Below is the list.
        • PeriodType.Custom0
        • PeriodType.Custom1
        • PeriodType.Custom2
        • PeriodType.Custom3
        • PeriodType.Custom4
        • PeriodType.Custom5
        • PeriodType.Custom6
        • PeriodType.Custom7
        • PeriodType.Custom8
        • PeriodType.Custom9
        • PeriodType.Final0
        • PeriodType.Final1
        • PeriodType.Final2
        • PeriodType.Final3
        • PeriodType.Final4

        Originally posted by mohi4u View Post
        How can I make the custom bar types share different custom PeriodType?
        You will want them to have different values.

        Originally posted by mohi4u View Post
        Kindly advice where should I make these additional 6 chart types share different custom PeriodType? currently they are placed in <NinjaTrader 7> bin/ custom/type?
        That is the correct folder for custom bar types, unless the custom bar type is protected by a 3rd party.


        Originally posted by mohi4u View Post
        How do I access the source of a bar type?
        I know how to edit an indicator via Edit NinjaScript. How do I edit the source code of a Chart Style?
        Because the development and editing of custom bar types is not supported by NinjaTrader. You would need to use an external compiler such as Visual Studio/ Visual C# Express to edit bar types.
        CameronNinjaTrader Customer Service

        Comment


          #5
          Thanks Cameron for the update and your kind support. Below are few more queries. I need a remote session with NinjaTrader support for the below items.

          Originally posted by NinjaTrader_Cameron View Post

          Those piece of code are for each individual bar type. Each bar type has been programmed to hold one of those unique numbers. The case you are running into is that two custom bars share a number. Below is the list.
          • PeriodType.Custom0
          • PeriodType.Custom1
          • PeriodType.Custom2
          • PeriodType.Custom3
          • PeriodType.Custom4
          • PeriodType.Custom5
          • PeriodType.Custom6
          • PeriodType.Custom7
          • PeriodType.Custom8
          • PeriodType.Custom9
          • PeriodType.Final0
          • PeriodType.Final1
          • PeriodType.Final2
          • PeriodType.Final3
          • PeriodType.Final4

          You will want them to have different values.
          Thanks. I need NinjaTrader support to help me assign different values (so that I do not screw the chart style settings if I do it myself). Can we setup a remote session on Monday (11/19) to accomplish this?

          Originally posted by NinjaTrader_Cameron View Post

          That is the correct folder for custom bar types, unless the custom bar type is protected by a 3rd party.
          The below 4 custom bar types are the ones that are not protected by 3rd party. The below 5 and 6 are protected by the 3rd party vendor from whom I purchased.

          1- Better Brick Style
          2- Better Renko
          3- HlcChartStyle (based on High lows of a bar)
          4- Momentum Bars (based on range of a bar)
          5- Range Harmonic Bars
          6- Renko Harmonic Bars

          I need a remote session from Ninjatrader support to help edit the numbers for the 4 custom bar types. Can this happen on Monday (11/19)?

          Originally posted by NinjaTrader_Cameron View Post

          Because the development and editing of custom bar types is not supported by NinjaTrader. You would need to use an external compiler such as Visual Studio/ Visual C# Express to edit bar types.
          After downloading above mentioned external compilers, I would still need NinjaTrader support to access my computer remotely. Can this remote session happen on Monday (11/19)?

          Thanks & Regards,
          Mohi

          Comment


            #6
            Mohi,

            Unfortunately creating and editing custom bar types is not something that we can support.

            We can point you in the right direction and clarify functions/methods, but we don't provide custom coding.


            Additionally, with all of these custom BarTypes you would need to contact the Developers to ensure that there is no conflict.
            CameronNinjaTrader Customer Service

            Comment


              #7
              Thanks Cameron for the update.

              Originally posted by NinjaTrader_Cameron View Post

              Because the development and editing of custom bar types is not supported by NinjaTrader. You would need to use an external compiler such as Visual Studio/ Visual C# Express to edit bar types.
              Can you kindly advise where I can download the external compiler, for development and editing of custom bar types?

              Thanks & Regards,
              Mohi

              Comment


                #8
                Mohi,

                You can use Microsoft Visual C# 2010 Express - http://www.microsoft.com/visualstudi...d-2010-express
                CameronNinjaTrader Customer Service

                Comment


                  #9
                  Enum

                  Hi,

                  I have coded a custom Range Bar ("MyRangeBar"), and would like this name to appear in the "Type" drop down list when I go to open up a chart.

                  Is there an enum I need to alter to allow this to happen?

                  Thanks,

                  Comment


                    #10
                    Hello,

                    Do you have your custom bar type in the Documents -> NinjaTrader 7 -> bin -> Custom -> Type folder?

                    Does it compile without any errors?
                    CameronNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Cameron View Post
                      Hello,

                      Do you have your custom bar type in the Documents -> NinjaTrader 7 -> bin -> Custom -> Type folder?

                      Does it compile without any errors?
                      Well actually, no. I have imported it to NinjaTrader 7/bin/Custom/Indicator/ so that I can edit it with the NT editor. But I don't think that matters; it's declared as part of the NinjaTrader.Data namespace, and adds a new public class that inherits from the BarsType class.

                      It compiles, except when I change the constructor from


                      Code:
                       
                      /// <summary>
                      /// </summary>
                      public MyRangeBarsType() : base(PeriodType.Range)
                      {
                      }
                      .... to ...

                      Code:
                       
                      /// <summary>
                      /// </summary>
                      public MyRangeBarsType() : base(PeriodType.[COLOR=red][B]MyRange[/B][/COLOR])
                      {
                      }
                      Hence my question abouting adding MyRange to the PeriodType enum.

                      Thanks.

                      Comment


                        #12
                        Custom bar types are not something we can directly support however you will need to do the following to get them to show up.

                        1. Code the bar type
                        2. Place the .cs file into (MY)Documents\NinjaTrader 7\bin\Custom\Type
                        3. Open NinjaTrader -> Compile any one of your scripts
                        4. Restart NinjaTrader
                        5. the chart type should now show up.

                        Here is an example of a custom bar type: http://www.ninjatrader.com/support/f...tid=-1&lpage=1

                        Let me know if I can further assist.
                        LanceNinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Lance View Post
                          Custom bar types are not something we can directly support however you will need to do the following to get them to show up.

                          1. Code the bar type
                          2. Place the .cs file into (MY)Documents\NinjaTrader 7\bin\Custom\Type
                          3. Open NinjaTrader -> Compile any one of your scripts
                          4. Restart NinjaTrader
                          5. the chart type should now show up.

                          Here is an example of a custom bar type: http://www.ninjatrader.com/support/f...tid=-1&lpage=1

                          Let me know if I can further assist.
                          Many thanks! Worked fine, and the example you pointed too was very helpful.

                          I changed my constructor to the following:

                          Code:
                            /// <summary>
                            /// </summary>
                            public MyRangeBarsType() : base(PeriodType.Custom6)
                            {
                            }
                          Now "Custom6" shows up in the drop down list, rather than "MyRange".

                          Can I customize this to "MyRange"?

                          Comment


                            #14
                            You can place this into your cs file

                            public override string DisplayName
                            {
                            get { return "MyRange"; }
                            }

                            Let me know if I can further assist.
                            LanceNinjaTrader Customer Service

                            Comment


                              #15
                              Many thanks!

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by r68cervera, Today, 05:29 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post r68cervera  
                              Started by geddyisodin, Today, 05:20 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post geddyisodin  
                              Started by JonesJoker, 04-22-2024, 12:23 PM
                              6 responses
                              33 views
                              0 likes
                              Last Post JonesJoker  
                              Started by GussJ, 03-04-2020, 03:11 PM
                              12 responses
                              3,239 views
                              0 likes
                              Last Post Leafcutter  
                              Started by AveryFlynn, Today, 04:57 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post AveryFlynn  
                              Working...
                              X