Les meilleurs scripts pour MetaTrader 5 selon les notes des utilisateurs - 11

Soumettre votre code

3 fibo levels.

SymbolInfo example script lacks margin and leverage data wich are nowhere to be found explicitely in Metatrader, the trader must search thoroughly into the broker site in order to find them. The aim of this script is to provide a remedy to it from a standard tool.

he script estimates the bar's High-Low-Close, based on the stream similarity.

The script (not an Expert Advisor) sets and moves the Stop Loss for all positions on the current symbol to the specified price

CloseAll script complying FIFO rules.

Export the history of transactions on the trading account.

Service Script for aggregating Economic Calendar data to a .txt file

Prints a privacy-conscious snapshot of the current MT5 broker, account, symbol and terminal environment to the Experts log for diagnostics and support.

Read-only MT5 script that estimates stop-distance cash loss in account currency, reserves explicit cash costs and floors volume to the broker grid. It never sends or modifies an order.

Measures, hour by hour, how far a symbol travels and how much of that the spread takes away. Built for gold, works on any symbol, compares several side by side.

TimeCurrent() is not a clock. It is the stamp of the LAST TICK. Two consequences break robots in production: 1. It freezes. With no tick it does not move: illiquid instrument, end of session, unstable connection - and any rule based on it stops with it. 2. It steps backwards: on a symbol switch, a reconnection or a tick from another instrument, the value can go back. The case that cost me a whole protection: I compared the date of a daily decision with TimeCurrent() to reject an expired one. The server clock stepped back to the previous day, the comparison matched, and four EAs accepted YESTERDAY's decision as valid. The gate that should have failed closed failed open - without a single error in the log. Rule: TimeLocal() for timestamps, dates, day changes, expiry - all that must always move forward; TimeCurrent() for session hours and market data. The script measures the divergence in your environment and reports both symptoms live. Run it with the market closed.

Exports bars to a CSV file that pandas.read_csv() loads without encoding, separator or date-format arguments: ISO 8601 timestamps, prices at the symbol's own digits, single-byte encoding. Two modes (last N bars or a date range) and a switchable separator for Excel.

Ouvre en un clic les graphiques de tous les symboles de Market Watch ou d'une liste de symboles personnalisée, sur n'importe quelle période, avec un modèle facultatif appliqué à chaque graphique. Ignore les graphiques déjà ouverts et limite le nombre de graphiques ouverts simultanément.

Cette fonctionnalité exporte les transactions clôturées au format CSV, en indiquant l'écart maximal défavorable (MAE) et l'écart maximal favorable (MFE) en points et en montant, calculés à partir de l'historique M1, ainsi que le pourcentage de la variation disponible capturé par chaque transaction.

Script qui génère un rapport sur les contraintes auxquelles un EA doit faire face : couverture ou compensation, autorisations de trading, modes d'exécution, niveaux de stop et de gel, règles de volume, swaps et positions déjà ouvertes sur le symbole. Il enregistre un fichier de rapport que vous pouvez joindre à une commande Freelance.

A small script that turns "risk in % of the account" and "stop loss in pips" into a lot size. It only calculates and prints; it never opens, modifies or closes trades.

Script that exports the closed trades of your account to a CSV file and prints a short summary: trades, win rate, net result and profit factor.

Static safety scan of EA/indicator source: DLL imports, programs started, account data sent online, hidden text, martingale, SL = 0.

A script that closes open positions in one click, with filters for chart symbol, magic number, buy/sell direction and profit/loss state. Works on netting and hedging accounts.

Script that calculates the lot size for a given risk percent and stop loss. Places no orders.

A read-only script that works out a lot size from the cash you accept to lose and the stop distance, and shows how many such losses fit inside your own daily loss limit. Uses the symbol tick value, so it works for gold, FX and indices.

Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry commission.

Dynamically export customizable historical bar data (OHLC, Tick Volume) and selected technical indicators (RSI, MACD, ATR, ADX, Stochastic, CCI, MFI, Momentum) directly to a clean .csv file with automatic header generation.

A script that shows how far back your broker's server keeps real ticks for a symbol. It samples a few short windows over the last four years, asks for each one until its ticks arrive or the time is up, and prints the oldest one that has ticks.

A script that reads a tick CSV into a custom symbol and builds its M1 bars, so the Strategy Tester can run "Every tick based on real ticks" over a period the broker's server does not keep. It finds the columns by name and moves UTC times to server time.

Script that closes positions in one click: all, only profitable, only losing, only buys or only sells, for this symbol or all symbols, with a magic filter and optional pending order delete.

Exports bars to CSV and writes the SHA-256 fingerprint of that exact file, so a backtest can be tied to the data that produced it.

Saves your closed trades to a CSV file for your spreadsheet: one row per trade with points, costs, net result, R multiple, MAE and MFE.

Closes only the open positions that match your filters and, if you choose, deletes matching pending orders. Shows a summary and asks before it acts.

Check the first and last available bars, gaps between bars, and available tick history for a date range before a backtest.

Read-only script that audits how your orders were filled: slippage (reference vs filled price) and server latency for every deal, written to a CSV report with its SHA-256 fingerprint.

1...4567891011