Trailing Stop Loss based on Supertrend and partialy closing position
-
Hello everyone,
I tried to create an EA that do 2 jobs but failed with both :-
It trails the position by setting the value of the Suprertrend indicator as a Stop loss at every candle closing
-
When a position hits 0.5% of the Balance, it closes half of the position and continue trailing
I already put Supertrend MQ4 file at the Indicators folder as well as in "My indicators"
Here is the link of my poject
-
-
@askich DO NOT use super trend indicator. It repaints terribly. No EA based on supertrend will work as expected. Trust me, you should find another indicator.
-
Hello @l-andorrà
The Supertrend in my case is used as a forth level trend confirmation after SSL, VWAP and 38 SMAAs for the trailing, I saw that it provide a good level that won't allow trades to close early
The one I use for the moment is Supertrend by KivancOzbilgic that you find in TradingView, and the one I'm using with the EA works the same way as the previous 0_1648485789176_MQLTA MT4 Supertrend Line.mq4
So my point is to set the trailing immediately after the trade was created so it starts following the profit while is going in your favor and to reduce the losses if trend reverses and when a single trade hits the 0.5% of the Balance, the EA closes half of the volume and continues with the trailing until it's closed by SL (No TP will be set)
Hopes you could help me with those ideas as I already tried but couldn't succeed -
Hello everyone,
Can somebody please help me with this problem? still can't figure out where the error is for the 2 parts
-
@askich Can you please share the link to your project? I will take a look at it.