Reply

EA Wizard not coding rules!

1 replies

Adedayojoy

Subscriber, bbp_participant, community, 5 replies.

Visit profile

9 years ago #112361

My completed EA didn’t work according to the rules, so I decided to remove all rules and check what’s happening with the following simple rules:
 

IF (Hour[0]  = 10)

THEN (Enter at Market, Long, quantity 0.1, Magic number 1000, PT 80, Stop loss 80)

 

IF (Open P/L in money(0) = 30) or Open P/L in money(0) = -30

THEN (close all positions)

      

 

The EA only opens the trade at the specified time with the TP and SL, it doesn’t close the position at profit/loss 30.

I have also confirmed that the “close partial position” does not work including “move SL to”.

I have used the first EA Wizard demo which worked perfectly well, but this one I purchased isn’t working. Please help fix this. 

Thanks everyone.

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #125388

Hello,

 

you shouldn’t use condition like Open P/L in money(0) = 30

Use Open P/L in money(0) >= 30 instead.

 

It is because as the market value always change the open P/L might be slightly bigger than 30 and you still want to close the trade.

 

I have also confirmed that the “close partial position” does not work including “move SL to”.

 

do you mean they both don’t work? Or they don’t work when they are combined?

The EA code was tested many times, it should work. Do you see any error message in the log?

Mark
StrategyQuant architect

0

Viewing 1 replies (of 1 total)