Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriorDayOHLC

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

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

    Leave a comment:


  • trade.ripper
    replied
    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];}, 1PriorDayOHLC().Bars.Count); 
    Print(
    "   Low @ Bar: " +  LowBar.ToString() + " At: " Time[LowBar]);
    Print(
    "   Low: " +  PriorDayOHLC().PriorLow[0].ToString()); 
    Any idea of whats wrong?

    thanks

    Leave a comment:


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

    Leave a comment:


  • trade.ripper
    started a topic PriorDayOHLC

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by fmcap, Today, 10:49 PM
0 responses
2 views
0 likes
Last Post fmcap
by fmcap
 
Started by iradielt, Today, 10:06 PM
0 responses
2 views
0 likes
Last Post iradielt  
Started by gbajaj, Today, 03:35 PM
2 responses
11 views
0 likes
Last Post gbajaj
by gbajaj
 
Started by space_trader, Today, 03:19 PM
2 responses
8 views
0 likes
Last Post space_trader  
Started by max1ci6, Today, 02:02 AM
4 responses
28 views
0 likes
Last Post joromero  
Working...
X