Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
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
i'm new bee im MQL4 , in amibroker , we can easy get bars since price cross ema with built in funtion barsince (). I have been trying to do count bars in mql4 but the result's not correct. Please , to correct my code , thank you so much ><
void OnTick()
double Spread=Ask-Bid;
Comment(StringFormat("Show prices\nSpread = %G\nBar = %d",Spread,sobar));