View Single Post
Old 2009-03-14, 09:35 AM   #168 (permalink)
IvoHR
Rookie Pip Officer
 
Trader for 2 - 4 years
Location: Austria
Posts: 16

Default

Quote:
Originally Posted by Sandisct View Post
Ivor,

Would you be able to program the EA for your money management? Eg:

Starting Balance = X
Target Equity = X * 2
When Target Equity is true then Close all open trades.
Withdraw Amount = New Balance * 0.25
New Starting Balance = New Balance - Withdraw amount.

Would appreciate if you could help write this EA. It'll be place in any open chart just to monitor the Balance and Equity.
Hey Sandisct,
i had some time, so here is the EA. I had no time to test it, so please test it on a demo account first.

After the EA closes all trades. It will be set as DONE. It won't do anything else anymore till it gets restarted. So remove and put it again on any chart.
Put your Deposit-Amount in bStartingBalance as explained in the input.
Alert messages will appear if Equity >= 2x StartingBalance. Telling you what it is doing and what Withdrawl should be made and what to do next.

Here we go:
Attached Files
File Type: mq4 closingorder.mq4 (3.2 KB, 76 views)

Last edited by IvoHR; 2009-03-14 at 10:40 AM.
IvoHR is offline   Reply With Quote