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.

Рекомендуем также
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 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 — время на секундном графике. Утилита показывает время открытия выбранной свечи. Это нужно при работе с секундными графиками. Например, можно использовать на секундном графике построенном при помощи утилиты Seconds Chart . Входные параметры Base corner — угол графика, к которому привязан объект. X distance — дистанция от угла графика по горизонтали. Y distance — дистанция от угла графика по вертикали. Text font — название шрифта. Font size — размер шрифта. 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
Данный информационный индикатор будет полезен тем, кто всегда хочет быть в курсе текущей ситуации на счете. VERSION MT 4 -  Больше полезных индикаторов Индикатор отображает такие данные, как прибыль в пунктах, процентах и валюте, а также спред по текущей паре и время до закрытия бара на текущем таймфрейме. Существует несколько вариантов расположения информационной строки на графике: Справа от цены (бегает за ценой); Как комментарий (в левом верхнем углу графика); В выбранном углу экрана. Так же
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)
Представляем VFI (Volume Flow Indicator) – индикатор для торговли, который анализирует соотношение объема и движения цены для выявления ключевых торговых возможностей. Индикатор отображает силу и направление потока объемов, предоставляя четкие сигналы о потенциальных точках входа и выхода. Сигналы формируются на основе пересечения нулевой линии, пересечения линии VFI и ее экспоненциальной скользящей средней (EMA), а также при выходе индикатора из зон перекупленности и перепроданности. Внимание!
FREE
PZ Trade Pad MT5
PZ TRADING SLU
4.46 (24)
Утилита PZ Trade Pad позволяет торговать с помощью панели прямо на ценовом графике. Продукт имеет встроенное управление риском и может работать с уже открытыми сделками. Возможность совершать сделки прямо на ценовом графике Управление капиталом Возможность установки стоп-уровней Закрытие всех открытых сделок в один клик Удаление всех отложенных ордеров в один клик Частичное закрытие прибыльных сделок в один клик Без входных параметров. Использование Утилита проста в использовании. Выберите знач
FREE
Multi Currency Strength Dashboard Mini (FREE) – Currency Strength Meter for MetaTrader 5 Multi Currency Strength Dashboard Mini – это бесплатный индикатор для MetaTrader 5 , который в реальном времени показывает относительную силу 8 основных валют (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD) в виде понятной и быстрой к чтению панели. Цель: за несколько секунд определить сильные и слабые валюты, чтобы сформировать целевой watchlist (например, выбрать пары, где сильная валюта противостоит слабой). Что
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)
ПОСМОТРЕТЬ ВСЕ МОИ БЕСПЛАТНЫЕ ПРОДУКТЫ SignalXpert был разработан мной, чтобы предоставить трейдерам, использующим индикатор RangeXpert , мощный инструмент для анализа. RangeXpert служит фундаментом системы – он выявляет точные рыночные области и предоставляет данные, которые SignalXpert анализирует в реальном времени, генерируя четкие и готовые к использованию сигналы. Это позволяет одновременно отслеживать до 25 различных активов на разных таймфреймах и выявлять важнейшие рыночные движения в
FREE
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
—  RU_ PUMP V3_0 Liquidity — «Заправка»  Баланса Что такое «Заправка ликвидностью»? Представьте, что валютный рынок — это скоростное шоссе, а ликвидность — это топливо.  Когда крупные игроки (банки и фонды) «вливают» большие объемы,цена совершает резкий рывок — импульс или « PUMP (по англ.)».  Советник PUMP V3_0 работает как интеллектуальная заправочная станция: он находит моменты, когда рынок максимально насыщен энергией,  и «перекачивает» это движение прямо в ваш торговый баланс.   Результаты
FREE
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
С этим продуктом покупают
Простая в использовании, быстрая, асинхронная библиотека WebSocket для MQL5. Он поддерживает: ws:// и wss:// (защищенный веб-сокет "TLS") текстовые и бинарные данные Он обрабатывает: фрагментированное сообщение автоматически (передача больших объемов данных) кадры пинг-понга автоматически (подтверждение активности) Преимущества: DLL не требуется. Установка OpenSSL не требуется. До 128 соединений Web Socket из одной программы Различные уровни журнала для отслеживания ошибок Возможна синхронизац
Библиотека ModernUI для MetaTrader 5 ModernUI — это библиотека пользовательского интерфейса для MetaTrader 5, размещаемая прямо на графике. Она помогает разработчикам MQL5 создавать более аккуратные панели советников, дашборды, окна настроек, формы, таблицы, диалоги, боковые панели и компактные торговые интерфейсы внутри среды графика MT5. Она создана для разработчиков, которым нужен более профессиональный интерфейсный слой, чем набор разрозненных графических объектов, но при этом важно сохранит
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 — профессиональный механизм отслеживания торговых событий для MetaTrader Превратите любой советник в мощный инструмент копирования сделок, обработки сигналов или автоматизации — без написания сложной логики отслеживания сделок. Библиотека EX5 Signal Copier — это высокопроизводительная система, управляемая событиями, которая фиксирует каждую торговую активность в MetaTrader 5 и преобразует её в структурированные сигналы, которые вы можете использовать для создания:
Эта библиотека предназначена для помощи в управлении сделками, расчета лота, трейлинга, частичного закрытия и других функций. Расчет лота Mode 0: фиксированный лот. Mode 1: Лот по Мартингейлу (1,3,5,8,13) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 2: Лот по Множителю (1,2,4,8,16) может по-разному использоваться для расчета при убытке=1, при прибыли=0. Mode 3: Лот по Инкременту (1,2,3,4,5) может по-разному использоваться для расчета при убытке=1, при прибыли=0.
Друзья, присоединяйтесь к нам! Задать свои вопросы и пообщаться с единомышленниками: MetaCOT Public Group Информационный канал MetaCOT: новости, отчетность CFTC и сигналы: MetaCOT Channel Желаю нам удачной торговли и новых прибыльных сигналов! Внимание! Последнее время, некоторые страны блокируют доступ к сайту cftc.gov . Из-за этого, пользователи из этих стран ставят низкий рейтинг продукту. MetaCOT всегда придерживался самых высоких стандартов качества и не связан с этими блокировками. Пож
Библиотека WalkForwardOptimizer позволяет выполнить пошаговую и кластерную форвард-оптимизацию ( walk-forward optimization ) советника в МетаТрейдер 5. Для использования необходимо включить заголовочный файл WalkForwardOptimizer.mqh в код советника и добавить необходимые вызовы функций. Когда библиотека встроена в советник, можно запускать оптимизацию в соответствии с процедурой, описанной в Руководстве пользователя . По окончанию оптимизации промежуточные результаты сохраняются в CSV-файл и наб
Это упрощенная и эффективная версия библиотеки для walk-forward анализа торговых экспертов. Она собирает данные о торговле эксперта во время процесса его оптимизации в тестере MetaTrader и сохраняет их в промежуточные файлы в каталоге MQL5\Files. Затем на основе этих файлов автоматически строится кластерный walk-forward отчет и уточняющие его rolling walk-forward отчеты (все они - в одном HTML-файле). С помощью вспомогательного скрипта WalkForwardBuilder MT5 можно на тех же промежуточных файлах
Order Book, известный также как Market Book, глубина рынка, стакан цен, Level 2, - это предоставляемая брокером динамически обновляемая таблица с данными по текущим объемам торговых заявок на покупку и продажу для различных уровней цен вблизи Bid и Ask конкретного финансового инструмента. MetaTrader 5 предоставляет возможность трансляции стакана цен , но только в реальном времени. Данная библиотека OrderBook History Library позволяет считывать состояния стакана в прошлом из архивов, создаваемых
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
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   Золотая выщипывание машины является советником разработан специально для торговли золотом. Операция основана на открытии ордеров с использованием индикатора быстрых и медленных линий, поэтому советник работает в соответствии со стратегией «Trend Follow», что означает следовать тренду. Заказать с помощью политики сетки без операции стоп - лосса, поэтому убедитесь, что счет достаточен. magic number      -  is a special number that the EA assigns to its orders. Lot Multipli
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 - ядро алгоритма оптимизации, это библиотека, построенная на авторском алгоритме HMA (hybrid metaheuristic algorithm). Обратите внимание на продукт  MT5 Optimization Booster , который позволяет очень просто управлять штатным оптимизатором МТ5. Пример применения AO Core описан в статье: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/ru/blogs/post/756509 Данный гибридный алгоритм основан на генетическом алгоритме и содержит лучшие качества и свойства популяционных алгоритмов
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
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 
Эта библиотека позволит вам управлять сделками с использованием любого вашего советника, и ее очень легко интегрировать в любой советник, что вы можете сделать самостоятельно с помощью кода сценария, упомянутого в описании, а также демонстрационных примеров на видео - Размещайте лимитные ордера, SL-лимитные и тейк-профитные лимитные ордера. - Размещайте ордера Market, SL-Market, TP-Market - Изменить лимитный ордер - Отменить заказ - Запрос заказов - Изменение кредитного плеча, маржи - По
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
Применяя эти методы, мне удалось прийти к тонкому выводу, который имеет решающее значение для понимания важности уникальных стратегий в современной торговле. Хотя нейросетевой советник показал впечатляющую эффективность на начальных этапах, в долгосрочной перспективе он оказался крайне нестабильным. Различные факторы, такие как колебания рынка, изменения тенденций, внешние события и т. д., приводят к хаотичности его работы и в конечном итоге приводят к нестабильности. Получив этот опыт, я принял
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
Данная библиотека предлагается как средство для использования API OpenAI напрямую в MetaTrader максимально простым способом. Для получения дополнительной информации о возможностях библиотеки прочитайте следующую статью: https://www.mql5.com/en/blogs/post/756106 The files needed to use the library can be found here: Manual ВАЖНО: Для использования EA необходимо добавить следующий URL для доступа к API OpenAI  как показано на приложенных изображениях Для использования библиотеки необходимо включит
Другие продукты этого автора
По умолчанию сканирует последние 300 баров, обводит рамкой каждый разрыв справедливой стоимости из трёх баров, рисует его уровень 50 процентов и отмечает первое возвращение к ближнему краю. ВОЗМОЖНОСТИ Бычьи и медвежьи разрывы справедливой стоимости, каждый формируется, как только закрывается его третья свеча. Линия 50 процентов Consequent Encroachment (CE), пунктирная, когда InpShowCE включён. При касании: обрезать до касающегося бара, удалить, приглушить или оставить; нетронутые разрывы продле
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 собирает ваши открытые позиции в одну таблицу для ночного ролловера, в денежном выражении. Я сделал его для трейдера, который держит позицию через ночь: увидеть предстоящее списание рядом с уже учтённым свопом и, если своп котируется в пунктах, число ночей положительного кёрри, нужных, чтобы окупить круг. ЧТО ПОКАЗЫВАЕТ Одна строка на открытую позицию, с ценой на эту ночь: списание берёт объём этой позиции, а позиции сверх заданного вами лимита строк учитываются в последне
FREE
Order Entry Panel
Jevon Naldo Yoshield
Торговая панель Order Entry Panel отправляет рыночный ордер одним кликом с графика, со стопом, прикреплённым заранее. Я сделал её для трейдера, который торгует вручную и хочет принимать решение на графике. ВОЗМОЖНОСТИ Видеть ордер до отправки: каждая строка запроса показывает цену, объём, стоп и тейк-профит, если он есть. Каждый вход идёт со стопом, который рассчитывается по вашему расстоянию и прикрепляется до отправки. Знать маржу до клика: расчёт терминала по этой строке или нехватка маржи. О
FREE
Реплей баров скрывает бары, до которых вы ещё не дошли. Этот реплей ещё и рассчитывает цену каждого виртуального входа по спреду, записанному на его баре, и выставляет попытке оценку в R, так что трейдер, репетирующий вручную, видит, чего стоило решение. ЧТО ДЕЛАЕТ Без заглядывания вперёд по барам сессии: шторка скрывает бары, до которых реплей ещё не дошёл. Спред бара: каждое виртуальное исполнение платит спред, записанный на баре, а не тот, который вы ввели; бар без спреда отклоняет рыночный о
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
Фильтр:
Нет отзывов
Ответ на отзыв