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
Scripts

Close All Positions and Pending Orders - script for MetaTrader 5

Jani Licenji
Jani Licenji
MQL5/MQL4 developer. I build Expert Advisors, custom indicators and scripts, and convert Pine Script to MQL5. Fast delivery, clean commented code and backtest reports included.
Views:
78
Rating:
(1)
Published:
MQL5 Freelance 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 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 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 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 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.