Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MRO/LRO can't handle Input?

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

    MRO/LRO can't handle Input?

    Hello,

    I am not getting the expected results using the MRO/LRO methods when I introduce references to Input in the condition.

    Example:
    • barsAgo = LRO(delegate {return Input[0] > 50;}, 2, 10);
    • barsAgo = LRO(delegate {return RSI(14, 1)[0] > 50;}, 2, 10);
    The first one (using Input instead of RSI(14, 1)) would not produce the correct results, but the second would.

    Is this expected behaviour?

    Thanks,

    Stopped

    #2
    Hi Stopped, when you then apply the indicator then - is the input series set to the exactly same series, so RSI 14 with a smoothing of 1 and not the default 3?

    Comment


      #3
      Hi Bertrand,

      Ok, that was an example, let's not get bogged down on that one. What I would like to know is if it is possible to use Input (for more flexibility) rather than a hard coded series as references in the conditions for the MRO/LRO methods.

      Thanks,

      Stopped

      Comment


        #4
        I see generally no issue here - your condition needs to evaluate to true / false for the delegate to work, so if you reference a double value in the conditon from the Input series or other DataSeries like Close or an indicator, it should not matter.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        51 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        31 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        165 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        100 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        160 views
        2 likes
        Last Post CaptainJack  
        Working...
        X