Trabajo finalizado
Tarea técnica
Hi all,
I would like an equity tsl ea for mt4 with the following options:
1. Close all now, true/false (close all live and pending trades)
2. Close all at price level (close all pending and live at X price (EA would look at the price of whichever chart it is attached to))
3. Close all at plus X (close all live and pending when equity is X dollars above starting equity)
4. Close all at minus X (close all live and pending when equity is X dollars below starting equity)
5. Break even plus Y when equity at X (move sl to starting equity plus Y dollars once equity reaches X)
6. TSL (start trail when equity reaches plus X dollars, trail by Y dollars)
7. Alert on close, true /false, continuous or single alert
8. Disable autotrading on close, true/false
9. Send mobile notification on close with starting equity and equity after close
10. Test trade, true/false (for testing purposes if set to true the ea takes a long trade at the close of every bar.
The EA should recalculate the equity after a close is complete.
Example – starting equity 5000, close triggered at 5050 and ea closes all (disable autotrade set to false). Once all the trades are closed the equity is at 5046 (due to price movement when the trades are closing). 5046 should be the new equity. So the EA should take the new equity once all trades are closed.
I would also like some stats on the chart it is connected to showing – total lots longs (0.00), total lots short (0.00), initial equity (equity when EA was attached), starting equity (equity EA currently working with), equity target, if trailing stop active and dollar amount away from stop. I should be able to change the font size of the stats.
Hopefully this is all understandable, if not please ask. Thanks.