Scripts

Unfortunately, Trailing Stop Management Function is unavailable

The code has been removed. However, the huge code base still remains at your disposal allowing you to find a suitable code.

Check out other MetaTrader 5 codes:

Broker GMT offset and daylight-time rule from price history Broker GMT offset and daylight-time rule from price history

Detects the broker's GMT offset and its daylight-time rule (fixed, US or European) from the weekly closes in the H1 history, the same way live and in the Strategy Tester, with functions that convert New York times to server time and back.

Partial Close Multi TP Manager Partial Close Multi TP Manager

Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code.

Swap Markup Scanner Swap Markup Scanner

Shows the broker's hidden financing markup and the carry for every symbol, as annual % of notional.

DataSnooping: SPA test, Reality Check, StepM and model confidence set DataSnooping: SPA test, Reality Check, StepM and model confidence set

Is the best of many strategies really better than the benchmark? Hansen's SPA test, White's Reality Check, Romano-Wolf StepM and the model confidence set.

Basket Pair Closer Basket Pair Closer

Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code.

No suitable codes?
Choose and download
one of the available library codes
for MetaTrader 5