Relative Strength Trendline Breakout
- Experts
- Versione: 2.3
- Attivazioni: 10
Relative Strength Trendline Breakout is an automated Expert Advisor for MetaTrader 5.
IMPORTANT RISK NOTICE
This EA uses a grid / multi-trade technique and can keep many trades open in the same direction without a stop loss on each trade. A basket can show a large floating loss and a long drawdown before it recovers. Position size and the number of open trades can grow. Past or simulated results do not guarantee future results. Test on a demo account first and only risk money you can afford to lose.
How it works
- Finds RSI swings: peaks above the upper level (default 65) and troughs below the lower level (default 35) and draws trend lines in the RSI window from recent swings.
- When the RSI of bar 1 crosses the upper trend line downward the EA sells; when it crosses the lower trend line upward it buys. One signal per bar and a nearby filter that avoids stacking trades.
- Lot is a percentage of the free margin. There is no stop loss or take profit.
- Exit with money trailing (three sets: all trades, Buy only, Sell only) based on percentages of the balance.
- The chart shows the line values and swing counters.
Safety and broker compatibility
- Volume is normalized to the symbol minimum, maximum and step before every order.
- Free margin is checked with OrderCalcMargin before an order is sent.
- Stops level and freeze level are respected when placing or modifying orders and SL/TP; a modification is not sent when the values are unchanged and nothing is modified inside the freeze zone.
- Symbol trade mode, trading session, order limit and filling mode are checked before sending requests.
- No DLL, no web requests, no files are written.
BOTKRIT recovery core and dashboard
This build includes a basket recovery core and a standard BOTKRIT panel. When the open basket of this EA loses more than the set percentage of the balance the EA pauses its own new entries and the core can open balancing (hedge) trades with its own magic number until the basket can be closed at break-even plus a target; the basket is cut at the set loss percentage. Balancing trades can increase exposure. The core works on hedging accounts only and can be switched off with InpRKOn = false. The panel can be collapsed and moved to another corner.
Inputs
- RSI_Upper (default 65.0): Rsi upper
- RSI_Lower (default 35.0): Rsi lower
- RSI_Swing_Back_Count (default 10): Rsi swing back count
- Lot_Freeze_Percent (default 1.0): Lot freeze percent
- TP_percent_of_SL (default 20.0): Tp percent of sl
- Trailling_Start_percent (default 1.0): Trailling start percent
- Trailling_Step_percent (default 0.1): Trailling step percent
- Trailing_Stop_percent (default 0.5): Trailing stop percent
- MagicStart (default 4304): Magic Number, kind of...
Recovery core and dashboard inputs:
- InpRKOn (default true): Recovery core on/off: when the basket loss grows, new entries of the EA are paused and balancing trades can be opened until the basket closes
- InpRKStartPct (default 3.0): Start recovery when the basket loss exceeds this percent of the balance at basket start
- InpRKStartATR (default 3.0): or when price runs against the net position by this many ATR (0 = off)
- InpRKCutPct (default 30.0): Close the whole basket at this percent loss of the start balance
- InpRKShockATR (default 10.0): Shock distance to survive (ATR multiples), used for the lot ceiling
- InpRKMinMargin (default 300.0): Do not open a recovery trade if the margin level after opening would be below this percent
- InpRKSpreadMul (default 2.0): Pause recovery trades when the spread is above this multiple of the 60-minute median
- InpRKCorner (default bottom right): Corner of the BOTKRIT panel
- InpRKBar0 (default FULL): Bar-0 label (basket profit, spread and leverage)
Recommended setup
- Major pairs and gold on M15 to H1.
- Minimum capital: At least 2,000 USD; trades have no stop loss.
- Test on a demo account first and keep the lot small.
