Tried Autostop code but cant get it working, any help would be good??

 

i seem to bombarding mql4 with lots of questions but it is helping a new trader!

i have tried useing https://www.mql5.com/en/code/10689 but cannot seem to get it working? am i saving this code to the wrong folder (scripts) as i am trying to copy it to my charts to no avail??

 
iannai69:

i seem to bombarding mql4 with lots of questions but it is helping a new trader!

i have tried useing https://www.mql5.com/en/code/10689 but cannot seem to get it working? am i saving this code to the wrong folder (scripts) as i am trying to copy it to my charts to no avail??

https://www.mql5.com/en/code/10689 

 

It's an EA ,  look at the left hand side of the page,  it's in the Expert Advisors section of the CodeBase.

 
RaptorUK:

https://www.mql5.com/en/code/10689 

 

It's an EA ,  look at the left hand side of the page,  it's in the Expert Advisors section of the CodeBase.


Brilliant, you are awesome :-)

 are there any codes for autostop to attach to pending orders?

 
iannai69:

Brilliant, you are awesome :-)

 are there any codes for autostop to attach to pending orders?


why has this program decided to stop working and now deosnt appear in EA anymore?

 
iannai69:

Brilliant, you are awesome :-)

 are there any codes for autostop to attach to pending orders?

Modify the code to do what you need it to do . . . while you are at it you can also significantly improve it . . .  rather than reporting an error when a Modification fails you could check that the TP & SL to be set mett these requirements: https://book.mql4.com/appendix/limits   and if they don't then you would not attempt the modification and would report the error to the user. 
 
iannai69:

why has this program decided to stop working and now deosnt appear in EA anymore?

I think you are going to need to figure that out for yourself.
Reason: