Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriorDayOHLC

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

    PriorDayOHLC

    Hi!

    Does anyone know if there is a way to get the bar number or bar times from the PriorDayOHLC.PriorHigh[0] or PriorDayOHLC.PriorLow[0] or PriorDayOHLC.PriorClose[0]?

    thanks

    #2
    trade.ripper, I believe you could attempt getting them with the LRO method - http://www.ninjatrader-support.com/H...urenceLRO.html

    Comment


      #3
      It sure would be nice if we could just call this..

      PriorDayOHLC().PriorHigh[0].Time[0]

      and it would return the time that the prior high happened.

      It appears that theres something wrong with my logic. I am getting a -1 for the value of the Low bar.

      PHP Code:
      int LowBar = LRO(delegate {return Low[0]==PriorDayOHLC().PriorLow[0];}, 1, PriorDayOHLC().Bars.Count); 
      Print("   Low @ Bar: " +  LowBar.ToString() + " At: " + Time[LowBar]);
      Print("   Low: " +  PriorDayOHLC().PriorLow[0].ToString()); 
      
      Any idea of whats wrong?

      thanks

      Comment


        #4
        Thanks for the suggestion, the -1 would returned would mean the condition did not evaluate to 'true'. Is your lookback high enough?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X