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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      59 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X