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() { //--- //--- get minimum stop level