• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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 GMiller64, Today, 01:13 PM
      3 responses
      7 views
      0 likes
      Last Post GMiller64  
      Started by itrader46, Today, 12:51 PM
      4 responses
      33 views
      0 likes
      Last Post itrader46  
      Started by hemlock, Today, 11:45 AM
      3 responses
      9 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by gbulle, Today, 11:31 AM
      2 responses
      8 views
      0 likes
      Last Post gbulle
      by gbulle
       
      Started by JPPoulin, Today, 10:43 AM
      6 responses
      25 views
      0 likes
      Last Post JPPoulin  
      Working...
      X