Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Break-even and Trailing Stop Manager in R - library for MetaTrader 5

Lukas Szyry
Lukas Szyry
Gold Trading Specialist | XAUUSD Expert Advisors
I develop rule-based Expert Advisors for gold (XAUUSD) on MetaTrader 5. My focus is on robust systems for long-term account growth: no martingale, no grid, no averaging down.
Views:
63
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to 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 -Gold M30 and H1 Exclusive Devil Trader AI Lite -Gold M30 and H1 Exclusive

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.