Download MetaTrader 5

EA editing, need help

To add comments, please log in or register
Share your programs. That will improve your rating.
Reco Daley
271
Reco Daley 2016.05.11 20:02 

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 . 

Marco vd Heijden
Moderator
4704
Marco vd Heijden 2016.05.11 20:54  
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/
Osama Shaban
1448
Osama Shaban 2016.05.11 21:03  

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 ...

Reco Daley
271
Reco Daley 2016.05.12 19:39  
Osama Shaban:

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

 Then, compile your code ...

thanks a whole lot 

To add comments, please log in or register