Lavoro terminato
Specifiche
I'd like a very simple EA which automatically sets TP and SL for each new trade opened at the time the trade is opened. All trades are opened manually.
The TP and SL will be set in relation to the value of the ATR, so the settings will need to include the ATR Period.
When I manually open a trade, the settings in the EA will apply to that trade to set a TP and a SL. Simple as that.
No trailing stops, no partial closes, just a SL and a TP.
So the only inputs would be:
ATR Period.
TP target - a multiplier of the ATR value. If the setting is left at zero, then no TP is set.
SL distance - a multiplier of the ATR value. If the setting is left at zero, then no SL is set.
The result would be TP and SL values relative to the ATR.
Once set, if I decide to change the TP or SL distance, then I can do so and the EA will not override my changes. I need manual control.
In other words, the EA sets the TP and SL levels ONLY as a trade is opened.
Important: The EA needs to be clever enough to determine which market is being traded so that the TP and SL settings are applied sensibly.
For example, USDJPY has a price around 155.00, while EURUSD has a price around 1.17230. WTI trades at 57.608. XAUUSD trades at 4320.70. GER40 (index) trades at 24268.55. US500 (index) trades at 6868.50.
The scale of all of these prices is different; the EA needs to be able to determine which market is being traded and set SL and TP levels accordingly, without having to change the settings in the EA.