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

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?
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by alifarahani, Today, 09:40 AM
        6 responses
        38 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X