EA with no trades after human intervention

 

Hello,

I use Casino111 EA, designed by Mitch99 on a demo account. You cand find it here https://www.mql5.com/en/code/9473 . I think this EA is useful and i am going to use it on a real account.

My problem is that this EA does not make any trades after i trade one or more times manually. It sounds crazy but until i traded manually, the EA had at least one trade per day. Now nothing happens.

Is this thing possible ?

Thanks in advance.

 
VinnyisFree:

My problem is that this EA does not make any trades after i trade one or more times manually. It sounds crazy but until i traded manually, the EA had at least one trade per day. Now nothing happens.

Is this thing possible ?

Yes, did you set maxOrdersPerPair to a low number ? that EA is so well written that it uses a Magic Number for the trades it places but doesn't bother to check for the Magic Number when looking for it's own trades, so it sees the trades you have placed manually . . . oh, and if an OrderSend fails it doesn't tell you why it just sleeps for 30 seconds and then carries on regardless . . . oh yes, and if your Broker is an ECN Broker the EA won't place any orders at all . . . finally, it doesn't distinguish between 4 and 5 Digit brokers.
 
RaptorUK:
Yes, did you set maxOrdersPerPair to a low number ? that EA is so well written that it uses a Magic Number for the trades it places but doesn't bother to check for the Magic Number when looking for it's own trades, so it sees the trades you have placed manually . . . oh, and if an OrderSend fails it doesn't tell you why it just sleeps for 30 seconds and then carries on regardless . . . oh yes, and if your Broker is an ECN Broker the EA won't place any orders at all . . . finally, it doesn't distinguish between 4 and 5 Digit brokers.


Thanks for the hints.
Settings are default. MaxOrdersPerPair is set to 999 lots 0.1 maxlot 4.0 risk 0.01 I do not use an ECN Broker and also 4 digit.

Is there a way to solve this ?

 
VinnyisFree:


Thanks for the hints.
Settings are default. MaxOrdersPerPair is set to 999 lots 0.1 maxlot 4.0 risk 0.01 I do not use an ECN Broker and also 4 digit.

Is there a way to solve this ?

Yep, fix the broken code, it's not hard.
 
RaptorUK:
.....and if your Broker is an ECN Broker the EA won't place any orders at all . . .

why ?
 
joshatt:

why ?

Hi joshatt,

Coz, when we send order in ECN, we send it first without Take Profit and Stop Loss level and if the order is opened successfully we can modify by adding Take Profit and Stop Loss. Casino111 was not designed for ECN in the first place.

:D

 
onewithzachy:

Hi joshatt,

Coz, when we send order in ECN, we send it first without Take Profit and Stop Loss level and if the order is opened successfully we can modify by adding Take Profit and Stop Loss. Casino111 was not designed for ECN in the first place.

:D



My broker is Alparifs ECN :( "Casino111 was not designed for ECN in the first place."

Is there a possibility to use this EA without changing to a non ENC broker ?

 
VinnyisFree:


My broker is Alparifs ECN :( "Casino111 was not designed for ECN in the first place."

Is there a possibility to use this EA without changing to a non ENC broker ?

Hi VinnyisFree,

That must be a typo. Did you meant " use this EA without changing to a non ENC ECN broker ?". Well the answer is yes maybe (I haven't study the EA yet), by not using Take Profit and Stop Loss and manually add them later by hand. You wanna risk that ?.

:D

 
onewithzachy:

Hi VinnyisFree,

That must be a typo. Did you meant " use this EA without changing to a non ENC ECN broker ?". Well the answer is yes maybe (I haven't study the EA yet), by not using Take Profit and Stop Loss and manually add them later by hand. You wanna risk that ?.

:D



To review, the code has to be modified so that:

- Magic Number: to take into account other trades than those placed by itself;

- not placing take profit and stop loss. It will be placed afterwards (probably with another ea);

wright ? can it be done ?

Files:
casino111.mq4  5 kb
 
VinnyisFree:



To review, the code has to be modified so that:

- Magic Number: to take into account other trades than those placed by itself;

- not placing take profit and stop loss. It will be placed afterwards (probably with another ea);

wright ? can it be done ?

Of course it can be done . . . I've already said it's not difficult . . . there are many many posts in this very Forum about Magic Numbers, ECN issues and also how to handle 4/5 digit Brokers.
 
joshatt:
why ?
VinnyisFree:
My broker is Alparifs ECN :( "Casino111 was not designed for ECN in the first place."
Is there a possibility to use this EA without changing to a non ENC broker ?

Use this