Forum

Problem on equation as additional condition

Hi all, I'm having problem on the equation which will be one of the condition to my code. As you can see on my code below. I was trying to used counter "n" as a condition to my code. "n" can be n=n+3, n=n+2 and n=n-1 depend on the condition as below. But this equation seem not work at all. Please

Formula Problem

Hi Guys, Need help on my EA code, currently I'm trying to define the condition using counter formula, so each time the counter increase or decrease would be my extra condition to perform. But somehow this counter not work. Can someone please help me to solve this problem. Thanks

Check 2 or more order closed at the same time.

Hi Guys, I'm new in mt4 code, i have the issue on the loop. I'm using MODE_HISTORY on the OrderSelect() to find the close order. My EA will run 2 order at 1 time. each time the order is closed. It will check the condition of the closed order and open the new order. Sometime, the EA will have 2

Define Order Status Problem

Hi all, Can anyone can correct my code, i'm having problem on selecting order to define their status.. Really appreciate. Thanks extern double StopLoss = 200; // StopLoss extern double TakeProfit = 100; //Takeprofit extern double LotSize = 0.1; //LotSize extern int Slippage = 3; int

One order in a time

hi everyone, I have problem with my code, How to make this open sell code only open one order at a time until it close by hit TP or SL then will continue to open another order. Thanks. extern double StopLoss = 200; // StopLoss extern double TakeProfit = 100; //Takeprofit extern double LotSize

Open Buy Code issue.

Dear All, I'm very new in here. I have read a few things about EA code and very interested to learn. I have background in C++, however there a lot of things new in here. For the first time, i try to create my first code with the basic open buy order as below. But this code is not working. can anyone