Questa è la più grande libreria di codici sorgente gratuiti per i programmi della piattaforma MetaTrader 5. Qui puoi trovare Expert Advisors, indicatori tecnici, script e librerie pronti all'uso. Sfrutta la libreria di codici per imparare il linguaggio MQL5 e sviluppa le tue applicazioni di trading automatico partendo dai codici disponibili.
I codici possono essere liberamente scaricati, testati e lanciati in MetaTrader 5. La libreria è anche disponibile direttamente dalla piattaforma MetaTrader 5 e dall'ambiente di sviluppo MetaEditor.
Consenti l'uso dei cookie per accedere al sito MQL5.com.
Abilita le impostazioni necessarie nel browser, altrimenti non sarà possibile accedere.
Hai effettuato l'accesso. L'autenticazione a due fattori è stata disattivata. Configurala di nuovo e scansiona un nuovo codice QR, oppure continua con l'autenticazione a due fattori disattivata.
Attiva l'autenticazione a due fattori ContinuaClassifies the market as trend, mean-reversion or noise using three public measures: the Hurst exponent by rescaled range with small-sample bias correction, Kaufman's efficiency ratio and the percentile of the current ATR. A colour strip shows the regime bar by bar, and a panel shows the regime on M15, H1, H4 and D1 at the same time. Part of the free Robustness Lab set.
Shows how a symbol has behaved in every hour of every weekday, as a heatmap on the chart. Colour the cells by t-statistic, mean return, hit rate or average range. Cells that pass a significance threshold get a gold frame, and the panel tells you how many cells would pass that threshold by chance alone, so a single lucky hour is not mistaken for an edge. Hover any cell for its full numbers. Part of the free Robustness Lab set.
Calculates the lot size for a risk % and a stop distance on any symbol, using the broker's own profit calculation, so the result is exact for forex, gold, indices, stocks and crypto.
Builds H2 to D1 candles from H1 on the New York close clock, so your indicators see the same candles on every broker, no matter which server time it uses. Detects the server clock automatically.
One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no.
Un oscillatore di classificazione del regime che misura di quanto e con quale persistenza il prezzo si discosta da un VWAP (prezzo medio ponderato per il volume) mobile, espresso in unità di deviazione standard, distinguendo le condizioni di tendenza da quelle di oscillazione laterale.
Una libreria composta da un unico file che gestisce le modalità di trading di un EA: controlli pre-negoziazione, normalizzazione rispetto ai limiti del broker, riprovazioni sicure, un ordine per ogni segnale, isolamento tramite "magic number" e ripristino dello stato dopo un riavvio. Include lotti in base al rischio, limite di perdita giornaliero e soglia minima di capitale proprio. Verificata nello Strategy Tester.
Shows whether your symbol tends to trend or to mean-revert, and on which horizon. For five horizons (2, 4, 8, 16 and 32 bars by default) the indicator computes the variance ratio: the variance of multi-bar price changes divided by the variance of one-bar changes, scaled by the horizon. A ratio above 1 means that moves tend to continue, below 1 that they tend to reverse. The lines show the ratio over a rolling window, and a panel gives a scoreboard with ratio, z-score and verdict TREND, CHOP or NOISE for the recent window and for the whole history, plus one line to paste into a comment. It is a statistics tool and gives no trade signals.
Read-only PropFirm daily drawdown, trailing total drawdown, and single-day consistency cap HUD monitor with four closed-bar iCustom buffers.
Every new N-bar high or low gets tagged, timed, and scored — real breakout or fakeout — so the scorecard tells you what this symbol has actually done at its own extremes, not what you assume it does.
Builds a real depth distribution for this symbol's pullbacks — how far price typically retraces before the trend resumes, and how often it doesn't resume at all.
Measures low-volatility squeezes on your own symbol and timeframe. A squeeze is a run of bars in which the range of the last bars is small compared with the ATR. The indicator draws the length of every squeeze, marks the bar that ended it, and a panel shows how long squeezes last, how far the range expanded in the bars after the release, how that compares with any other bar, and which side of the squeeze box the first close went to. It is a statistics tool and gives no trade signals.
Is it a good moment to trade? One panel combines spread, session, rollover, volatility, daily range and high-impact news into a clear GOOD / CAUTION / AVOID status. Works on all symbols, tuned for gold (XAUUSD).
A bolt-on module (.mqh) plus a ready integration example: a news filter that keeps your EA out of new entries around economic releases — using only the built-in MT5 calendar, no DLL and no WebRequest — and a slippage log that records, for every fill, the difference between the price you asked for and the price you got.
A script that reads an MT5 Strategy Tester report (HTML) — and, if you give it one, the tester log — and writes a short verification memo: the key figures in one place, each compared against pass/check criteria that you set yourself, plus a count of problem-like lines in the log with samples.
Five-point retest structures found on closed bars and turned into plans: a retest band, a target at point 3 and a fail level. Each plan runs until the target is touched or a close goes past the fail level, then fades, and a panel shows how many bullish and bearish structures reached the target on the chart you are looking at.
Breaker block indicator for Gold (XAUUSD) and any symbol on MT5. Finds order blocks on closed bars, keeps them hidden and draws only the ones price closed through, with waiting, retested and failed states and alerts on the flip and on the first retest. Open source code.
Zone di domanda e offerta per l'oro (XAUUSD), EURUSD e qualsiasi altro simbolo: zone definite dai massimi e minimi di oscillazione, con dimensioni determinate dall'ATR, nuove o già testate, unite tra loro, con quelle superate rimosse, avvisi e 5 buffer per gli EA. Codice open source.
Chiude tutte le posizioni quando la perdita giornaliera raggiunge il limite impostato.
A library for MetaTrader 5 that checks every trade request of an existing Expert Advisor in the Strategy Tester, with one include line and no other change. Volume, stops level, freeze level, margin, trade mode and the order limit are checked; the request then goes out unchanged, and the Journal and a CSV list each violation with the file and line that sent it.
Draws the Asia, London and New York session ranges (high/low boxes) on the chart, so you can instantly see each session's range, breakouts and retests.
Scans the trend on M5, M15, H1, H4 and D1, shows market bias, volatility, session and previous-day levels in one clean panel, and opens trades with one click using a risk-based lot, ATR stop loss and R:R take profit.
Drag Entry, Stop Loss and Take Profit lines on the chart and instantly see the correct lot size for your risk, reward-to-risk, money at risk, potential profit and margin.
Read-only script that shows the real statistics of your trade history per symbol: win rate, net result, profit factor, average win/loss and longest losing streak.
Measures what happens to the Asian high and low when the next session opens. Every day the Asian range is frozen, and during a watch window that follows, each side is classified as swept (a wick beyond the level that closes back inside), a failed break (closed beyond, then back inside) or a held break. The chart shows the Asian range with its midpoint, a line shows where the close is inside the range, and a panel gives the shares for each side, which side moves first, how long it takes, and one line that can be pasted into a comment to compare symbols. It gives statistics, not signals.
Shows, for each timeframe and symbol, how many bars an EA, indicator or script can read on a live chart and from what date, and flags the timeframes where "Max bars in chart" cuts off older history that the terminal already has.
Saves the closed trades of your MT5 account history to a CSV file, one row per trade, plus a second file with totals for each magic number.
A service that writes your balance, equity, floating result, margin and the drawdown from today's highest recorded equity to a CSV file every minute. Runs without a chart and never trades.
Rilevamento in tempo reale delle variazioni della media o della volatilità (Adams-MacKay): probabilità di una variazione nelle ultime k barre, lunghezza attuale del segmento, previsione e indicatore.
Adatta cinque copule bivariate sui ranghi, con il tau di Kendall, la dipendenza delle code, la probabilità di giorni estremi congiunti, l’AIC e le probabilità condizionali di trading a coppie.
Include file with small functions to find the Gotobi days: the 5th, 10th, 15th, 20th, 25th and the last day of each month, moved back to the previous business day when they fall on a weekend or a holiday you list. Information only, no trading functions.
Free MT5 research EA with three closed-bar entry models, ATR stops, fixed-R targets and a tester cost ledger. Version 2.31 uses the chart symbol and timeframe. Historical research: XAUUSD M5. Educational source; published tests were loss-making.
Tracks every touch of a round "00" or "50" level and keeps a running scorecard of how often price rejects versus breaks through — then maps that history onto the levels nearest to current price.
A per-hour profile of when the day's range actually gets built, plus a live readout of whether today is running ahead of or behind its usual pace
An indicator that reads the broker's weekly trade-session schedule for the chart symbol and shows whether trading is open, when the next close or open happens and a live countdown to it. It also marks bars that lie completely outside the trade sessions.
Check the first and last available bars, gaps between bars, and available tick history for a date range before a backtest.
A library for MetaTrader 5 that puts trade management code behind an interface and tests it against a fake broker, without a trade server. The fake checks stops level, freeze level, tick grid and volume step, answers with retcodes chosen by the test and logs every request. An example break-even rule and 26 test cases come with it.
Starts a trailing stop when the price reaches the take-profit zone of a position you already have open. The take profit is removed, extended or kept. It never opens trades.
MACD regular and hidden divergences on closed bars with an honest first-touch statistics panel. Not a trading signal.