Hi traders!
I'm testing a strategy for when i'm not able to be in front of the screen.
It is working very well and consists in putting orders near major S/R lines.
Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades?
If not based on daily data, it would be good also on money account value.
Example:
Account balance: 1000$
Daily goal: +50$ / 5%
Account goal value: 1050$
2 trades to TP: +30$
4 trades running: -20$ / + 12$ / +14$ / +14$ balance of running trades: +20$
30$+20$= +50$/5%/1050$ goal reached, ALL running trades closed and pending orders removed.
I found a lot of EAs that do this job but they work only on the balance of the currently running trades.
Being this a "scalping" strategy with only 10 pips TP (and a little more for SL), trades last only a few minutes and I'm putting a lot of orders.
It already happened to me to reach the goal at a certain point of the night (I'm using this during Asian Session, when I sleep), and after that hit a SL and run back the balance.
Every help will be appreciated a lot .
Thanks,
Lrt
I'm testing a strategy for when i'm not able to be in front of the screen.
It is working very well and consists in putting orders near major S/R lines.
Do you know or can you code an EA that closes ALL trades and orders when the daily balance reaches a goal in percentage or money considering also the running trades?
If not based on daily data, it would be good also on money account value.
Example:
Account balance: 1000$
Daily goal: +50$ / 5%
Account goal value: 1050$
2 trades to TP: +30$
4 trades running: -20$ / + 12$ / +14$ / +14$ balance of running trades: +20$
30$+20$= +50$/5%/1050$ goal reached, ALL running trades closed and pending orders removed.
I found a lot of EAs that do this job but they work only on the balance of the currently running trades.
Being this a "scalping" strategy with only 10 pips TP (and a little more for SL), trades last only a few minutes and I'm putting a lot of orders.
It already happened to me to reach the goal at a certain point of the night (I'm using this during Asian Session, when I sleep), and after that hit a SL and run back the balance.
Every help will be appreciated a lot .
Thanks,
Lrt
"Every battle is won before it's fought."