no marketinfo is not available.
use MT5 if you want more.
Marco vd Heijden:
no marketinfo is not available.
use MT5 if you want more.
Is there any alternative way to find day HIGH and day LOW when doing back testing?
My broker doesn't provide MT5
yes there is.
you do a loop scan over the last 24 Bars (assuming H1 frame) with the comparison if High[bar] > is larger then daily_high {daily_high=High[bar];} to end up with the daily high.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
Could anyone please help me!
When I am doing back testing using code:
double TodayHighest = MarketInfo(Symbol(),MODE_HIGH);
Print("TodayHighest is: ",TodayHighest);
double TodayLowest = MarketInfo(Symbol(),MODE_LOW);
Print("TodayLowest is: ",TodayLowest);
All the values I got were "0.0"
But When I tried
double askprice = MarketInfo((Symbol(),MODE_ASK);
I can get a non-zero value.