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 sjsj2732, 03-23-2026, 04:31 AM
        0 responses
        45 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        296 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        290 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        98 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X