Rsi with trailing stop of PERCENTAGE FROM THE HIGHEST PRICE AND THE ENTRY AND THE LOWEST PRICE FOR THE SELLS
-
How can I make an EA for rsi crossing the 50 mid line and set a trailing stop of the percentage from the entry price to highest price for buys and lowest price for the sells
And re-enter whenever price comes back to the highest price for buys and lowest price for the sells since the rsi signal was triggered and always maintaining an breakevenRemember it has to follow the trend

and always at break evenConsider zero spread acc
-
What do you exactly mean by 'percentage from the entry price to highest price for buys and lowest price for the sells'?
-
@l-andorrà
Entry Conditions:BUY: When RSI crosses above 50
SELL: When RSI crosses below 50
Trailing Stop:A trailing stop is activated immediately when a trade opens.
It follows the price by a set percentage of the move from the entry to the highest (for buys) or lowest (for sells).
Exit Condition:The trade is closed when price retraces by the trailing percentage from the peak (or bottom).
Re-Entry:After closing, the EA waits.
If the price returns to the previous peak (for buy) or previous bottom (for sell), the EA re-enters the same trade direction.
️ Required Inputs (Inputs You Can Adjust)Input Name Description
LotSize Number of lots per trade (e.g. 0.01, 1.0, 200)
TrailPercent Percentage distance for trailing stop (e.g. 50%)
MagicNumber Unique ID for each chart instance (helps manage 99 EAs)
RSI_Period Number of periods used to calculate RSI (e.g. 14)
RSI_Trigger RSI level used for entry crossover (should be 50)
RSI_Timeframe Timeframe of the RSI (e.g. M1, M5) -
How many trades can be open at the same time?