Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MRO in multi-timeframe

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

    MRO in multi-timeframe

    Why is MRO not yet supported in multi-timeframe strategies with a bars in progress parameter?

    Please add this as a feature request.

    Is there any work around for this? example of custom programming maybe?

    #2
    Hi motownlucas,

    I'm not aware the specific reason it can't be used in multiseries scripts. We have added your suggestion to our feedback list, assigned ID # 1061. Thank you for the suggestion.

    Yes, can custom code a solution, likely using for loops to iterate through previous bars. The following snippet is a simplified version of MRO. It also works a little differently as it starts checking conditions for the earliest bars first.
    The standard disclaimer: It's designed to get you started but has not been fully tested and NinjaTrader will not provide additional support for it.

    if (BarsInProgress == 1)
    {
    myMROValue = -1;

    for (int x = 3; x >= 0; x--)
    {
    if (Close[x] > Open[x])
    myMROValue = x;
    }
    Print(CurrentBars[1] + " " + myMROValue);
    }
    Last edited by NinjaTrader_RyanM1; 06-20-2011, 04:27 PM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ok, thanks Ryan.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      639 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      572 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X