To find the exact time of the high of a bar, you would have to find the highest M1 bar during the period of the higher time-frame.
If M1 is still too coarse, then you would have to scan the tick data for that M1 bar to find the highest and the respective time.
Thank you
Ok I got the highest M1 bar
Now, how can I scan the tick data to find thr exact time of highest price?
I know to get the highest price
bar_time is the time of the candle
but I need the time of the high price
First you need to check if there is ticks (Bid / Ask) available on your chart.
then choose your desired timeframe e.g. M1 or M15 or Tick e.g. 100 ticks, 500 ticks etc
then scan it same way you have posted code, change
PERIOD_W1
to your desired period.
if your chosen period is in ticks you can study
- www.mql5.com
First you need to check if there is ticks (Bid / Ask) available on your chart.
then choose your desired timeframe e.g. M1 or M15 or Tick e.g. 100 ticks, 500 ticks etc
then scan it same way you have posted code, change
to your desired period.
if your chosen period is in ticks you can study
Thank you
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I know to get the highest price
bar_time is the time of the candle
but I need the time of the high price