Announcement

Collapse
No announcement yet.

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 herzogvladimir2, Yesterday, 08:10 PM
          0 responses
          15 views
          0 likes
          Last Post herzogvladimir2  
          Started by giogio1, 04-13-2025, 01:42 AM
          2 responses
          40 views
          0 likes
          Last Post giogio1
          by giogio1
           
          Started by mmenigma, 01-23-2024, 09:37 AM
          1 response
          92 views
          0 likes
          Last Post Nin8aTrender  
          Started by wbayne333, 02-22-2021, 01:18 PM
          6 responses
          416 views
          0 likes
          Last Post Nin8aTrender  
          Started by gtheaded, 07-03-2020, 03:47 PM
          3 responses
          374 views
          0 likes
          Last Post Nin8aTrender  
          Working...
          X