Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsAgo since price

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

    BarsAgo since price

    Looking to see if there is already a simple statement allowing a price lookback. "How many bars ago since High was equal to or greater than Close[0]" I know I can do it with brute force by examining High[1] High[2] etc with a loop, but it seems a simpler statement might exist.

    #2
    You could work here with MRO / LRO and your condition for test for, it would return you an int representing the bars Ago this was true - http://www.ninjatrader-support.com/H...urenceMRO.html

    Comment


      #3
      That's looks like it should work. Will play with it tonight. Thanks. Question, it will not work in a multi-time strategy. If it is set up in a custom indicator which is called by the multi-time strategy would it work then?

      Comment


        #4
        You're welcome, yes you should be able to access this single series indicator value then from the strategy.

        Comment

        Latest Posts

        Collapse

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