Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 WHICKED, Today, 12:56 PM
        0 responses
        2 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Spiderbird, Today, 12:15 PM
        2 responses
        10 views
        0 likes
        Last Post Spiderbird  
        Started by WHICKED, Today, 12:45 PM
        0 responses
        7 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by FrazMann, Today, 11:21 AM
        2 responses
        6 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        80 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Working...
        X