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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 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
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X