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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        319 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X