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 — 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
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 -   More useful indicators このインジケーターには、ポイント、パーセンテージ、通貨での利益、現在のペアのスプレッド、現在の時間枠でバーが閉じるまでの時間などのデータが表示されます。 チャート上に情報線を配置するには、いくつかのオプションがあります。 価格の右側 (価格の後ろにあります)。 コメントとして (グラフの左上隅に); 画面の選択した隅。 情報区切り記号を選択することもできます。 | / \ # このインジケーターは使いやすく、非常に有益です。設定で不要な情報項目を無効にすることも可能です。 設定 外観の種類     - 情報行の表示タイプ。次の 3 つのオプションがあります。 価格に従ってください     - 価格に従う。 コメントとして     - コメントとして; 画面の選択した隅に     - 画面の選択した隅にあります。 添付用グラフコーナー     - 表示タイプを選択した場合 画面の選択されたコーナーでは、この項目を使用して
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
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 時間稼働し、信頼性の高いシグナル監視を実現します。エントリーまたはエグジットを計画しているかどうかに関わらず、 SignalXpert は迅速かつ的確なサポートを提供し、ボラティリティが高い市場でも自信を持って取引することを可能にします。 仕様 RangeXpert とのシー
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 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
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シグナルコピアライブラリ — MT向けプロフェッショナルトレードイベントエンジン 複雑なトレード追跡ロジックを記述することなく、あらゆるエキスパートアドバイザーを強力なトレードコピア、シグナルプロセッサ、または自動化エンジンに変えることができます。 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 に簡単に統合でき、完全なプロセスを示すビデオのデモ例も利用できます。 - 指値注文、SL 指値注文、利食い指値注文の発行 - マーケット、SLマーケット、TPマーケットの注文を行う - 指値注文の変更 - 注文をキャンセルする - 注文のクエリ - レバレッジ、マージンの変更 - 位置情報の取得 もっと... MT5 に Binance チャートがない場合を除き、暗号チャートのレンタルはオプションです。 スクリプトのデモについては、 ここをクリックしてください トレーディングパネルでの取引をご希望の場合は、 この製品に興味があるかもしれません
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
金融とトレーディング戦略の領域を深く掘り下げ、私は一連の実験を実施し、強化学習に基づくアプローチと強化学習を使用しないアプローチを調査することにしました。 これらの手法を適用して、私は現代のトレーディングにおけるユニークな戦略の重要性を理解する上で極めて重要な微妙な結論を導き出すことができました。 ニューラル ネットワーク アドバイザーは、初期段階では目覚ましい効率性を示したにもかかわらず、長期的には非常に不安定であることが判明しました。 市場のボラティリティ、トレンドの変化、外部事象などのさまざまな要因により、企業の運営に混乱が生じ、最終的には不安定化につながりました。 この経験を武器に、私は課題を受け入れ、独自のアプローチを開発し始めました。 私の焦点は、集められた最良のインジケーターを異なるパラメーター設定で利用するアドバイザーを作成することに集中していました。 このアドバイザーは、私の独自の戦略に基づいており、さまざまなパラメーター設定を持つ 14 の指標を同時に採用し、何時間ものデータ分析と綿密なテストから生まれました。
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
このライブラリは、できるだけ簡単にMetaTrader上で直接OpenAIのAPIを使用するための手段として提供されます。 ライブラリの機能についてさらに詳しく知るには、次の記事をお読みください: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual 重要:EAを使用するには、OpenAI APIへのアクセスを許可するために、次のURLを追加する必要があります  添付画像に示されているように ライブラリを使用するには、次のリンクで見つけることができる次のヘッダーを含める必要があります:  https://www.mql5.com/en/blogs/post/756108 #import "StormWaveOpenAI.ex5" COpenAI *iOpenAI(string); CMessages *iMessages(void); CTools *iTools(void); #import これが、ライブラリを簡単に使用するため
作者のその他のプロダクト
既定では直近300本のバーを走査し、3本のバーでできるフェアバリューギャップをそれぞれボックスで囲み、50パーセント水準を描き、価格が手前の端へ最初に戻った時点を記録します。 機能 強気と弱気のフェアバリューギャップ。どちらも3本目のバーが確定した時点で形成されます。 50パーセントのコンセクエント・エンクローチメント(CE)ライン。InpShowCEがオンのとき、点線で表示されます。 タッチ時:タッチしたバーまで切り詰める、削除する、暗くする、維持する。タッチされていないギャップはInpExtendBars本分延長されます。 そのタッチに対する任意のアラート。ギャップごとに1回です。 パラメータ InpLookbackBars 300; InpMinGapPoints 0.0; InpMitigationMode MITIGATION_TRIM; InpShowCE true; InpExtendBars 20. InpBullishEnabled true; InpBullBorderColor clrMediumSeaGreen; InpBullFillColor C'220,2
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は、チャートから1クリックで、ストップをあらかじめ付けた成行注文を送信するトレードパネルです。 手動で執行し、判断をチャート上で下したいトレーダーのために作りました。 機能 送信前に注文を確認できます。各リクエスト行には価格、数量、ストップ、ターゲット(ある場合)が表示されます。 すべてのエントリーにはストップが付きます。設定した距離から算出され、送信前に付けられます。 クリック前に証拠金がわかります。その行についてターミナルが算出した額、または不足額が表示されます。 1回のクリックで成行注文を1件送信します。そのリクエストの処理中に2回目のクリックをしても拒否され、再試行は行いません。 ヘッジ口座ではブローカーの制限を確認できます。ストップレベルとフリーズレベル、そしてストップがストップレベル内に入る場合に許容される価格が表示されます。 ヘッジ口座では取引を管理できます。損益分岐点でのロック、ポジションの一部決済、この銘柄でパネルが開いたポジションの全決済に対応します。 送信した内容を読み返せます。リクエスト、サーバーの応答、注文と取引のチケットは、
FREE
バーリプレイは、まだ到達していないバーを隠します。このバーリプレイはさらに、仮想のエントリーすべての価格を、そのバーが記録したスプレッドで決め、その試みをRで採点するので、手作業でリプレイするトレーダーは、その判断がどれだけの価値だったかを見られます。 機能 セッションのバーを先読みしません。カバーが、リプレイがまだ到達していないバーを隠します。 バーのスプレッド:仮想の約定はすべて、そのバーに保存されたスプレッドを支払い、入力したスプレッドを使うことはありません。スプレッドがないバーは、成行注文または決済をNO FILL - BAR SPREAD 0で拒否し、そのバーをまたいで開いている取引は開いたままになります。 注文は送信しません:注文はすべて仮想で、ポジションを読み取らず、ファイルも開かないため、口座に作用することも、実際の取引がどうだったかを示すことも、取引記録を残すこともできません。 Rでのスコアは1つ:設定したストップの距離の倍数で、表示される数値はどれも金額ではありません。口座のプロパティを、預金通貨も含めて読まないからです。 ストップのない取引も数に入ります:件数には
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
フィルタ:
レビューなし
レビューに返信