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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        29 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        15 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        18 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X