Forum

Order Count Issue

The following function works fine if I only get signalBuy or signalSell, if I have position opened in both buy and sell the (the Ea will allow multiple buy and one sell, and viceversa) the order count and order lot go wrong as shown below the code: void GetOrders( int anActionCode1, int

Problem With Back testing

Hello all expert coders, I wrote an ea to move away from spending countless hours on the monitors. I am doing some back testing but whenever I run a back test i get the following error: Warning : Can not execute new OP_SELL order for Symbol EURUSD. Maximum number of 1 open positions reached. Now the

MetaTester Issue

Hello, I am using mt4 to develop an EA, i am a bit of a new bee with mql4, but I am not new to scripting and debugging. Now I would like to test my EA on H1 period, but for whatever reason the tester keeps using only the M1 data, or at least so it appears in the bar at the bottom of the tester. I

RSI open order at end time frame

Hello all, first of all i am pretty new at EA coding, second I have looked for a related post in the forum itself and on mighty google, even on stackoverflow. Now I wrote a simple EA to open an order if certain conditions are met, one of which is double RSI_1 =