Coding help - page 344

 

e-Trailing EA issue

Can someone please tell me why the attached e-Trailing EA with its current settings exits a trade at breakeven shortly after entry????

Under the "Experts" tab was the following dialog:

03:27:51 e-Trailing USDJPY,M5: modify #24741172 buy 1.50 USDJPY at 107.316 sl: 107.317 tp: 107.416 ok

03:27:51 e-Trailing EURUSD,M5: modify #0 buy 0.00 at 0.000 sl: 0.000 tp: 0.000 ok

03:27:51 e-Trailing GBPUSD,M5: modify #0 buy 0.00 at 0.000 sl: 0.000 tp: 0.000 ok

03:27:51 e-Trailing USDJPY,M5: modify #24741172 buy 1.50 USDJPY at 107.316 sl: 107.319 tp: 107.416 ok

03:27:51 e-Trailing EURUSD,M5: modify #0 buy 0.00 at 0.000 sl: 0.000 tp: 0.000 ok

03:27:51 e-Trailing GBPUSD,M5: modify #0 buy 0.00 at 0.000 sl: 0.000 tp: 0.000 ok

Regards,

Files:
 

could someone pls help me in this code, it doesnt work...

 
assasin:
could someone pls help me in this code, it doesnt work...

What does not work?

 
mladen:
What does not work?

I could not get add codes

error: POST to /newreply.php not supported.

 

am still trying

Files:
 
assasin:
am still trying

Since that is just a very short part of the code, did you check your journal or experts tab of the terminal for error written out there?

 
mladen:
Since that is just a very short part of the code, did you check your journal or experts tab of the terminal for error written out there?

there is no error over there

 
assasin:
there is no error over there

That code will work only on sell limit type of orders. Is that what you are trying to do?

Also check this part :

(OrderMagicNumber()==s1Magic) && s1Magic==611)

It will work only for magic number 611

 
mladen:
That code will work only on sell limit type of orders. Is that what you are trying to do?

Also check this part :

(OrderMagicNumber()==s1Magic) && s1Magic==611)

It will work only for magic number 611

yes, all matching with my criteria

 

is there any script for this