Forum

How to use OnChartEvent buttons to work in Tester

Hi All, I am creating a a simple manual trader with buy and sell buttons but cannot get the buttons to work in the tester. I'm sure there is a secret to this. Anyone that can help

Order Close Error 138, any ideas?

Would appreciate the help! if(IsTrade()==false) { if(adx3_1<adx2_1 && adx3>=adx2) { int closebuyticket = OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,clrChartreuse); Print("Buy Order Closed"); } else; if((adx2<adx3 && adx2_2<adx2_1 && adx2_1<adx2)||(adx1>adx3

Why are there differences in the MT4 platform and the brokers other platforms for the OHLC and most indicators?

If all things are equal, if a broker has a web-base platform and a desktop-base platform and both of those platforms provide the exact data in every way, why then should the MT4 platform supported by that broker produce different data. OHLC and most indicators data produces different results. These