logo
Developers

Moving Stop-Loss mechanism + alerts to MT4/MT5

Script from: TradingViewIntradayMomentumTrend following

Enhance your MT4/MT5 trading with a Moving Stop-Loss mechanism that automatically adjusts as new pivot highs/lows are detected during an open trade. This dynamic scripting enables traders to exit positions via Stochastic crossovers and manage risk in real-time by updating the stop-loss levels directly within the strategy.exit() function. Incorporate automated alerts to TradingConnector for seamless execution across various markets. Recent script improvements eliminate the need for 'tradeid=' in single-position trades.

Cardio Diagnostics Holdings Inc. (CDIO)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ Daily

1.45

Risk Reward

1,739.15 %

Total ROI

196

Alpine Immune Sciences, Inc. (ALPN)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 4 h

1.23

Risk Reward

462.11 %

Total ROI

900

Renault (RNO)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 1 h

1.23

Risk Reward

1,087.98 %

Total ROI

3481

DOT / TetherUS (DOTUSDT)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ Daily

1.20

Risk Reward

495.21 %

Total ROI

396

Uber Technologies, Inc. (UBER)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ Daily

1.20

Risk Reward

234.48 %

Total ROI

317

Delta Air Lines, Inc. (DAL)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ Daily

1.20

Risk Reward

641.66 %

Total ROI

840

Energy Transfer LP (ET)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 4 h

1.20

Risk Reward

9,107.27 %

Total ROI

1778

U.S. Dollar/Japanese Yen (USDJPY)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 4 h

1.19

Risk Reward

141.00 %

Total ROI

3766

XP Inc. (XP)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 1 h

1.19

Risk Reward

3,965.43 %

Total ROI

2066

Lyft, Inc. (LYFT)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 1 h

1.17

Risk Reward

1,055.53 %

Total ROI

2246

Advanced Micro Devices, Inc. (AMD)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 4 h

1.17

Risk Reward

138,574.52 %

Total ROI

2309

Stellantis NV (STLAP)

+ Moving Stop-Loss mechanism + alerts to MT4/MT5

@ 4 h

1.17

Risk Reward

942.62 %

Total ROI

1604

Create your account for free to see all 189+ backtests

Access filters, details, best timeframes, explore 100K+ backtests and more

Active Trades

Create your account to see on which symbols Moving Stop-Loss mechanism + alerts to MT4/MT5 is currently trading on.

Moving Stop-Loss mechanism + alerts to MT4/MT5 backtest statistics

Aggregated across every validated backtest TradeSearcher has run on this strategy. Figures update automatically as new backtests are added — they are not edited by hand. Classified as intraday by holding period.

189
Backtests run
1.1
Avg profit factor
>1,000%
Avg net profit
+14%
Avg annualized return
60%
Avg max drawdown
0.12
Avg Sharpe ratio

On average, backtests of this strategy beat a buy-and-hold baseline by >1,000% over the same window.

Performance by asset class

MarketBacktestsAvg profit factorAvg net profitAvg max drawdownAvg Sharpe
Crypto751.1+309%32%0.16
Stocks1,3491.1>1,000%62%0.11
Forex731.1+79%11%0.12

Backtests use the validated-universe filter: non-repainting scripts, over 15 trades, non-excluded. Per-market rows appear only when at least one backtest exists for that asset class.

Explore the best Trading & TradingView strategies

Stop trading blindly. Explore quality-gated backtests and improve your trading skills with data.

Start for free