Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Bibliothèque

Break-even and Trailing Stop Manager in R - bibliothèque pour MetaTrader 5

Lukas Szyry
Lukas Szyry
Gold Trading Specialist | XAUUSD Expert Advisors
Je développe des Expert Advisors basés sur des règles pour l'or (XAUUSD) sur MetaTrader 5. Je me concentre sur des systèmes robustes pour la croissance du compte à long terme : pas de martingale, pas de grille, pas de moyenne à la baisse.
Vues:
103
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Break-even and trailing stop for open positions, everything measured in R (R = distance from open price to the first stop loss). So the same settings work on every symbol and timeframe.

sm.BreakEven(1.0, 0.1) - at +1R the stop goes to +0.1R
sm.Trailing(1.5, 1.0) - from +1.5R the stop follows the price with 1R distance
sm.TrailingATR(1.5, 2.0) - or trail with 2x ATR instead of a fixed R
sm.Verbose(true) - prints every stop move in the journal
sm.MinStep(0.1) - the trailing stop moves in steps of 0.1R, so the broker doesn't get a modify on every tick

The stop only moves in profit direction, never back. Stops level and freeze level of the broker are checked before every modify, so you don't get "invalid stops" spam in the journal. Filter by magic number or manage all positions of the symbol. Works on hedging and netting accounts.

The small EA in the package manages your open positions with these settings. It doesn't open trades on a real or demo account. Only in the strategy tester it opens example buys (one at a time), so you can watch the stop moving in the journal.

Note: the first stop distance is remembered while the EA runs. After a restart a position that is already on break-even is not managed again (R would be 0), the stop just stays where it is.

Strategy tester journal: break-even and trailing stop moves

Seven-Bar Pressure Flip (SBPF) is a sell-only Expert Advisor for MetaTrader 5 Seven-Bar Pressure Flip (SBPF) is a sell-only Expert Advisor for MetaTrader 5

Seven-Bar Pressure Flip (SBPF) is a sell-only Expert Advisor for MetaTrader 5, provided as a research example for XAUUSD on the M15 timeframe. It looks for a bearish reversal candle following positive average candle-body pressure and manages positions using ATR-based stops, a fixed reward-to-risk setting, and a bar-count exit.

PRO DAY TRADING SIGNALS PRO DAY TRADING SIGNALS

PRO Day Trading Signals is a non-repainting M15 indicator for MT5 that finds trend-following pullback entries after a liquidity sweep. How it works: it trades only in the direction of the H4/H1 trend (EMA200, EMA20/50). It waits for an M15 candle to sweep the previous 10-bar high or low at the EMA20/50 zone and close back inside. It confirms with a strong candle body (≥0.30 × ATR) and RSI (≥52 for BUY, ≤48 for SELL). Signals appear only on closed bars.

Devil Trader AI Lite Devil Trader AI Lite

Devil Trader AI Lite is an automated Smart Money & Liquidity Expert Advisor engineered exclusively for GOLD (XAUUSD) on M30 and H1 timeframes. It maps Major Demand and Supply Order Blocks, waits for confirmed rejection candles, and applies dynamic ATR Stop-Loss, auto-lot sizing, and trailing stop protection with zero Martingale.

Market Watch Mini Scanner: RSI Overbought/Oversold Across Symbols Market Watch Mini Scanner: RSI Overbought/Oversold Across Symbols

A compact on-chart scanner that shows the RSI of the Market Watch symbols (or of a custom list) in a sorted, color-coded dashboard, marks overbought and oversold symbols, and can send alerts when a symbol enters one of these zones.