I'm currently retrieving the highest and lowest price based on Bars.High.Highest and Bars.Low.Lowest. Are there any method/functions that allow me to retrieve the Highest and Lowest price with time instead of barsback?
Code: Select all
TimeSpan barTime = Bars.TimeValue.TimeOfDay;
if (barTime == MyTime) {
IsCancelTimeTriggered = false;
HighPrice = Bars.High.Highest(3);
LowPrice = Bars.Low.Lowest(3);
}
Cheers.
Victor