Los Angeles, CA
Posts: 14 since Sep 2015
Thanks Given: 0
Thanks Received: 3
|
I think you will need to keep a counter of how many bars into the Current Session you are. If you do that, then:
HighestBar(High, Num_Bars_Into_Current_Session) will return the number of bars ago from the Current Time the High of the Current Session occurred.
Then you need to convert from # of Bars ago to a Time but that should be doable if you are using Fixed Time Bars.
Also, HighSession(1,0) will return the High of the Current Session. But that does not get you the time you need.
Worst case you can use a For Loop to do this but I think a combination of HighestBar and LowestBar will do the trick.
Hope this helps.
integer HighestBar( double Price, double Length )
Summary:
Returns the number of bars ago the highest value occurred
Parameters:
Price:
Length:
Return Values:
integer: Returns the number of bars ago the highest value occurred
Example:
Value1=HighestBar(High, 20);
Help: HighestBar
|