Lot Size Library for Any Volume Step

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 limit, the call returns -6 instead of a bigger lot.
  • Legal on any step: the size is floored onto the symbol's own step and never rounded up, so a 0.001-step symbol and a 0.25-step instrument are handled without a decimal count typed by hand.
  • Three ways to state the risk: a money amount, a percentage of balance or equity, or a distance in points, plus the inverse call that says what a given volume risks.
  • You cannot pass a wrong tick size: the library reads the symbol's volume and tick specification itself, at the moment of the call.
  • A sentence for every code: nine error values, each with plain text that says what to check.
  • No state and no orders: it returns a number, never sends, modifies or closes an order, and two calls with the same inputs in the same tick return the same value.

HOW IT WORKS

1. Put chimaster_lots.ex5 in MQL5\Libraries, under your terminal's data folder, and paste the import block below into the EA.

2. Call a sizing function with the symbol, the money you allow it to risk and the distance from entry to stop.

3. Read the number: a positive value is a size, and a negative value is an error code that CMS_ErrorText turns into a sentence.

THE TWELVE CALLS

#import "chimaster_lots.ex5"

double CMS_VolumeMin(const string symbol);

double CMS_VolumeMax(const string symbol);

double CMS_VolumeStep(const string symbol);

int CMS_VolumeDigits(const string symbol);

double CMS_NormalizeVolume(const string symbol, const double requestedVolume);

double CMS_MoneyPerLot(const string symbol, const double priceDistance);

double CMS_LotFromRiskMoney(const string symbol, const double riskMoney, const double stopDistancePrice);

double CMS_LotFromRiskPercent(const string symbol, const double riskPercent, const double stopDistancePrice, const int riskBase);

double CMS_LotFromRiskPoints(const string symbol, const double riskMoney, const double stopPoints);

double CMS_RiskOfVolume(const string symbol, const double volume, const double priceDistance);

string CMS_ErrorText(const int code);

string CMS_Version();

#import

The first four read the symbol's volume specification. CMS_MoneyPerLot turns a price distance into the loss of one lot. CMS_LotFromRiskMoney, CMS_LotFromRiskPercent and CMS_LotFromRiskPoints return the size from money, from a percentage of balance or equity, and from points; the percentage call takes 0 for balance and 1 for equity as its last argument. CMS_RiskOfVolume is the inverse. CMS_ErrorText and CMS_Version are the two string calls.

THE ERROR CODES

-1 unknown symbol, -2 volume specification unusable, -3 tick specification unusable, -4 distance not positive, -5 risk amount out of range, -6 the minimum lot risks more than you asked, -7 an input is not finite or is out of range, -8 the risk base is not 0 or 1, -9 no balance or equity to take a percentage from.

GOOD TO KNOW

  • Compiled, not source, and the money figure is an estimate: you receive the compiled library, and money per lot uses the terminal's tick-value loss at the moment of the call, with no commission, swap or fee.
  • No stop or margin checks: you supply the distance from entry to stop, and the library does not validate stop levels, freeze levels or margin.
  • One order's worth: it clamps to the symbol's maximum volume and does not split a larger size, and it does not apply the symbol's total volume limit.
  • One step from my panel: this library floors with a relative tolerance, so 0.3 lots on a 0.1-step symbol stays 0.3, where a plain floor gives 0.2. My Smart Risk and Lot Size Panel floors plainly, so the two can differ by one step there; both are legal, and neither risks more than the formula.

BEFORE YOU TRUST IT

The MQL5 compiler does not link-check an import: a missing library still compiles at 0 errors, and the failure appears when the terminal loads the code. So check the file. Paste the import block into an empty script, add Print(CMS_Version());, compile it and run it on any chart. It prints 1.00 when the terminal has loaded this build.

QUESTIONS I EXPECT

Will my EA compile without the library? Yes, and that is the trap: the compiler does not read the .ex5, so a missing file compiles cleanly and fails at load time. The version check above is the fast answer.

My broker's minimum is not a multiple of the step. Then the symbol specification is inconsistent. The library returns that minimum unchanged, and the server may reject the order when you send it.

Does it place or manage trades? No. It returns a number, and your EA decides what to do with it.

COMPATIBILITY

Any MT5 account type. Native MQL5, no DLLs.

SUPPORT

Questions through the MQL5 message system. First reply within two working days.

If you have used it, I would welcome a short review of what worked and what did not.

Prodotti consigliati
MultiTimeframe Info Feed (MIF) Indicator Description: MultiTimeframe Info Feed (MIF) is a smart MQL5 indicator that displays a dynamic, real-time info panel directly on your chart, offering powerful insight into current market conditions. Key features include: Real-time display of Open, High, Low, Close, and live Tick price Tick Rate (ticks per second) for assessing market activity Auto-calculated Entry Price on new candle formation Signal direction detection (BUY / SELL) Price action pattern re
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
no Trade operation, Robot Set auto SL to every manually Trade from a Phone Automatic Phone TradeManager Need just Set on 1 Symbol Auto BE Trigger is added that immediately sets a stop-loss for every () But does NOT calculate position size based on risk, allows the fixed  SL to   adjusted dynamically drag on Chart or Menu. It protects capital around the clock, reduces emotional mistakes, and ensures consistent risk management.
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
================================================================ MATRIX CONDITION MONITOR Live Trade Condition Panel for MetaTrader 5 Fully Automatic -- Works with ALL Matrix EAs ================================================================ NEVER MISS A TRADE SETUP AGAIN Matrix Condition Monitor is a free utility that attaches to any chart and automatically checks all 10 trade conditions in real time -- showing you exactly why a trade will or will not open, and alerting you the moment ever
FREE
Modern Dark Chart Theme for MT5 Upgrade your MetaTrader 5 chart into a clean, dark, professional trading workspace. Your chart is your trading office. It is where you analyze the market, test Expert Advisors, review setups, record videos, share screenshots, and make trading decisions. If your MT5 chart looks old, bright, noisy, or unprofessional, your trading environment can feel distracted before you even start your analysis. Modern Dark Chart Theme for MT5 helps you create a cleaner, darker,
FREE
Apex Point
Marco Engstermann
Apex Point is a trend-following indicator for MetaTrader 5, transforming complex market data into signals for traders. It displays blue dots for uptrends, red dots for downtrends, and yellow crosses at potential reversals, helping users identify momentum shifts quickly. Key features include a confirmation system requiring multiple bars (default: 3) to validate changes, reducing false signals; dynamic ATR-based offsets for adaptive trailing, with instant ratcheting in the trend direction and smo
FREE
Mini Charts MTF EMA Mini Charts MTF EMA is a MetaTrader 5 indicator that displays multiple mini charts from selected timeframes directly on the main chart. It helps traders monitor multi-timeframe price movement and EMA direction in one clean visual layout. Main Features Multiple mini charts on the main chart Custom timeframe selection for each mini chart Up to 4 EMA lines for every mini chart Custom EMA period, shift, method, applied price, color, style, and width Custom mini chart width, heigh
FREE
Exact Time — detailed time on the seconds chart. The utility shows the opening time of the selected candle. This is necessary when working with seconds charts. For example, it can be used on a seconds chart built using the Seconds Chart utility. Inputs Base corner — the chart corner to which an object Is attached. X distance — the horizontal distance from the chart corner. Y distance — the vertical distance from the chart corner. Text font — font name Font size — font size Color — text color
FREE
Trade With Price is a powerful and user-friendly MetaTrader 5 Expert Advisor designed to simplify and accelerate your trading execution. This EA provides a smart one-click trading panel that allows traders to instantly place BUY, SELL, and pending orders directly at the current market price—eliminating the need to calculate distances in pips. Key Features One-click BUY & SELL execution Place pending orders based on market price instead of pips Clean and intuitive trading panel interface
FREE
MyGridBasket
Ahmad Aan Isnain Shofwan
Read-only basket analytics library for grid and averaging EAs. Real breakeven, what-if, stress test and stop-out distance. Sends no orders. What it is A library that reads your open positions and tells you the real state of a grid or averaging basket. It does not trade. It sends no orders. It has no entry logic. You call it from your own EA. What it tells you - Breakeven of the basket, with swap and commission counted - The price where the basket nets a money amount you choose - Where the ave
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
FiT Panel Pro
Thonglak Janyakorn
Overview FiT Panel Pro is a professional-grade trade management panel designed for MetaTrader 5 traders who demand speed, precision, and full control over their trades. Built with a modern dark-theme UI, it combines one-click execution with advanced risk management, visual SL/TP drag lines, automatic Fibonacci-based levels, and comprehensive order management — all in a single, compact panel. Whether you are a scalper, day trader, or swing trader, FiT Panel Pro gives you the edge you need to exec
FREE
Show Pips for MT5
Roman Podpora
4.5 (32)
Questo indicatore informativo sarà utile per coloro che vogliono essere sempre informati sulla situazione attuale del conto. VERSION MT 4 -   More useful indicators L'indicatore mostra dati come profitto in punti, percentuale e valuta, nonché lo spread per la coppia corrente e il tempo fino alla chiusura della barra nell'intervallo di tempo corrente. Esistono diverse opzioni per posizionare la linea delle informazioni sulla carta: A destra del prezzo (corre dietro al prezzo); Come commento (nell
FREE
EA Master Version any Follow Copy Account  (Acc. Number)  need a open MT Terminal, download multiple times Step1:   Open Master MT5 Terminal    =  install master- Version   (on any Symbol just one Time) Step2:   Open Follower MT5 Terminal = install follower- Version  (on any Symbol just one Time) Step3:   all Trades from any Symbol or any Robot are copy now to follow- Terminal immediately for simple copy set on Chart and   Start   no optimization. This Robot is a Trade Copier for MT5 that automa
FREE
VFI Quantum
Nikita Berdnikov
5 (1)
Introducing VFI (Volume Flow Indicator) – a trading indicator that analyzes the relationship between volume and price movement to identify key trading opportunities. The indicator displays the strength and direction of volume flow, providing clear signals about potential entry and exit points. Signals are formed based on zero line crossovers, crossovers between the VFI line and its exponential moving average (EMA), and when the indicator exits overbought and oversold zones. Attention! This stra
FREE
PZ Trade Pad MT5
PZ TRADING SLU
4.46 (24)
This simple visual expert advisor allows you to trade easily from the chart. It handles risk management for you and can perform several useful tasks with your existing trades, saving time and making risk-management for each individual trade easier.  [ Installation Guide | Update Guide | Troubleshooting | FAQ | All Products  |  Get Help ] Trade easily from the chart Trade with precise risk management, hassle free Trade pending order with drag and drop price selection Set SL and TP levels with d
FREE
Multi Currency Strength Dashboard Mini (FREE) – Currency Strength Meter for MetaTrader 5 Multi Currency Strength Dashboard Mini è un indicatore gratuito per MetaTrader 5 che mostra in tempo reale la forza relativa delle 8 valute principali (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD) in un dashboard chiaro e di rapida lettura. Obiettivo: individuare in pochi secondi quali valute sono forti e quali deboli per orientare la propria watchlist (ad esempio, selezionare coppie in cui una valuta forte si co
FREE
Most lot size calculators assume one pip is worth ten dollars. That assumption is wrong on gold, wrong on indices, wrong on JPY crosses, and wrong on every account not denominated in USD - which is to say, wrong exactly where oversizing hurts. This one asks your server instead. It reads the tick value, tick size, point size, volume step and margin requirements actually published for the symbol on your chart, so the number it gives you is the number your account will accept. How it works Attach i
FREE
Enhanced FVG Enhanced FVG is a technical indicator for MetaTrader 5 that identifies Fair Value Gaps on the chart and measures the buyer-to-seller volume ratio within each detected gap. Volume classification is performed using M1 timeframe tick volume data, applying the same methodology used in standard Volume Profile analysis. How It Works The indicator scans three consecutive candlesticks to detect Fair Value Gaps. A Bullish FVG is identified when the high of the first candle does not overlap w
FREE
AURA Backtester Forex Simulator is a state-of-the-art manual trading simulator designed to help you master price action, test new strategies, and build trading discipline without risking real money. Unlike traditional automated backtesters, AURA transforms your standard MetaTrader chart into a fully interactive simulation environment. Practice trading historical data exactly as if you were trading the live, breathing market. Whether you are a beginner trying to understand market structure or a p
FREE
Trade assistant pro v8
Ahmed Mohammed Bakr Bakr
2 (1)
FREE FREE FREE Trade Assistant MT5 – Professional Trading & Risk Management Panel Trade Assistant MT5 is an advanced trading panel designed to help traders execute orders faster, safer, and more professionally . It simplifies manual trading by combining smart order management , precise risk control , and one-click execution , making it ideal for both beginners and advanced traders. This tool does not trade automatically . Instead, it empowers you with full control while applying professional-gra
FREE
Are you tired of drawing trendlines every time you're analyzing charts? Or perhaps you would like more consistency in your technical analysis. Then this is for you. This indicator will draw trend lines automatically when dropped on a chart. How it works Works similar to standard deviation channel found on mt4 and mt5. It has 2 parameters: 1. Starting Bar 2. Number of bars for calculation The   starting bar   is the bar which drawing of the trend lines will begin, while the   number of bars for c
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
EA Close All Set TPSL All Panel
Thannawut Khankhat
4.5 (2)
EA Close All Set TPSL All  Panel EA Close All Set TPSL All MT5 is a professional utility tool for MetaTrader 5 that helps traders manage orders quickly and efficiently. With a clean on-chart control panel, you can close trades or set Take Profit / Stop Loss levels for all orders with just one click.       [MT4 Version --->  click . ] Key Features On-Chart Control Panel   – Light gray background with simple and intuitive design. Close All Orders   – Instantly close all active Buy, Sell, and
FREE
Free automatic Fibonacci is an indicator that automatically plots a Fibonacci retracement based on the number of bars you select on the BarsToScan setting in the indicator. The Fibonacci is automatically updated in real time as new highest and lowest values appears amongst the selected bars. You can select which level values to be displayed in the indicator settings. You can also select the color of the levels thus enabling the trader to be able to attach the indicator several times with differe
FREE
Follow The Line MT5
Oliver Gideon Amofa Appiah
4.6 (35)
This indicator obeys the popular maxim that: "THE TREND IS YOUR FRIEND" It paints a GREEN line for BUY and also paints a RED line for SELL. (you can change the colors). It gives alarms and alerts of all kinds. IT DOES NOT REPAINT and can be used for all currency pairs and timeframes. Yes, as easy and simple as that. Even a newbie can use it to make great and reliable trades. NB: For best results, get my other premium indicators for more powerful and reliable signals. Get them here: https://www.m
FREE
Pump Liquidity Refueling
Konstantin Meshcheriakov
PUMP V3_0 Liquidity Refueling — Refueling Your BalanceWhat is "Liquidity Refueling"? Think of the Forex market as a highway and liquidity as the fuel.  When institutional players "pour" massive volume into the market, the price makes a sharp surge — an impulse or a "pump."  The PUMP V3_0 EA acts as a smart fueling station: it identifies moments of maximum market energy and "pumps" that momentum directly into your trading account.   Performance Metrics (Strategy Tester Data):Net Profit "Pumped"
FREE
LogicLadder visual Trade Planner
Mohammed Rafi Abdul Lathif
SPECIAL ANNOUNCEMENT: Get the Ultimate Trading Suite! Before you grab this utility, did you know? The LogicLadder Visual Trade Planner is so powerful that it serves as the core visual execution engine for my flagship MT5 trading systems! If you are looking for a massive, all-in-one trading dashboard, advanced trade management, or strict prop-firm guardrails, you can get this exact visual planner already included inside my premium and free full-suite EAs: Pro LTS TradeDashboard MT5 (Paid
FREE
Gli utenti di questo prodotto hanno anche acquistato
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
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
This library will allow you to send your trades using your MT5 EA bot and its very easy to integrate on any EA which you can do yourself with the script code which is mentioned in documentation. This product allows trading operations via API For MEXC chart : Renting   Crypto Charting  for OHLC data or   Crypto Ticks with Order Book Depth  is optional - Supports MEXC API calls - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Modify Limit order - C
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
Scans the last 300 bars by default, boxes each three bar fair value gap, draws its 50 per cent level, and marks the first return to the near edge. FEATURES Bullish and bearish fair value gaps, each formed once its third candle closes. The 50 per cent Consequent Encroachment (CE) line, dotted, when InpShowCE is on. On touch: trim to the touching bar, delete, dim, or keep; untouched gaps extend InpExtendBars bars. An optional alert on that touch, once per gap. PARAMETERS InpLookbackBars 300; InpMi
FREE
Draws the four main trading session ranges on the chart in GMT, counts the pip range of each as it forms, and marks its high and low. FEATURES Four ranges: Asian, London Open, New York Open, London Close. Automatic GMT offset detection, with manual override. Session high and low levels, with a live pip range. HOW TO USE IT 1. Attach it to a chart. Default lookback is five days. 2. Check the detected GMT offset and correct it. 3. Enable or disable each session and set its hours. PARAMETERS InpDay
FREE
Swap Cost Per Position puts your open positions in one table for tonight's rollover, in money. I built it for the trader who holds overnight, to see the charge ahead beside the swap already recorded and, where the swap is quoted in points, the number of nights of positive carry the round turn takes to recover. WHAT IT SHOWS One row per open position, priced for tonight: the charge uses that position's volume, and positions beyond the row limit you set are counted on the last line. Two numbers, t
FREE
Order Entry Panel
Jevon Naldo Yoshield
Order Entry Panel is a trade panel that sends a market order in one click from the chart, with the stop already attached. I built it for the trader who executes by hand and wants the decision on the chart. FEATURES See the order before you send it: each request line prints price, volume, stop and any target. Every entry carries a stop, built from your distance and attached before it is sent. Know the margin before the click: the terminal's figure for that line, or the shortfall. One click sends
FREE
A bar replay hides the bars you have not reached. This one also prices every virtual entry at the spread its bar recorded and scores the attempt in R, so a trader rehearsing by hand can see what the decision was worth. WHAT IT DOES No look-ahead on the session's bars: a cover hides the bars the replay has not reached. The bar's spread: every virtual fill pays the spread stored on the bar, never one you type; a bar with none refuses a market order or a close with NO FILL - BAR SPREAD 0, and a tra
FREE
Drag the stop loss line to your level and the panel works out the lot size for the risk you set, from your broker's own contract size. FEATURES Entry, stop loss and take profit lines you drag. Lot size normalised to the broker's minimum, maximum and step. Risk as a percentage of balance or equity, fixed cash, or fixed lot. Live risk to reward ratio. HOW TO USE IT 1. Attach it to a chart and drag the three lines. 2. Set the risk basis and value in the inputs. 3. Read the lot size from the panel.
FREE
Closes your positions and deletes your pending orders when the day's equity drawdown reaches your limit, and closes anything you open for the rest of that day. FEATURES On breach: closes every open position, deletes pending orders, locks the day. Panel: drawdown percentage, equity, state. HOW TO USE IT 1. Enable Allow Algo Trading. 2. Attach it to a chart and set the loss and warning levels. 3. Choose the breach actions. PARAMETERS InpDailyMaxLossPercent, InpDailyWarningPercent, InpAutoCloseOnBr
FREE
Shows the live spread, today's range against the daily ATR, the server time, GMT offset, the countdown and the open sessions. FEATURES Live spread in points and pips, colour coded tight, moderate or wide. Optional push alert. Today's range in pips, the daily ATR share, the server time, GMT offset, the countdown and the sessions. HOW TO USE IT 1. Attach it to any chart. 2. Set the spread limits for the symbol. 3. Choose the ATR period and corner. PARAMETERS InpCorner, InpOffsetX, InpOffsetY, InpS
FREE
Shows what each closed trade earned after commission, swap and fees, by symbol, session, hour, weekday or month. FEATURES Rebuilds each trade from its deals, costs apart from gross. Net result, R, summary, breakdowns, cost alarm, CSV export. HOW TO USE IT 1. Attach it to a chart. 2. Choose the window and table. 3. Read the panel or export the CSV. PARAMETERS InpRange, InpFilterMagic, InpRiskPercent, InpFixedStopPips, InpBreakdown. LIMITATIONS Trades opened before the window are counted, not reco
FREE
Filtro:
Nessuna recensione
Rispondi alla recensione