Strategy tester bug Open = Close New comment Lou Jo 2018.04.11 06:53 Hi, I am running the code : if(TotalOpenOrders() == 0 && IsNewBar()) { double C_O = Open[0]; double C_C = Close[0]; Print("C-A"); Print(C_O); Print(C_C); } and I get Open = Close all the time! Any idea why ? Open should differ from Close ! Thanks ! Will there be a MT5 version for Mac anytime soon ? Also, will there be the MetaEditor in the MT5 web version anytime soon ? How to access all prices in a bar ? Historical spread during backtesting in the strategy tester is different from the historical spread stored in the Mql rates array. What are they? Why they are different? Alain Verleyen 2018.04.11 10:49 #1 Because it's a new bar. Lou Jo 2018.04.11 21:03 #2 Alain Verleyen: Because it's a new bar.Oh **** ! Thanks Alain ! I didn't understand the whole thing like that. I thought OnTick function gave the last bar already formed. Thanks for the clarification. It helps a lot ! Moderator: Please mind your language on this forum. Thankyou. [SOLVED] Again the dreaded Elite indicators :) Experts: Hedging_Zone_Recovery_Area New comment
Hi,
I am running the code :
and I get Open = Close all the time!
Any idea why ? Open should differ from Close !
Thanks !