Lot Settings
TP:0.001
SL:0.0005
Lotmiktari0:0.1
Lotmiktari1:0.2
Lotmiktari2:0.4
Lotmiktari3:0.8
Lotmiktari4:1.6
Lotmiktari5:3.2
Lotmiktari6:6.4 ETC.
......
if(LotSirasi==26){LotMiktari=LotMiktari26;}[/CODE]
followed by the following code. Make sure to delete those duplicates at the end of the EA.
[CODE]
if(Process=="AlisAc")
{
PozisyonAc(Symbol(),OP_BUY,LotMiktari,MagicNumber, 1, "L1Buy_1");
Process="Yok";
}
if(Process=="SatisAc")
{
PozisyonAc(Symbol(),OP_SELL,LotMiktari,MagicNumber, 1, "L1Sell_1");
Process="Yok";
}this should work.
how long have you tried out this strategy? any statements to show? like half a year? i have tried something similar but martingale strategies dont really work well for smallish account.
hi,
sorry but i am not a coder. may be anyone in the forum can do that?
best regards,
james
What is your advice_
erkansam
Since you are not using stop loss or take profit, the thing you have to check is your closing logic. Your EA is opening orders as it should (as I can understand it) but conditions like this :
are probably preventing your EA to close positions (I am not sure that that line can be true in any condition). Check that and I think you will find a solution
Sorry, I must revoke what I told : this is your EA that opened and closed a bunch of positions, so it works OK. As you see it is opening multiple positions and closing them too.
What seem to be the problem is that Process variable never receives status "AlisAc" or "SatisAc" once when orders are closed. Check those
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This EA never loss.But it has got a few bug.
Bug 1-
First and second order's lots are replication.
They must be different.
For example: First order is 0.01 lot Buy
Second order is 0.02 lot Sell
But this EA First order is 0.01 lot Buy
Second order is 0.01 lot Sell
Bug 2-
İt runs only 1 TP and It stop work.It needs reload EA.
karambol_ea.mq4
Happy New Year.