Ask: Close All Trade After Gain % Target (Add money management feature)

 

Hello,

This is my very first post, i apologize if i can't speak english well..

Iam new in mql4 programming and i want to learn to modify my EA that i got from another forum, its scalping EA.. i want to add feature to set percentage target, the EA will count first the current balance when the EA is activated in the first time and save that info into file (i prefer using file instead variable so it will safe if we close the platform) and after my trade reach that target plus current open trade, all current trade will close so i still reach the target.. and we can set it per month or week..

Any body can help me to solve this? i think i will need how to :

- Get closed trade in current month / week

- Get the current trade (count the current losses or profit)


The short, i want to add money management for my EA...


Thank you for your time to read this thread and if you have any solution.. please help me.. Thank you very much!

 

It'll take some time if you're trying to program these yourself. If you're new to programming also, then allow additional time for learning. The following material below will help you.

https://docs.mql4.com//

https://book.mql4.com//

If you want to solve your coding needs faster, then consider the jobs section.

https://www.mql5.com/en/job

 

@ubzen

Thank you.. Shanti.. OM

 
jakatarung:  i prefer using file instead variable so it will safe if we close the platform
No file needed, just recreate. Could EA Really Live By Order_History Alone? - MQL4 forum
Reason: