Position Size Math

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 numeri e restituisce un numero.

  • RiskLotSize: la dimensione del lotto che rischia una quota fissa del capitale a una data distanza di stop.
  • MoneyValueOfMove: il valore in denaro di un movimento di prezzo di qualsiasi distanza a una data dimensione del lotto.
  • RMagnitude: quanti multipli R rappresenta un profitto rispetto alla distanza di stop.
  • DrawdownPercent: il drawdown in percentuale tra un picco e il valore attuale.
  • ValueAfterDrawdown: il capitale che una percentuale di drawdown raggiungerebbe da un picco.
  • NormalizeLots: normalizza una dimensione del lotto ai limiti di volume e allo step del broker.
  • MinStopDistance: la distanza di stop più vicina consentita in base a stop level, freeze level e spread.
  • CompoundValue: crescita composta su più periodi a un rendimento per periodo.
  • MinimalBalanceForRisk: il capitale che sopravvive a una serie di perdite consecutive.

Come verificarlo da solo

Scrivi uno script di una riga che stampa RMagnitude(450, 150) - ottieni 3, cioè 3 R. Verifica a mano: 450 diviso 150 è 3.

Installazione

Copia il file compilato in MQL5/Libraries, aggiungi PositionSizeMath al tuo codice e aggiorna il Navigator nel terminale MetaTrader 5. Poi chiama qualsiasi funzione dal tuo Expert Advisor, indicatore, script o passaggio di ottimizzazione.

Recensioni e supporto

Le tue recensioni dicono all'autore quali funzioni aggiungere dopo, e un messaggio diretto su mql5.com raggiunge l'autore.

Copyright 2026, Saurabh Singh Parihar.

Prodotti consigliati
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
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
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
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
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
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
Overview AlgoNLP.mqh is a standalone MQL5 library designed to convert natural-language trading instructions into structured trade intents that can be processed by Expert Advisors (EAs) and custom indicators. It provides a lightweight text-parsing interface for developers who want to integrate plain-language command processing into their MetaTrader 5 applications. Example input: Buy gold at 2370 with TP 0.3% and SL 1% Parsed output: Side: BUY | Type: LIMIT | Symbol: XAUUSD | Entry: 2370 | TP: 0.3
FREE
Lo script UZFX - Margine richiesto e dimensione massima del lotto per MetaTrader 5 (MT5) è stato progettato per aiutare i trader a determinare rapidamente il margine richiesto per aprire una posizione a 1 lotto e a calcolare la dimensione massima del lotto che possono negoziare in base al patrimonio netto del conto corrente. Questo strumento è essenziale per la gestione del rischio e il dimensionamento delle posizioni, consentendo ai trader di pianificare le loro operazioni in modo efficiente.
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
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
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
INTRODUCING MML Data Bridge The demand for bridging external data and machine learning with trading platforms is higher than ever. MetaTrader 5 is a powerful environment for trading and back testing, but without a data bridge, MT5 is largely isolated from using any external data. MML Bridge is a developer tool that allows users to bridge external data into MT5 for back testing, live trading, and optimization. It's built for ease of use, providing users with a simple function API that drip-feeds
FREE
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
Want to AUTOMATE this strategy? We have released the fully automated Expert Advisor based on this logic. Check out Range Vector Fibo Logic EA here:  https://www.mql5.com/en/market/product/158065 UPGRADE AVAILABLE: Tired of manual trading? I just released the Automated MTF Version with Mobile Alerts and Auto-Targets. Get the Pro Version here: https://www.mql5.com/en/market/product/159350 Range Vector Fibo Logic (Indicator) One Candle Strategy Stop waking up at 3 AM to draw lines manually. Range
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
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
Orange Indicator by Quant Atlas Creator:  https://www.quant-atlas.com/ Orange Indicator is a clean reversal focused indicator for MetaTrader 5, designed to highlight potential turning points directly on the chart using simple orange buy and sell markers. The indicator focuses on moments where price may be transitioning out of short term exhaustion and into a possible reaction phase. When a bullish setup appears, an orange upward triangle is displayed below the candle. When a bearish setup appear
FREE
HiveLoggerMT5
Sergey Chekhovskikh
HiveLoggerMT5 is a compiled logging library for MQL5 programs. One call writes a short human-readable line to the Experts journal and the full event as one JSON line into a local file inside the terminal sandbox. An expert, service or script leaves a machine-readable trace that any JSON-aware tool can filter and analyze later. No DLLs, no network access, no external dependencies. Two journals in one call Each accepted event produces: a one-line entry in the Experts journal — level, stable event
FREE
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
Toolkit Utility
Mohamed Maguini
Sniper Utility Rimani sempre aggiornato sui tuoi trade, ovunque tu sia. Sniper Utility invia notifiche immediate ogni volta che uno dei tuoi ordini raggiunge il Take Profit o lo Stop Loss . Perfetta per trader attivi che desiderano monitorare le proprie operazioni senza dover controllare costantemente il terminale. ️ Funzionalità principali Notifica istantanea alla chiusura dell’ordine (TP o SL) Compatibile con notifiche push su dispositivi mobili Supporto per ordini manuali, EA e p
Risk Math Toolkit
Saurabh Singh Parihar
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 pas
FREE
MarketPro toolkit
Johannes Hermanus Cilliers
Start earning profits by copying All trades are sent by our successful Forex trader & are extremely profitable. You can earn profits by copying trades daily Trial Period included You'll also get access to extremely powerful trading education which is designed in a simple way for you to become a profitable trader, even if you have no trading experience. https://ec137gsj1wp5tp7dbjkdkxfr4x.hop.clickbank.net/?cbpage=vip
FREE
Automated Timeframe cycling with Symbols centered.  Force every timeframe onto one clock window, so the story you see on Daily is the same story you are slicing on H4, H1, and M1.  Traders usually flip timeframes and lose the span. A Daily chart shows a few weeks, then M15 shows a few hours, and the eye treats them as different markets. This indicator locks the window to N bars of the highest enabled timeframe — default 10 Daily — and maps every lower timeframe to that same stretch. You stay ins
FREE
Volume profile CVD Frato
Francisco Felipe Alves Da Silva Rocha
5 (3)
Frato Volume Profile Pro v7.5 Sviluppato da Frato Academy Questo indicatore visualizza il profilo prezzo-volume per MetaTrader 5. Calcola la distribuzione del volume scambiato per livello di prezzo su un periodo configurabile e presenta i risultati direttamente sul grafico principale. Caratteristiche: Profilo di volume con gradiente di colore L'indicatore divide l'intervallo di prezzo in livelli e assegna un volume corrispondente a ciascun livello. Il colore di ogni livello varia con un grad
FREE
High Low Open Close
Alexandre Borela
4.98 (46)
Se ti piace questo progetto, lascia una recensione a 5 stelle. Questo indicatore disegna i prezzi aperti, alti, bassi e di chiusura per i specificati periodo e può essere regolato per un determinato fuso orario. Questi sono livelli importanti guardati da molti istituzionali e professionali commercianti e può essere utile per voi per conoscere i luoghi dove potrebbero essere più attivo. I periodi disponibili sono: Giorno precedente. Settimana precedente. Mese precedente. Precedente trimestre. A
FREE
Trading Notes MT5
Suvashish Halder
Trading Notes   is an innovative tool designed for traders to streamline their decision-making process by allowing them to write and display important reminders or short details directly over their trading charts. This essential feature ensures that traders have quick access to their personalized checklist before opening any positions, enhancing their trading efficiency and accuracy. MT4 Version -  https://www.mql5.com/en/market/product/120613 Join To Learn Market Depth -  https://www.mql5.co
FREE
Indicator measures strength of each currency in your list. Main idea: It simply iterates through all combinations of pairs and adds difference between open and close in percent. Parameters: List of currencies - what currencies will be calculated (maximum is 8) Calculation type - from which data will be strength calculated Calculation data input - used as input related to calculation type Symbol suffix - used in case of suffix on symbols, e.g: when your symbols look like EURUSDm, EURUSDmicro etc
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
An equity protector and daily drawdown limiter for prop firm accounts. It closes every trade on the account before your firm's daily loss and max loss, then keeps the account flat until the firm's next day starts. Presets for FTMO, FundedNext, Axi Select and WSF, and your own rules for any other firm. It does not trade and it will not pass a challenge for you. It does the boring part: it keeps the account from dying for the stupid reason, a limit crossed by a few dollars while you were asleep. W
FREE
IMPORTANT NOTE: This is a professional Trade Management Utility and on-chart assistant. It is NOT an automated trading robot. It does not open trades on its own. The UltraFast Trade Manager MT5 is the ultimate execution and risk-management suite designed to give you absolute control over your manual and algorithmic trades. When managing multiple positions, calculating complex net break-even points, or constantly monitoring the economic calendar, hesitation can lead to costly mistakes. This utili
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
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
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
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
Dual Trend Crossover
Saurabh Singh Parihar
What this robot trades Expert Advisor for MetaTrader 5 (MT5). Two moving averages, one rule. When the fast line crosses the slow line on a closed bar, the robot takes one position with that direction and holds it until the cross flips the other way. That is the whole strategy, and it is meant to be. Most robots stack filters until nothing fires and nobody can tell why a trade was or was not taken. This one shows the bias in its own panel, closes the position when the direction changes, and tells
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
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
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
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
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
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
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
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
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
Risk Math Toolkit
Saurabh Singh Parihar
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 pas
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
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
Filtro:
Nessuna recensione
Rispondi alla recensione