EA editing, need help

 

Hi I have this EA and I was wondering what function or script to use to allow the users of the EA "myself" to change the Take profit value from within the MT4 Terminal.

Right now I cannot do such actions without the need to go into the code to change the value of Take profit manually.

 

There has to be a way . 

 
Reco Daley:

Hi I have this EA and I was wondering what function or script to use to allow the users of the EA "myself" to change the Take profit value from within the MT4 Terminal.

Right now I cannot do such actions without the need to go into the code to change the value of Take profit manually.

 

There has to be a way . 

Set it to zero in the ea ,then the EA will ignore it but do realize that in that case you HAVE to set it manually/
 

You need to do the TakeProfit value as an external variable like ...

extern int TakeProfit = 300;

or

input int TakeProfit = 300; //Enter Take Profit in Points

 Then, compile your code ...

 
Osama Shaban:

You need to do the TakeProfit value as an external variable like ...

 Then, compile your code ...

thanks a whole lot 

Reason: