Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems enabling strategy

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

    Problems enabling strategy

    Hello,

    I created a strategy, I was able to load it and test it in playback mode. Later I wanted to change some parameters, I removed and put the strategy back but it is no longer enabled. It stays with the written in the chart (D) Name strategy and in the output I don’t see the written enabling strategy. What could be the problem?

    Thank you

    #2
    Hello angelvincent37

    When adding a Strategy onto a chart, don't forget to check the checkbox "Enabled" to activate the Strategy.

    Comment


      #3
      Hello KonstantinosNT
      I created various strategies and I know that I must check the "Enabled" checkbox, thank you but this isn't the problem
      Last edited by angelvincent37; 03-14-2023, 07:38 AM.

      Comment


        #4
        I think I found the problem: I use
        AddVolumetric("ES 03-23", BarsPeriodType.Tick, 1, VolumetricDeltaType.BidAsk, 1, true);
        commenting on this I have no problems, if I comment all the strategy except this line I have problems. How can I solve this problem? I noticed that using 1-tick volumetric bars is very heavy for strategy, ninja platform and CPU.​
        Last edited by angelvincent37; 03-14-2023, 09:40 AM.

        Comment


          #5
          Hi angelvincent, Please first check the Log tab of the Control Center for any errors. There is likely a null reference exception due to this AddVolumetric call. I have an example here on how to use AddVolumetric in your script:



          Kind regards,
          -ChrisL​

          Comment


            #6
            Hi CrisL,
            In the Log Tab there is no error... I used the add volumetric in many strategies and I've never had this kind of problem. Inside the code, in the OnBar I use this control to avoid problems:

            if (Bars == null) {
            return;
            }

            NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe volumetricBarsType = Bars.BarsSeries.BarsType as NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;

            if (volumetricBarsType == null)
            {
            Print("volumetric bars == null");
            return;
            }

            Should I use other control?

            Comment


              #7
              Hi, Please see post number 5 on the link I provided in my last post. It has an example of how to set up AddVolumetric for data access in OnBarUpdate.

              Kind regards,
              -ChrisL​
              Last edited by NinjaTrader_ChrisL; 03-15-2023, 11:39 AM.

              Comment


                #8
                Hi Chris L,
                I've seen the post you are talking about and I followed exactly the procedure described but the problem persists.

                Comment


                  #9
                  Hi, There is an example for download here for a reference sample:
                  This indicator will provide the volumetric Bar statistics in a hidden plot form. The main purpose is to provide (through 21 plots) the bar statistics values to the Strategy Builder and/or Chart alerts, and/or the Market analyzer without the need to program. You can also use in a Ninjascript indicator or strategy. The 21 plots […]


                  Please test out this one and if it does print data and function correctly, compare this code to your script and that should solve the issue.

                  Kind regards,
                  -ChrisL

                  Comment


                    #10
                    Hi Chris,

                    The Volumetric Data that you provided works well and for what I can see I use the same functions. the only difference is that what you provide is an indicator and i'm using a strategy so in the State.Configure I use the method AddVOlumetric() with the right parameters. Unfortunately I still have problems. For what I can see I have big isses when I try to load little bars as volumetric 1 tick bars ( playback stops immidiately after the begin ) instead when I load, for example, volumetric bars 150 tick playback goes with no problem. What I can do? Is a my pc problem, a platform problem? the porpouse of my strategy is to analize ask and bid volume in 1 tick bars and to control if theese bars are created in less than 0,5 second. I don't know if this could be usefull for you.

                    Thank you very much

                    Comment


                      #11
                      Hi, I just tried this by loading a 1 tick series on the chart with no historical bars and it seems that it get exponentially worse as you go down in ticks. e.g. a 1000-tick volumetric chart loads fast, 100 is slower, 10 is worse, and so on. I will need some time to ask our development team about this performance issue.

                      Comment


                        #12
                        Hi Chris,
                        I imagined that there was some such problem, I just didn’t understand if it could be due to the performance of my pc or platform. I hope that these problems can be resolved. I hope you can keep me updated if there are any changes, because at the current state of things I have to abandon this kind of strategy. Thank you very much for your support

                        Comment


                          #13
                          Hello Chris, do you have any update?

                          Comment


                            #14
                            Hello angelvincent37,

                            This issue is being tracked with ID # NT-1524.

                            There is no update at this time. We will update this thread with new information as this becomes available.
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              Thank you NinjaTrader_ChelseaB

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              105 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              52 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              34 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              38 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              74 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X