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
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)
이 정보 표시기는 계정의 현재 상황을 항상 알고 싶어하는 사람들에게 유용합니다. VERSION MT 4 -   More useful indicators 표시기는 포인트, 백분율, 통화 단위의 이익뿐만 아니라 현재 쌍의 스프레드와 현재 기간에서 막대가 마감될 때까지의 시간과 같은 데이터를 표시합니다. 차트에 정보선을 배치하는 데는 여러 가지 옵션이 있습니다. 가격 오른쪽(가격보다 뒤에 있음) 코멘트(차트의 왼쪽 상단) 화면의 선택된 모서리에 있습니다. 정보 구분 기호를 선택할 수도 있습니다. | / \ # 이 표시기는 사용하기 쉽고 매우 유익합니다. 설정에서 불필요한 정보 항목을 비활성화할 수 있습니다. 설정 외모의 종류       - 정보 라인 표시 유형. 세 가지 옵션이 있습니다: 가격을 따르세요       - 가격을 따르세요. 댓글로       - 코멘트로; 화면의 선택된 모서리에서       - 화면의 선택한 모서리에 있습니다. 첨부용 그래프 코너       - 화면의 선택한
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 는 MetaTrader 5 용 무료 인디케이터로, 주요 8개 통화 (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD)의 상대 강도를 명확하고 빠르게 읽을 수 있는 대시보드 형태로 실시간 표시합니다. 목표: 몇 초 만에 강한 통화와 약한 통화를 파악하여 워치리스트를 효율적으로 구성하는 것 (예: 강한 통화와 약한 통화로 구성된 페어 선택). 버전 2.00 신기능 TradingTips UI 스타일의 완전한 비주얼 리프레시 (진한 네이비 패널, 네온 글로우 테두리, 블루 헤더). 섹션 박스 안의 컬러 강도 바 (녹색 / 골드 / 적색). 8개 통화별 트렌드 화살표 (상승 / 하락 / 중립). 헤더 바를 잡고 드래그 앤 드롭으로 대시보드 이동.
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
Trendline mt5 indicator
David Muriithi
4 (2)
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개의 다양한 자산을 동시에 모니터링할 수 있으며 , 가장 중요한 시장 움직임을 실시간으로 포착합니다. 통합된 알림 기능 덕분에 알림, 푸시, 이메일로 신호를 전달할 수 있어 , 트레이딩 기회를 놓치지 않게 됩니다. MetaTrader VPS 에 설치하면 SignalXpert 는 24/7 중단 없이 실행되며 안정적인 신호 모니터링을 제공합니다. 진입 또는 청산을 계획 중이든, SignalXpert 는 빠르고 정확한 지원을 제공하여 높은 변동성 시장에서도 자신 있
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
Pump Liquidity Refueling
Konstantin Meshcheriakov
KO.   PUMP V3_0 Liquidity Refueling — 잔고 리필(유동성 주입) 시스템"유동성 주입(Liquidity Refueling)"이란 무엇인가요? 외환 시장을 고속도로라고 생각하고, 유동성을 연료라고 생각해보세요.  거대 자본이 시장에 "쏟아부어질" 때, 가격은 강력한 충격(임펄스)과 함께 급등락합니다.  이것을 '펌핑'이라고 합니다.  PUMP V3_0 어드바이저는 스마트한 주유소 역할을 합니다. 시장의 에너지가 가득 차는 순간을 포착하여, 그 움직임을 여러분의 거래 잔고로 직접 "펌프질"해 넣습니다.   테스터 리포트 성과 지표:잔고에 "주입된" 순이익: 테스트 기간 동안 +81.9%에서 최대 +673.4% 달성.   Profitability (수익성 지수): 최대 42.59 기록 (EURUSD 기준).   Win Rate (승률): 75%에서 놀라운 93.5%까지 안정적으로 유지.   주요 기술적 특징:스마트 손익분기(Break-Even): 수익이 목표
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
이 제품의 구매자들이 또한 구매함
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
MetaTrader 5용 ModernUI 라이브러리 ModernUI는 MetaTrader 5 차트 위에서 동작하는 사용자 인터페이스 라이브러리입니다. MQL5 개발자가 MT5 차트 환경 안에서 더 깔끔한 EA 패널, 대시보드, 설정 창, 폼, 테이블, 다이얼로그, 드로어, 컴팩트한 트레이딩 스타일 인터페이스를 만들 수 있도록 도와줍니다. 흩어진 차트 객체보다 더 전문적인 인터페이스 레이어를 원하면서도, 자신의 EA, 인디케이터 또는 유틸리티 로직은 계속 완전히 직접 제어하고 싶은 개발자를 위해 만들어졌습니다. Modern UI - 사용자 가이드   | EA 예제 데모 무엇을 만들 수 있나요? ModernUI는 한 가지 유형의 패널에만 제한되지 않습니다. MetaTrader 5 차트 위에 배치할 거의 모든 도구를 만들 수 있는 재사용 가능한 인터페이스 레이어를 제공합니다. 간단한 설정 화면, 컴팩트한 트레이딩 패널, 전체 대시보드, 데이터 뷰, 컨트롤 패널, 계정 도구, 워크플로
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 시그널 카피어 라이브러리 — MetaTrader용 전문가급 거래 이벤트 엔진 복잡한 거래 추적 로직을 작성할 필요 없이, 모든 Expert Advisor를 강력한 거래 카피어, 시그널 프로세서 또는 자동화 엔진으로 전환하세요. EX5 시그널 카피어 라이브러리는 MetaTrader 5의 모든 거래 활동을 포착하여 다음과 같은 용도로 활용할 수 있는 구조화된 시그널로 변환하는 고성능 이벤트 기반 시스템입니다. 거래 카피어 (MT5 → MT5 / MT5 → 외부 플랫폼) 리스크 관리 엔진 분석 대시보드 맞춤 실행 브리지 (Binance, API 등) 이 라이브러리를 선택해야 하는 이유 실시간 거래 감지 구조화된 신호 대기열 이벤트 분류(개시, 청산, 수정, 부분 청산) 내장 복사 엔진(선택 사항) 사용자 정의 로직을 통한 완벽한 제어 주요 기능 실시간 거래 포착 OnTradeTransaction을 사용하여 모든 거래를 즉시 감지합니다. 백업
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
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
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
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 
이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를 사용하여 모든 EA에 통합하기가 매우 쉽습니다. - Place Limit, SL Limit, Take Profit Limit 주문 - 플레이스 마켓, SL-마켓, TP-마켓 주문 - 지정가 주문 수정 - 주문 취소 - 쿼리 주문 - 레버리지, 마진 변경 - 위치 정보 얻기 그리고 더... MT5에 바이낸스 차트가 없는 경우를 제외하고 암호화폐 차트 대여는 선택 사항입니다. 스크립트 데모를 보려면 여기를 클릭하세요. 트레이딩 패널과 거래하고 싶다면 이 제품에 관심이 있으실 것입니다. 이 제품은 Crypto Charting의 애드온입니다. 이 라이브러리를 사용하면 EA를 사용하여 거래를 관리할 수 있으며 설명에 언급된 스크립트 코드와 전체 프로세스를 보여주는 비디오의 데모 예제를 사용하여 모든 EA에 통합하기가 매우 쉽습니
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
The following library is proposed as a means of being able to use the OpenAI API directly on the metatrader, in the simplest way possible. For more on the library's capabilities, read the following article: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual IMPORTANT: To use the EA you must add the following URL to allow you to access the OpenAI API as shown in the attached images In order to use the library, you must include the following Hea
제작자의 제품 더 보기
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
Jevon Naldo Yoshield
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
필터:
리뷰 없음
리뷰 답변