Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

not enough bars for strategy

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

    not enough bars for strategy

    if i use a very long oscillator like 500 period stochastic on a chart it will not plot correctly until i set "maximum bars loopback" to "infinite". now if i want to use the same 500 period oscillator in a strategy, i can't figure out how to set this parameter in the condition builder (in the strategy wizard) and my strategy doesn't work.

    #2
    Hello tubular2000,

    Thank you for your post.

    When enabling the strategy on your chart or the Strategies tab you will have a MaximumBarsLookBack option in the Strategy settings, this is where you will set this property.

    For information on using NinjaScript Strategies and their settings please visit the following link: http://www.ninjatrader.com/support/h...strategies.htm

    Please let me know if you have any questions.

    Comment


      #3
      Originally posted by tubular2000 View Post
      if i use a very long oscillator like 500 period stochastic on a chart it will not plot correctly until i set "maximum bars loopback" to "infinite". now if i want to use the same 500 period oscillator in a strategy, i can't figure out how to set this parameter in the condition builder (in the strategy wizard) and my strategy doesn't work.
      Code:
      protected override void Initialize() 
      {
              MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      84 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      66 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      58 views
      0 likes
      Last Post CarlTrading  
      Working...
      X