Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 78
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This script closes all open positions with one click and can also delete pending orders. Useful when you need to exit the market fast, for example before news or at the end of the day.
Input parameters:
- Which positions to close: all symbols or only the current chart symbol
- Magic number filter: close only trades with a specific magic number (-1 = any)
- Also delete pending orders: true/false
- Ask for confirmation: shows a Yes/No question before closing
- Max slippage (points): maximum allowed slippage when closing
Works on both hedging and netting accounts. A summary is printed in the Experts tab. Always test on a demo account first.

RealizedVol: range volatility estimators, realized variance and HAR forecasts
Parkinson, Garman-Klass, Rogers-Satchell and Yang-Zhang estimators, daily realized and bipower variance from intraday bars, and HAR volatility forecasts.
Stationarity: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews and variance ratio tests
Five tests to tell a random walk from a mean-reverting series: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews with the break date, and the variance ratio.
Session Boxes Asia London New York
Draws Asia, London and New York session boxes on the chart with each session's high and low.
Candle Timer Countdown
Candle countdown timer for Gold (XAUUSD), EURUSD and any symbol: time left on the current candle next to price or in a corner, spread, color change and alert before the close. Server time, no ticks needed. Open source code.