Extracting Ask High and Ask Low Information of Previous Candles

 

Greetings all,


Do you know of a any way to extract Ask High and Ask Low Information of previous daily candles in MQL5? 


I have tried the following two methods:

1- Using Mqlrates to extract spread data and deduce Ask High and Ask Low accordingly. However, it seems that Mqlrates only stores the highest spread for each candle.

2- Using SymbolInfoInteger. However, this only shows most recent tick data, and not that of the previous candle. 


Thank you. 

 
ktkorbane: Do you know of a any way to extract Ask High and Ask Low Information of previous daily candles in MQL5? I have tried the following two methods: 1- Using Mqlrates to extract spread data and deduce Ask High and Ask Low accordingly. However, it seems that Mqlrates only stores the highest spread for each candle. 2- Using SymbolInfoInteger. However, this only shows most recent tick data, and not that of the previous candle. 

Use CopyTicks or CopyTicksRange to obtain the tick data for the time period of a particular bar and process the data to obtain the highest and lowest ask price quotes for that period.

EDIT: Please note that this can be very CPU intensive, so after processing the bar's tick data, keep a cached buffer of the results, so that you don't have to reprocess them.