Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Wizard BarsAgo problem

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

    Wizard BarsAgo problem

    hi
    I`m new at Ninjascript and trying to develope an Ichimoku based strategy by using the wizard.

    My problem is that I can`t compare the actual price value and the value generated 26 bars ago by the ichimoku indicator. I`ve seen the "bars ago" option in the indicator, but when i modify that value the strategy stops working. After finishing the wizard correctly I run it on the chart, set the enabled value to true and it automatically turns false.

    Any tip?

    Thanks in advance

    #2
    Hello Altarok,

    Welcome to the NinjaTrader Support Forums!

    Do you see any errors inside of your Log tab inside of your NinjaTrader Control Center?

    My guess is that you are trying to access a bar that does not exist yet since you are trying to get a value 26 bars ago.
    JCNinjaTrader Customer Service

    Comment


      #3
      thanks for your quick answer.
      I checked the log and you were right, I was trying to get data from a bar no longer existing.
      The limit for "barsAgo" is actually 20. I`ve noticed that there`s a parameter in al strategies named "Min Bars Required".

      Are those parameters related? If so, how can I modify this parameters?

      Is there any other way to increase this 20 limit'


      Thanks in advance

      Comment


        #4
        Hello Altarok,

        Yes, you may want to change the "Min bars required" in your Strategy Parameters to 26 since you need at least 26 bars for NinjaTrader to access and try to enable your Strategy again.

        Let me know if that works for you.
        JCNinjaTrader Customer Service

        Comment


          #5
          It worked!

          Thank you very much JC

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          44 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          20 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          179 views
          0 likes
          Last Post jeronymite  
          Started by ghoul, Today, 06:02 PM
          0 responses
          10 views
          0 likes
          Last Post ghoul
          by ghoul
           
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Working...
          X