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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X