Hi guys,
I have a pretty simple request I think to all the coders out there.
I need a piece of code that it can be integrated into an EA that controls the Equity in the following manner:
Let us say we have an account with balance of $20.000. The trader enters a value of Equity of $18.000 after which level reached all open positions get closed. Also another option in the same block of code in a similar manner where the trader enters percentages of Equity let say 10% after which level reached all open positions are being closed.
Basically I need a code where all open positions will be closed by controlling the Equity through entered amount of money or through entered amount of %.
I have a pretty simple request I think to all the coders out there.
I need a piece of code that it can be integrated into an EA that controls the Equity in the following manner:
Let us say we have an account with balance of $20.000. The trader enters a value of Equity of $18.000 after which level reached all open positions get closed. Also another option in the same block of code in a similar manner where the trader enters percentages of Equity let say 10% after which level reached all open positions are being closed.
Basically I need a code where all open positions will be closed by controlling the Equity through entered amount of money or through entered amount of %.