Risk Math Toolkit

What this library answers

Compiled library for MetaTrader 5 (MT5).

How much should this trade really risk? Most people work it out by hand and get the answer wrong on gold, on an index and on a small account.

Risk Math Toolkit is a compiled library of pure arithmetic functions. No trading, no orders, no files and no chart objects, because every function takes numbers and returns a number. Import the ones you need and call them inside your own Expert Advisor, indicator, script or optimisation pass.

  • RM_Lots: the lot size that risks a fixed share of an account at a given stop distance.
  • RM_RiskForLots: the money that lot size risks at that distance.
  • RM_RequiredWinRate: the win rate a reward multiple must beat to stay profitable.
  • RM_ExpectedValue: the expectancy of a system in account money per trade.
  • RM_CompoundBalance: the balance multiple after a run of trades at fixed fractional risk.
  • RM_RewardMultiple, RM_StopForTarget, RM_NormalizeLots, RM_MarginLots and RM_Drawdown complete the set.

How to check it yourself

Write a one line script that prints RM_RequiredWinRate(1.8). You get 35.7 percent, and you can check it by hand: one win at 1.8 R against one loss breaks even at 1 divided by 2.8.

Setup

Copy the compiled file into MQL5/Libraries, or add RiskMathToolkit.mqh to your own source, and refresh the Navigator in the MetaTrader 5 terminal. The demo indicator that produced the screenshots is included with the listing so you can see every function called on live data.

Feedback and support

Your reviews tell the author which functions to add next, and a direct message on mql5.com reaches the author.

Copyright 2026, Saurabh Singh Parihar.

Prodotti consigliati
NATS (Niguru Automatic Trailing Stop) will help you achieve more profits, by setting the trailing stop automatically. Pair this NATS application with EA, or can also be used as a complement to manual trading. A trailing stop is a powerful tool in trading that combines risk management and profit optimization.  A trailing stop is a type of market order that sets a stop-loss at a percentage below the market price of an asset, rather than a fixed number. It dynamically adjusts as the asset’s pric
FREE
Delete Only Pending Orders
Muhammad Usman Siddique
Lo script UZFX - Delete Only Pending Orders per MetaTrader 5 (MT5) è uno strumento semplice ma efficace che rimuove automaticamente tutti gli ordini in sospeso (Buy Limit, Sell Limit, Buy Stop, Sell Stop) dal conto di trading. Questo script è ideale per i trader che desiderano cancellare istantaneamente gli ordini in sospeso senza influenzare le posizioni attive sul mercato. Scopri tutti i miei altri indicatori ed EA per MT4/MT5 >> QUI Caratteristiche: Cancella tutti gli ordini pendenti (Buy
FREE
Set Stop Loss to Breakeven Instantly
Muhammad Usman Siddique
4.6 (5)
Lo script UZFX - Set Stop Loss to Breakeven Instantly per MetaTrader 5 (MT5) è un potente strumento che consente ai trader di spostare rapidamente lo stop loss di tutte le posizioni aperte al loro prezzo di entrata, assicurando operazioni prive di rischio. Questo script è particolarmente utile per gestire in modo efficiente le operazioni attive, assicurando che una volta che una posizione si muove favorevolmente, il trader sia protetto da potenziali perdite. (Visitate il profilo e controllate
FREE
SimpleLotCalculator
Itumeleng Mohlouwa Kgotso Tladi
SimpleLotCalculator: Professional Multi-Symbol Risk Manager Library Stop guessing your lot sizes and start trading with institutional precision. SimpleLotLogic is a high-performance MQL5 developer library designed to solve the number one problem for algorithmic and manual traders: Risk Management. Instead of writing complex math for every new EA, simply plug in this library to calculate the perfect lot size based on your account equity and stop-loss distance. Why Choose SimpleLotLogic? Precis
TradeGate
Alex Amuyunzu Raymond
TradeGate – Product Description / Brand Story “The gatekeeper for your trading success.” Overview: TradeGate is a professional MT5 validation and environment guard library designed for serious traders and EA developers who demand safety, reliability, and market-ready performance . In today’s fast-moving markets, even a small misconfiguration can cause EAs to fail initialization, skip trades, or be rejected by MQL5 Market. TradeGate acts as a smart gatekeeper , ensuring your EA only operates un
Static Text display
Muhammad Saad Khan
Visualizzazione di Testo Statico è un Expert Advisor (EA) leggero e facile da usare per MetaTrader 5, progettato per ispirare ed educare i trader mostrando suggerimenti di trading motivazionali direttamente sul tuo grafico. Con un elegante sfondo nero centrato e testo bianco in un font a spaziatura fissa, questo EA offre consigli concisi e pratici in frammenti rotanti per mantenerti concentrato su un trading disciplinato. Perfetto sia per i principianti che per i trader esperti, promuove princip
FREE
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
K Trade Lib5
Kaijun Wang
2 (1)
MT4/5通用交易库(  一份代码通用4和5 ) #import "K Trade Lib5.ex5"    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单    void SetMagic( int magic, int magic_plus= 0 ); void SetLotsAddMode(int mode=0,double lotsadd=0);    long OrderOpenAdvance( int mode, int type, double volume, int step, int magic, string symbol= "" , string comm
FREE
Lo script UZFX - Close All Open Buy & Sell Orders Instantly per MetaTrader 5 (MT5) è un potente strumento che consente ai trader di chiudere immediatamente tutte le posizioni attive sul mercato con un'unica esecuzione. Questo script è ideale per la gestione delle operazioni di emergenza, aiutando i trader a uscire rapidamente dal mercato in caso di alta volatilità, eventi di cronaca o aggiustamenti della strategia. Caratteristiche: Chiude tutte le posizioni aperte di acquisto e vendita su tut
FREE
News Filter Library MT5
Niquel Mendoza
5 (1)
This library allows you to automatically filter events by symbol. Additionally, it requires the use of "flags" to classify events based on their importance (high, low, etc.). Properties: Our library is simple and only requires the export of four functions to work properly. Requirements: The library uses OnTimer , so it is not compatible with programs that also use this event. If your bot utilizes OnTimer , this may interfere with the library’s functionality and prevent event filtering. We recomm
FREE
Prop Guard
Shipra Gupta
Prop Guard Prop Guard è una libreria MQL5 gratuita per gli sviluppatori di Expert Advisor MetaTrader 5 (MT5): MQL5 library, prop firm rules, FTMO style daily loss limit, max drawdown, trailing drawdown, funded account protection. Importala in qualsiasi EA, indicatore o script con un #import e usala dal vivo e nello Strategy Tester per creare sistemi di trading algoritmico più robusti e adatti alle prop firm su forex, oro (XAUUSD), indici e cripto. Rendi qualsiasi EA sicuro per le prop firm. Prop
FREE
LSTM Library
Thalles Nascimento De Carvalho
LSTM Library - Reti Neurali Avanzate per MetaTrader 5 Libreria Professionale di Reti Neurali per il Trading Algoritmico LSTM Library porta la potenza delle reti neurali ricorrenti alle tue strategie di trading in MQL5. Questa implementazione di livello professionale include reti LSTM, BiLSTM e GRU con funzionalità avanzate tipicamente disponibili solo in framework specializzati di machine learning. "Il segreto del successo nel Machine Learning per il trading risiede nel trattamento adeguato dei
UZFX - Delete All Drawing and Objects on Chart Instantly è uno script MetaTrader 5 (MT5) semplice ma potente, progettato per rimuovere istantaneamente tutti gli oggetti di disegno dal grafico attivo. Questo script è utile per i trader che hanno bisogno di ripulire rapidamente i loro grafici dai disegni dell'analisi tecnica, dalle linee di tendenza, dagli strumenti di Fibonacci, dalle etichette di testo e da altri oggetti senza doverli cancellare manualmente uno per uno. Caratteristiche: Elim
FREE
Auto trading so strong mt5 trading script so rich and running amazing auto trading trades with so high quality performance and results Look that is the best trading script that will help you to make good results like in screenshots i built that strategy depend on Envelopes indicator to make that script trading in that area excellent scalping trades and gain maximum good results per trade so i built that strategy manually then I make it auto trading  so to start use that script add to scripts aft
Lib5 EAPadPRO for MT5
Vladislav Andruschenko
4.5 (6)
EAPADPRO Library for MetaTrader 5 è una libreria professionale gratuita di interfaccia per aggiungere un pannello informativo moderno al tuo Expert Advisor. La libreria è pensata per sviluppatori MQL5 che vogliono dare ai propri programmi di trading una presentazione visiva più pulita, più informativa e più professionale direttamente sul grafico di MetaTrader 5. Gli Expert Advisors per MetaTrader 5 spesso contengono logiche più complesse, molte impostazioni, filtri per Magic number, regole di es
FREE
Titolo: Auto Multi Support & Resistance Pro - Linee S/R Intelligenti [Descrizione] Smetti di tracciare linee manualmente! Lascia che "Auto Multi Support & Resistance Pro" trovi i punti pivot più precisi per il tuo scalping e day trading. Altamente ottimizzato per timeframe brevi (M1, M5, M15) e asset volatili come l'Oro (XAUUSD) e gli Indici, dove le false rotture sono comuni. [Caratteristiche Principali] 1. Generazione Automatica Multi-Linea: Traccia automaticamente il numero desiderato di l
FREE
This simple logging library is designed to provide clear and contextual log output with minimal hassle. It exposes five  methods: LogError Message (message) LogWarn Message (message) LogInfo Message (message) LogDebug Message (message) LogTrace Message (message) Each method prints the provided message to the console only if the severity level meets or exceeds the current threshold set by a global variable logLevel. This means you control the verbosity of your application's logs by adjusting logL
FREE
Turn your manual trades into fully automated profit machines! This powerful MT5 EA takes over the moment you open a position — no delays, no stress. It instantly places Stop Loss and Take Profit, activates customizable trailing, and locks in profits while protecting your capital Perfect for scalpers: Every trade is immediately secured, giving you the freedom to focus on sniping the best entries while the EA handles all the management work in the background. Auto SL/TP Full trailin
FREE
Bridge API DhanHQ v2 per MetaTrader 5 Collega MetaTrader 5 al tuo conto di trading DhanHQ e gestisci ordini, posizioni, fondi e portafoglio direttamente da MQL5. Questa libreria integra le API REST ufficiali di DhanHQ v2 (NSE, BSE, MCX), consentendoti di creare Expert Advisor (EA), script e strategie automatizzate su piattaforma Dhan. Funzionalità - Ciclo di vita completo dell'ordine: invio, modifica, cancellazione, suddivisione (slice), registro ordini (order book), ordine per ID, ordine per
This indicator has the server time and also mainly has the candle timer which can mean the difference between loss and profit so from 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hour, day, week and even month to let you you know where you are and how much time you have to stay in the trade or get out espcially before news, all you have to do is just load the indicator and select on which corner you want it on, default is top left but i prefer lower left. 
FREE
Dual Scale Candles
Mohamed Amr Mohamed Osama Abdelwahab
Dual Scale Candles sovrappone le candele reali di un secondo simbolo direttamente sul tuo grafico, con una scala di prezzo indipendente sull'asse sinistro. Confronta l'oro con una valuta, il petrolio con un indice o due strumenti qualsiasi sullo stesso grafico - ciascuno mantiene i propri prezzi reali. Le due serie sono allineate nel punto che scegli: la prima barra del giorno corrente mostrata sul grafico, la prima barra della settimana corrente o la barra più vecchia disegnata - sulla barra d
FREE
This library returns the largest lot whose loss at your stop does not exceed the money you allow it to risk, correct for any volume step, tick size and tick value the symbol reports. I wrote it for the MQL5 developer who has pasted a lot-normalising block into every EA and can no longer say which copy is right. One import, one version, and a call that refuses rather than oversizing. WHAT IT DOES It refuses instead of oversizing: when the smallest lot the symbol accepts would risk more than your
FREE
SessionClock SessionClock è una libreria MQL5 gratuita per gli sviluppatori di Expert Advisor MetaTrader 5 (MT5): MQL5 library, DST daylight saving time, broker GMT offset, trading sessions, London New York Tokyo session, Strategy Tester time fix. Importala in qualsiasi EA, indicatore o script con un #import e usala dal vivo e nello Strategy Tester per creare sistemi di trading algoritmico più robusti e adatti alle prop firm su forex, oro (XAUUSD), indici e cripto. Orologio del broker e sessioni
FREE
A dependency-free MQL5 library of independent building blocks for Expert Advisor developers: risk-based position sizing, stop construction, spread filter, logging, state persistence and a retry state machine. No strategy, no profit claims. --- ARV EA Toolkit is a dependency-free library of independent modules for MQL5 Expert Advisor developers. Use only what you need; the modules do not depend on each other except for a tiny shared defines header. It contains no trading strategy and makes no
FREE
Lazy Bar Replay
Lum Zhen Quan
5 (1)
Lazy Replay The LazyReplay  is a specialized MQL5 indicator designed to facilitate manual backtesting by simulating a "live" market environment on historical data . It allows traders to practice price action strategies by hiding future bars and revealing them at a controlled pace. Key Features Dynamic Chart Masking : Uses a background-colored rectangle to hide all price action to the right of a chosen "anchor" bar, effectively removing hindsight bias during practice . Playback Controls : Include
FREE
Fast Local Trade Copier
Margarita Florencia Del Aguila
Fast Local Trade Copier is a 100% free, unrestricted multi-terminal trade copier for MetaTrader 5 accounts running on the same PC or Windows VPS. There are no artificial symbol limits, no concurrent trade limits, no Demo-only locks, no expiry dates, and zero popup nagware. I built it around the exact same double-buffered CRC32 shared bus architecture used in our paid terminal utilities, giving everyday traders fast, clean local synchronization inside a single standalone .ex5 file with zero ext
FREE
Introducing "PropFirm Consistency Analyst" — your dynamic companion for achieving consistency in proprietary trading. This innovative Expert Advisor operates seamlessly, continuously calculating consistency metrics between two specified dates, providing real-time insights throughout the trading month. Tailored specifically for prop traders, this tool serves as a dedicated ally in meeting the stringent consistency requirements set by some proprietary firms. By evaluating trading performance on
FREE
SignalXpert
Steve Rosenstock
5 (4)
CLICCA QUI PER VEDERE TUTTI I MIEI PRODOTTI GRATUITI SignalXpert è stato sviluppato da me per offrire ai trader che utilizzano l’indicatore RangeXpert uno strumento di analisi potente. RangeXpert funge da base del sistema: rileva aree di mercato precise e fornisce i dati che SignalXpert analizza in tempo reale per generare segnali chiari e utilizzabili. Questo consente il monitoraggio simultaneo di fino a 25 diversi asset su più timeframe , rilevando in tempo reale i movimenti di mercato più i
FREE
Regime Lab
Shipra Gupta
Regime Lab Regime Lab è una libreria MQL5 gratuita per gli sviluppatori di Expert Advisor MetaTrader 5 (MT5): MQL5 library, Hidden Markov Model HMM, market regime detection, Hurst exponent, variance ratio, quant. Importala in qualsiasi EA, indicatore o script con un #import e usala dal vivo e nello Strategy Tester per creare sistemi di trading algoritmico più robusti e adatti alle prop firm su forex, oro (XAUUSD), indici e cripto. Indica al tuo EA in quale regime di mercato si trova, con statist
FREE
RSI AutoScale è un RSI pulito e leggero per i trader che usano sia TradingView sia MetaTrader 5 e vogliono che i due grafici abbiano lo stesso aspetto. Cosa mostra - RSI (smoothing di Wilder): gli stessi valori dell'RSI standard, con qualsiasi prezzo applicato. - Linea di segnale sull'RSI: SMA, EMA, SMMA o LWMA, con un proprio periodo. - Livelli: linee superiore, centrale e inferiore (70 / 50 / 30 di default). Usano i livelli nativi di MT5, quindi arrivano fino al bordo destro e i loro valori
FREE
Gli utenti di questo prodotto hanno anche acquistato
XAUUSD BREAKOUT EA — Stop Predicting the Market. Trade the Breakout. You do not need to sit in front of the chart all day waiting for gold to break support or resistance. This XAUUSD Breakout EA is designed to identify market consolidation, detect meaningful price expansion, and automatically execute trades when predefined breakout conditions are met. BACKTEST RESULTS — 99% QUALITY Initial Deposit: $1,000 Total Net Profit: +$21,115 Profit Factor: 2.37 Expected Payoff: $213 per trade Total Tr
ModernUI Library
Levi Dane Benjamin
Libreria ModernUI per MetaTrader 5 ModernUI è una libreria di interfaccia utente ospitata sul grafico per MetaTrader 5. Aiuta gli sviluppatori MQL5 a creare pannelli EA più puliti, dashboard, finestre di impostazioni, form, tabelle, finestre di dialogo, drawer e interfacce compatte in stile trading direttamente nell’ambiente grafico di MT5. È progettata per gli sviluppatori che vogliono un livello di interfaccia più professionale rispetto a oggetti grafici sparsi, mantenendo comunque il pieno co
Native Websocket
Racheal Samson
5 (6)
An   easy to use, fast,  asynchronous   WebSocket library  for MQL5. It supports: ws://   and   wss://  (Secure "TLS" WebSocket) text   and   binary   data It handles: fragmented message  automatically (large data transfer) ping-pong   frames  automatically (keep-alive handshake) Benefits: No DLL required. No OpenSSL installation required. Up to 128 Web Socket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native t
MT5 to Delta Exchange API Bridge EA Connector allows your expert advisor with mq5 file to integrate and communicate with Delta Exchange using API Keys You can place order, check balance and other order managements using Delta Exchange API - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Cancel Order - Query Orders - Change Leverage, margin - Get Position info and many more, details available at demo script Script Documentation 
EX5 Signal Copier
Rajesh Kumar Nait
Libreria EX5 Signal Copier — Motore professionale per eventi di trading per MetaTrader Trasforma qualsiasi Expert Advisor in un potente copiatore di trading, processore di segnali o motore di automazione, senza dover scrivere complesse logiche di tracciamento delle operazioni. La libreria EX5 Signal Copier è un sistema ad alte prestazioni basato su eventi che cattura ogni attività di trading in MetaTrader 5 e la converte in segnali strutturati che puoi utilizzare per creare: Copiatori di trad
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions. Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lot (1,3,5,8,13) you can use it in different way calculate when loss=1 ,when profit=0. Mode 2: Multiplier Lot (1,2,4,8,16) you can use it in different way calculate when loss=1 ,when profit=0. Mode 3: Plus Lot (1,2,3,4,5) you can use it in different way calculate when loss=1 ,when profit=0. Mode 4: SL/Risk Lot calculate based on s
Friends, join us! Ask questions and connect with like-minded traders: MetaCOT Public Group MetaCOT Information Channel: news, CFTC reports, and signals: MetaCOT Channel Here’s to successful trading and new profitable signals for us all! Attention! Recently, certain countries have been blocking access to the cftc.gov website. As a result, users in these countries are giving the product low ratings. MetaCOT has always adhered to the highest quality standards and is in no way associated with th
WalkForwardOptimizer MT5
Stanislav Korotky
3.63 (8)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
OrderBook History Library
Stanislav Korotky
3 (2)
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
BitMEX Trading API
Romeu Bertho
5 (1)
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
Teclado trader, é uma BIBLIOTECA que você pode chamar no OnChartEvent para abrir posição de compra/venda/zerar, os botões padrões são: V = venda C = compra Z = zerar posições a mercado S = zerar posições opostas e depois a mercado X = zerar posições opostas Além da função de teclado, é possível mostrar os estados do ExpertAdvisor usando o MagicId, com informação de: lucro mensal, semanal, diario, e posição aberta, para isto use o OnTick, ou qualquer outro evento (OnTimer / OnTrade / OnBookEven
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
Gold plucking machine   Gold plucking machine is an Expert Advisor designed specifically for trading gold. The operation is based on opening orders using the Fast and Slow lines indicator, thus the EA works according to the "Trend Follow" strategy, which means following the trend. Use grid strategy to place orders without stop loss operation, so please make sure the account has sufficient funds. magic number      -  is a special number that the EA assigns to its orders. Lot Multiplier        - 
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support Binance Futures USD-M and COIN-M Support Testnet mode Support all order types: Limit, Market, StopLimit, StopMarket, StopLoss and TakeProfit Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header file and EA sample https://drive.google.com/uc?export=download&id=17fWrZFeMZoSvH9-2iv4WDJhcyxG2eW17 Copy BinanceFutures.mqh to folder \MQL5\Include Copy  Bina
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
Binance Library MetaTrader 5 connects your Expert Advisors, indicators, and scripts to Binance.com and Binance.US directly from MetaTrader 5. It is a developer library for building custom Binance integrations inside MT5, not a standalone trading robot or copier. The library helps you add Binance instruments to Market Watch, read symbol specifications, load current and historical market data, check wallet balances, manage orders, and track open positions. It supports Spot, USD-M futures, and COI
1. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
T5L Library is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core is the core of the optimization algorithm, it is a library built on the author's HMA (hybrid metaheuristic algorithm) algorithm. Pay attention to the MT5 Optimization Booster product , which makes it very easy to manage the regular MT5 optimizer . An example of using AO Core is described in the article: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/en/blogs/post/756510 This hybrid algorithm is based on a genetic algorithm and contains the best qualities and properties of p
EA Toolkit
Esteban Thevenon
EA Toolkit   is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installat
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
Questa libreria ti consentirà di gestire le operazioni utilizzando qualsiasi tuo EA ed è molto facile da integrare su qualsiasi EA, cosa che puoi fare tu stesso con il codice script menzionato nella descrizione e anche esempi demo su video che mostrano il processo completo. - Ordini con limite di posizionamento, limite SL e limite di take profit - Ordini di mercato, mercato SL, mercato TP - Modifica ordine limite - Annulla Ordine - Interroga gli ordini - Cambia leva, margine - Ottieni inf
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
OpenAI Library MT5
VitalDefender Inc.
La seguente libreria si propone come un mezzo per poter utilizzare le API di OpenAI direttamente sulla metatrader, nella maniera più semplice possibile. Per maggiori approfondimenti sulle potenzialità della libreria, leggere il seguente articolo: https://www.mql5.com/it/blogs/post/756106 I file necessari per usare la libreria li trovate qui: Manuale IMPORTANTE: Per utilizzare l'EA è necessario aggiungere il seguente URL per consentire l'accesso all'API OpenAI c ome mostrato nelle immagini allega
Altri dall’autore
Edge Sifter X
Saurabh Singh Parihar
Cosa fa questo robot Expert Advisor per MetaTrader 5 (MT5). Il tuo metodo funziona su questa coppia, o sembra solo funzionare? La maggior parte dei robot sceglie un indicatore e lo usa su ogni grafico. Edge Sifter X fa l opposto. Legge un mercato in sei modi diversi: un allineamento di medie mobili, un incrocio ADX, un ritracciamento RSI, una rottura di struttura, un vuoto di tre barre e una candela che gira su uno swing reale. Ognuno viene misurato sulle candele chiuse di questo simbolo, valuta
FREE
Apex Gold Sniper
Saurabh Singh Parihar
Apex Gold Sniper e un Expert Advisor basato esclusivamente su candele chiuse per XAUUSD e coppie principali su M15, H1 e D1. I segnali combinano SMA(50), incrocio LWMA(5), struttura di swing e inclinazione dell'EMA(50) su timeframe H1. Expert Advisor per MetaTrader 5 (MT5). E se il vero trend dell'oro si vede solo a candela chiusa? Questo EA opera solo ciò che vede. Prima di ogni operazione controlla StopsLevel, FreezeLevel, spread massimo, distanza minima dello stop (8x spread), stop struttural
FREE
Pulse Band Fade
Saurabh Singh Parihar
Cosa fa questo EA Expert Advisor per MetaTrader 5 (MT5). Dove ha ancora spazio una tendenza? È l'unica candela che questo EA aspetta. Pulse Band Fade lavora sulle candele H1 chiuse e opera una sola direzione: quella che i trend di H4 e H1 indicano gia. Il trend H4 deve essere in accordo con quello H1, quindi entrambe le unita puntano dallo stesso lato. La candela di segnale deve chiudere con un corpo tra il 45% e il 65% del proprio range e fuori dalla EMA 20 di H1, cosi le candele di esaurimento
FREE
Session Heat Radar
Saurabh Singh Parihar
Cosa risponde questo radar Indicatore tecnico per MetaTrader 5 (MT5). Quale valuta e davvero la piu forte adesso, e quale coppia merita la tua prossima occhiata? I comuni misuratori di forza mostrano un muro di numeri e lasciano a te il passo successivo. Session Heat Radar legge solo candele chiuse, classifica USD, EUR, GBP, JPY, AUD, NZD, CAD e CHF sul timeframe che scegli, poi indica la coppia in cui la valuta piu forte si trova contro la piu debole. Otto righe di forza, ciascuna con il punteg
FREE
Adaptive Trend Matrix
Saurabh Singh Parihar
Adaptive Trend Matrix visualizza cinque righe di allineamento su timeframe diversi (M5, M15, H1, H4 e D1) in una sottofinestra dedicata insieme al rapporto di espansione ATR a 3 e 21 giorni. Indicatore tecnico per MetaTrader 5 (MT5). I tuoi tre time frame raccontano la stessa storia, o solo uno di loro? Ogni blocco valuta solo candele gia chiuse tramite incrocio EMA e forza ADX. La barra in formazione non viene letta, evitando qualsiasi repainting sullo storico. Caratteristiche principali Calcol
FREE
Closed Bar Body Momentum individua candele impulsive allineate con trend EMA, forza ADX e margine strutturale, evitando candele di esaurimento. Indicatore tecnico per MetaTrader 5 (MT5). Cosa ha detto davvero l'ultima candela chiusa su chi ha il controllo? Frecce e riferimenti SL/3R vengono disegnati esclusivamente alla chiusura della barra senza repainting. Funzioni principali Nessun repainting: oggetti ancorati alla chiusura della candela. Calibrazione per singolo simbolo contro corpi eccessiv
FREE
Swing Room Flow
Saurabh Singh Parihar
Cosa vedi sul grafico Indicatore tecnico per MetaTrader 5 (MT5). C'è ancora spazio sopra, o il prezzo sta per sbattere contro un muro? Swing Room Flow legge solo candele chiuse. Trova massimi e minimi di swing e marca i momenti in cui il prezzo rompe la struttura, quindi vedi se il mercato attraversa l ultimo punto di svolta o rimbalza su di esso. Freccia blu verso l alto: rottura rialzista della struttura, l ultimo massimo di swing viene recuperato. Freccia rossa verso il basso: rottura ribassi
FREE
Chart Widget Studio
Saurabh Singh Parihar
Cosa ricevi E se un grafico potesse mostrare un indicatore, una griglia di calore e un misuratore live, senza un solo oggetto grafico? Chart Widget Studio è una libreria compilata di widget pronti per i grafici di MetaTrader 5. Una sola chiamata disegna un indicatore a lancetta, un grafico a linee, una mappa di calore, una scheda di testo, una barra di misura o un'etichetta di stato sul tuo grafico, e la libreria tiene il disegno sulla propria tela. Lancetta con ago, valore mostrato e fascia opz
FREE
Indicatore tecnico per MetaTrader 5 (MT5). Vuoi che la struttura degli swing sul grafico resti esattamente dove la candela chiusa l'ha lasciata. Structure Shift Painter disegna massimi e minimi di swing confermati e rotture di struttura solo su candele chiuse, quindi dopo la chiusura non si sposta piu nulla. Quali parti del tuo grafico preferisci leggere senza aspettare un ricalcolo? Cosa disegna Un massimo di swing viene segnato solo se il numero di candele configurato su ciascun lato e piu bas
FREE
Stop Room Auditor
Saurabh Singh Parihar
Cosa risponde questo auditor Pannello di utilità per MetaTrader 5 (MT5). Il tuo trade ha davvero spazio per respirare? Uno stop puo essere corretto sulla carta e comunque posizionato male, perche poco sopra o poco sotto c'e un massimo o un minimo di swing. Stop Room Auditor misura quella distanza per te. Legge solo candele H1 chiuse, tratta il tuo stop come un multiplo dell'ATR, trova lo swing confermato piu vicino in entrambe le direzioni e ordinare ogni simbolo del Market Watch per lo spazio r
FREE
Broker Rule Sheet
Saurabh Singh Parihar
Cosa annota questo script Script per MetaTrader 5 (MT5). Quali limiti applica davvero il tuo broker a questo simbolo? Una dimensione di lotto che funziona su una coppia di valute può essere rifiutata sull'oro, e uno stop valido su un simbolo è troppo stretto su quello successivo. Broker Rule Sheet risponde a questa domanda in una sola esecuzione. Legge il simbolo del grafico, raccoglie i limiti che il tuo broker applica, li mostra in un unico pannello e scrive gli stessi valori in un file CSV. L
FREE
Symbol Behavior Profiler
Saurabh Singh Parihar
Symbol Behavior Profiler e un pannello analitico e calcolatore di rischio per MetaTrader 5. Analizza i simboli su barre chiuse e segnala anomalie dello spread prima dell'ingresso. Perché la tua coppia preferita si comporta diversamente da ogni grafico che hai studiato? Non invia ordini automatici. Mostra regime di mercato, rapporto spread M5, aspettativa su pullback/momentum e lotto legale calcolato sullo step del broker. Funzioni: ordinamento rapido, filtro grafico singolo e esportazione CSV. N
FREE
Trade Journal Exporter
Saurabh Singh Parihar
Cosa annota questa utilità Utilità per MetaTrader 5 (MT5). Puoi dimostrare cosa ha fatto il tuo account il mese scorso? Uno screenshot del grafico non è una registrazione. Trade Journal Exporter legge le operazioni chiuse dalla cronologia del terminale e le scrive in un file CSV, così i numeri sopravvivono alla chiusura del terminale. Una riga per operazione: simbolo, direzione, tipo di ingresso, volume, prezzo, profitto, swap, commissione, ora, magic number e commento. Una riga di riepilogo e u
FREE
Spread Choke Radar
Saurabh Singh Parihar
Cosa risponde il pannello Pannello di utilità per MetaTrader 5 (MT5). Lo spread del tuo broker sta mangiando il tuo stop prima che il trade inizi? Prima di posizionare uno stop, lo spread decide gia se quello stop ha senso. Spread Choke Radar scansiona il Market Watch e risponde a una domanda per simbolo: quanto del range di oggi costerebbe uno stop sicuro, e se l operazione rientra nel tuo tetto di rischio. Spread corrente in punti, letto dal tick in tempo reale di ogni simbolo. Range vero medi
FREE
Risk Guard Assistant
Saurabh Singh Parihar
Risk Guard Assistant e un'utilita visiva per MetaTrader 5 progettata per calcolare con precisione lotti sicuri, rischio monetario e rapporto rischio/rendimento direttamente sul grafico. Quanto rischi davvero quando entrano in gioco le regole del tuo broker? Pianificazione Interattiva Pulsanti BUY PLAN, SELL PLAN e RESET 1: 3 con linee trascinabili per Ingresso, Stop Loss e Take Profit. Aggiornamento in tempo reale di distanza SL rispetto allo spread, margine richiesto e proiezione profitti. Moto
FREE
Account Limits Snapshot
Saurabh Singh Parihar
Cosa annota questo script Script per MetaTrader 5 (MT5). Conosci i limiti di negoziazione di ogni simbolo sul tuo broker? L'oro non è una valuta: il lotto minimo, il livello di stop, il valore del tick e lo swap sono diversi, e cambiano da broker a broker. Account Limits Snapshot legge ogni simbolo in Market Watch e scrive i limiti che il tuo broker applica davvero in un file CSV, così le differenze sono su disco invece che in una conversazione con l'assistenza. Cifre decimali, livello di stop e
FREE
Daily Range Ruler
Saurabh Singh Parihar
What this indicator answers Technical indicator for MetaTrader 5 (MT5). Where does today's price run out of room? Yesterday's range is still the ruler most traders use, and the range the current day has already spent tells you how much of that room is gone. Daily Range Ruler prints the previous day's high, low and midpoint as fixed lines, paints the range the current day has used so far as a band behind the candles, and measures that band against your own typical day. Every level is read from cl
FREE
Squeeze Sniper X
Saurabh Singh Parihar
Squeeze Sniper X e un indicatore per MetaTrader 5 senza repainting che unisce compressione di volatilita Bollinger/Keltner e istogramma momentum con regressione lineare. Come si presenta un mercato negli ultimi minuti di calma prima dello scatto? Architettura senza repainting Valutazione limitata alle barre chiuse; la candela in formazione resta vuota per bloccare lo storico. Sincronizzazione immediata con timer di fallback 400 ms al cambio simbolo/timeframe. Verificato nello Strategy Tester su
Chart Object Exporter
Saurabh Singh Parihar
What this utility writes down Utility for MetaTrader 5 (MT5), shipped as a script. Can you prove what your chart actually contained? A screenshot is not a record, and a saved template loses the story. Chart Object Exporter reads every object on the chart it is attached to and writes one CSV row per object plus a readable HTML report into MQL5/Files. It creates nothing, changes nothing and sends no orders, so an analysis setup can be archived, compared or handed to somebody else without a screens
FREE
Position Size Math
Saurabh Singh Parihar
Cosa risponde questa libreria Libreria compilata per MetaTrader 5 (MT5). Quanti lotti può davvero prendere questo conto? Se sbagli, uno stop che funziona su EURUSD viene rifiutato su XAUUSD. Position Size Math è una libreria compilata di funzioni aritmetiche pure che altri Expert Advisor, indicatori, script e passaggi di ottimizzazione chiamano invece di riscrivere ogni volta la stessa matematica. Niente trading, niente ordini, niente file e niente oggetti del grafico: ogni funzione prende numer
FREE
Trade Stats Export
Saurabh Singh Parihar
Cosa scrive questo script Script per MetaTrader 5 (MT5). Cosa ha fatto realmente il tuo conto lo scorso mese? Un estratto conto è difficile da consultare e uno screenshot non è un documento. Trade Stats Snapshot scansiona la cronologia degli scambi del tuo conto e scrive una riga CSV per ogni operazione chiusa più un riepilogo HTML in MQL5/Files - ticket, ora, simbolo, tipo, volume, prezzo, profitto, commissione, swap e commento - in modo da poter archiviare, confrontare o consegnare la tua cron
FREE
Bar Time Remaining
Saurabh Singh Parihar
Cosa mostra questo indicatore Indicatore tecnico per MetaTrader 5 (MT5). Quanto tempo manca prima che questa candela si chiuda? Candle Countdown risponde a questa domanda a colpo d'occhio. Legge i tempi di apertura e chiusura della candela attuale e mostra i minuti e i secondi rimanenti prima della chiusura, oltre a una barra di avanzamento che cresce man mano che la candela si sviluppa. Nessun trading, nessun ordine, nessun clic sul pannello: un ausilio visivo di sola lettura per il tuo grafico
FREE
Session Clock Panel
Saurabh Singh Parihar
Cosa mostra questo script Script per MetaTrader 5 (MT5), fornito come utility. In quale sessione si trova davvero il tuo grafico adesso? Asiatica, Europea, Americana o Pacifica cambiano il comportamento dei simboli, e la risposta non è sempre ovvia dall'orologio a muro. Session Clock Panel legge l'ora del server, nomina la sessione e conta i minuti fino al prossimo confine. L'ora del server del terminale, al secondo. La sessione attiva per ora UTC: Asiatica (00-06), Europea (06-12), Americana (1
FREE
Session Clock Live
Saurabh Singh Parihar
Cosa mostra questa utility Utilità per MetaTrader 5 (MT5). In quale sessione si trova il tuo grafico adesso e quando finisce? Asiatica, Europea, Americana o Pacifica cambiano il comportamento dei simboli, e la risposta non è sempre ovvia dall'orologio a muro. Session Clock Live risponde dal vivo: il pannello si aggiorna ogni pochi secondi, così il conto alla rovescia verso il prossimo confine di sessione è sempre attuale. L'ora del server del terminale, al secondo. La sessione attiva per ora UTC
FREE
Filtro:
Nessuna recensione
Rispondi alla recensione