Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Second instance of MRO

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

    Second instance of MRO

    Hello,
    the second instance (2) don't work on the MRO.


    I need at least 2 high's before a drawline would be drawned.

    Code:
    x = MRO(delegate {return lastClose == High[0];}, 2, maxLineLenght);
    Last edited by mate41; 12-27-2012, 10:22 AM.

    #2
    Hello mate41,
    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      It's a mistake.... my bad...
      MRO returns a true/false instead of the bar location.
      Didn't read MRO more closely....
      Thanks
      Last edited by mate41; 12-28-2012, 09:18 AM.

      Comment


        #4
        Hello mate41,
        To clarify further, MRO will return the bar location. However if the condition is not true, it will return -1 (minus one).

        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X