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 quantismo, 04-17-2024, 05:13 PM
      5 responses
      32 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by proptrade13, Today, 11:06 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      34 views
      0 likes
      Last Post love2code2trade  
      Started by cls71, Today, 04:45 AM
      2 responses
      10 views
      0 likes
      Last Post eDanny
      by eDanny
       
      Started by kulwinder73, Today, 10:31 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X