Best Reverse Martingale Karambol_EA

 

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.

Files:
karambol_ea.mq4  14 kb
lots.png  22 kb
work.png  28 kb
 

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.

 

Work

Ea's work strategy this.

This strategy not only Martingale.And you work GBPUSD.

You need 5000$+ for surety.

Can you share ready ea?

Files:
works.png  8 kb
 

Bug 1 Fixed

Bug 1 Fixed

ThanksNMSS_2

karambol_eav1.1.mq4

Files:
 

Bug 1 Fixed

Bug 1 Fixed

ThanksNMSS_2

karambol_eav1.1.mq4

 

Dear JamesBonds

Hi JamesBonds

I can't backtest because Ea complate 1 order and later stop.We need reload ea.I can't fix Bug 2

Can you help?

 

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 :

if(OrderMagicNumber()==MagicNumber || ((OrderMagicNumber()>MagicNumberBas || OrderMagicNumber()==MagicNumberBas) && (OrderMagicNumber()==MagicNumber || OrderMagicNumber()<MagicNumber)))

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

Files:
test_1.gif  60 kb