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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        32 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        286 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        283 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        133 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        91 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X