Ballast Prop Rules

The prop-firm rules behind Ballast Prop Guard, as a library for your own Expert Advisors. Give it the firm's rules once. On every tick it tells your EA whether it may trade and how many lots still fit before the daily or total loss limit, and it tightens stops so that all open trades together cannot take the account past a limit.

It is not a trading strategy. It is the part a prop-firm EA needs and that ends most challenges: one bad day, or one trade too big.

  • The rules firms use: daily loss measured from the day-start balance, equity or the higher of the two, with the day starting at any server hour; max loss fixed or trailing the highest equity or balance; profit target; consistency rule (best day at most X% of the total profit); a buffer that locks before a limit, not at it.
  • Room that counts open risk: PR_OpenRisk adds up what every open position and pending order loses at its stop. PR_MaxLots gives the largest lot whose stop fits in what is left (10% is kept back for slippage), PR_CanOpen answers yes or no with the numbers. An open position without a stop blocks new trades: its risk is unknown.
  • Stop fitting and locks: PR_FitStops gives every position a stop so that all of them together fit in the room. Stops are only tightened; a trade with no room even for the nearest allowed stop is closed. PR_Update returns a lock code: daily and consistency locks end with the next trading day, max loss and target locks stay until PR_ClearLock. PR_CloseAll closes by magic number or everything.
  • Survives restarts: start balance, day-start base, trailing peak and lock are saved in terminal global variables under your id. The day-start balance is rebuilt from the deal history, so an EA started in the middle of the day still measures from the real day start. EAs on one account with the same id share the state and the locks.

Example

#include <BallastPropRules.mqh>

int OnInit()
  {
   //--- start 100000, daily 5% from the higher of balance/equity, day from 00:00 server,
   //--- max loss 10% fixed, target 10%, lock 0.5% of the start BEFORE a loss limit
   if(!PR_Setup(100000, 5, 2, 0, 10, 0, 10, 0.5, "phase1"))
      return INIT_PARAMETERS_INCORRECT;
   return INIT_SUCCEEDED;
  }

void OnTick()
  {
   string why;
   if(PR_Update(why) != PR_OK)
     {
      PR_CloseAll(0);       // locked: flat, no new trades
      return;
     }
   PR_FitStops(0);          // every open stop fits in the room left
   double ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK), sl = ask - 300 * _Point;
   double lots = MathMin(1.0, PR_MaxLots(_Symbol, ask, sl));
   if(lots > 0 && PR_CanOpen(_Symbol, true, lots, sl, why))
     {
      // send your buy order with stop sl here
     }
  }

Tested

  • Five two-month runs on real ticks through the import, as a buyer uses it: EURUSD and Gold with a USD account, USDJPY with a EUR account, EURUSD with a balance base, trailing max loss and a day starting at 22:00, and Gold with an equity base, max loss trailing the balance and a 30% consistency rule. The test EA was built to fail: it wanted 2% risk per trade, up to 3 trades at once, and every 5th trade was oversized with no stop.
  • 1,206 trades over 53 challenges (32 failed, 18 passed): 0 ticks with equity below a daily or max loss level. The closest equity came to a limit was 0.31% of the start balance (the lock was set at 0.5%). 21 daily and 20 consistency locks, 0 trades allowed while locked, all 259 no-stop trades given a stop or closed at once.
  • Day-start base checked 255 times and a restart (reload of the saved state) 169 times: 0 wrong. PR_MaxLots was the largest volume that fits every time. 19 of 19 unit checks.

Notes

  • The library does not trade or close anything by itself. Your EA calls PR_CloseAll when PR_Update returns a lock, and PR_FitStops when it wants stops fitted.
  • Risk is the move to the stop from the current price (positions) or the order price (pendings), so the spread paid at entry is included. Commission, swap and slippage beyond the 10% kept back are not. A gap at the weekend or on news can jump past any stop.
  • A trade your EA opens without asking (no stop, no check) can lose its spread before the library reacts. In the tests equity went below a level only within a minute of such a trade.
  • A limit set to 0 is off. With both loss limits off, PR_Room and PR_FreeRisk return DBL_MAX and PR_FitStops does nothing.
  • Check your firm's exact rules (when the day starts, balance or equity) and pass them to PR_Setup. The library follows what you set and is not affiliated with any firm.
  • The Market installs the library in MQL5\Libraries\Market. The import line must match the file name there exactly (two backslashes in the path).

All functions (copy this into MQL5\Include\BallastPropRules.mqh)

//+------------------------------------------------------------------+
//| BallastPropRules.mqh - import block for Ballast Prop Rules.      |
//| Save this file in MQL5\Include and add to your EA:              |
//|   #include <BallastPropRules.mqh>                                |
//| The Market installs the library in MQL5\Libraries\Market.        |
//+------------------------------------------------------------------+
#define PR_NOT_SET  -1   // PR_Setup not called
#define PR_OK        0   // trading allowed
#define PR_DAILY     1   // daily loss limit nearly reached: locked until the next trading day
#define PR_MAXLOSS   2   // max loss limit nearly reached: locked until PR_ClearLock
#define PR_TARGET    3   // profit target reached: locked until PR_ClearLock
#define PR_CONSIST   4   // consistency cap reached: locked until the next trading day

#import "Market\Ballast Prop Rules.ex5"
string PR_Version();
//--- setup (dailyBase: 0 balance, 1 equity, 2 higher of the two; trailMode: 0 fixed, 1 highest equity, 2 highest balance)
bool   PR_Setup(double startBalance, double dailyLossPct, int dailyBase, int dayStartHour, double maxLossPct, int trailMode,
                double targetPct, double bufferPct, string id);
void   PR_SetConsistency(double bestDayPct);
//--- status (call PR_Update on every tick)
int    PR_Update(string &why);
int    PR_Status();
string PR_StatusText(int status);
void   PR_ClearLock();
void   PR_ResetState();
//--- levels
double PR_StartBalance();
double PR_DayBase();
double PR_DailyLimitLevel();
double PR_MaxLossLevel();
double PR_TargetLevel();
double PR_TodayProfit();
double PR_ConsistencyCap();
double PR_Room();
//--- risk
double PR_OpenRisk(string symbol, ulong magic, int &noStop);
double PR_FreeRisk();
double PR_MaxLots(string symbol, double entry, double sl);
bool   PR_CanOpen(string symbol, bool buy, double lots, double sl, string &reason);
//--- actions
int    PR_FitStops(ulong magic);
int    PR_CloseAll(ulong magic);
int    PR_TradingDays();
#import

Works well with

Prodotti consigliati
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
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.
AILibrary
Marius Ovidiu Sunzuiana
AI Utility Library for MQL5 The AI Utility Library for MQL5 is a next‑generation development framework that brings artificial intelligence, adaptive logic, and intelligent data processing directly into the MetaTrader ecosystem. Designed for traders, quants, and algorithm developers who demand more than traditional indicator logic, this library transforms MQL5 into a smarter, more predictive, and more efficient environment for building advanced trading systems. Built with a modular architectur
Introducing Your New Go-To Trading EA! Boost your trading performance with this Bollinger Bands-based Expert Advisor, specially designed for XAU (Gold) and various Forex pairs. Why this EA is a must-have: Clean, user-friendly interface – perfect for all trader levels Built-in Hidden Take Profit & Stop Loss for added strategy security Ideal for both beginners and experienced traders Ready to use out of the box – no complex setup required. Trade smarter, not harder!
EagleFX10
Youssef Wajih Saeed I Said It Here
Sintesi EagleFX è un Expert Advisor (EA) completamente automatizzato per MetaTrader 5, che esegue 24/7 strategie di trading algoritmico ad alta precisione su più strumenti. Elimina le emozioni dalle decisioni, sottopone ogni segnale a rigorosi backtest, adatta dinamicamente i parametri di rischio e sfrutta moduli di memoria ispirati al machine learning per raffinare costantemente le prestazioni. Esecuzione continua e priva di emozioni Monitoraggio costante dei prezzi ed esecuzione immediata de
AsyncPro: Promise in stile JavaScript e timer non bloccanti per MQL5 "After purchase, I will send you the complete source code  with MCP Server . Please leave your email address in the comments." Panoramica Sei stanco che il tuo Expert Advisor (EA) si blocchi completamente durante l'esecuzione di Sleep() , le chiamate API esterne o l'attesa di conferme di trading? AsyncPro porta la potenza del ciclo di eventi asincrono di JavaScript direttamente in MQL5. Consente al tuo EA di eseguire attività c
RiskGuard Toolkit Library
AL MOOSAWI ABDULLAH JAFFER BAQER
RiskGuard Toolkit Library for MQL5 developers - version 1.01 Questions before buying? Message me privately and I will show you how the functions fit into your own EA. Need an example for your use case? Ask by private message - integration help is included. Send a screenshot of your order and receive one of my free products as a thank-you. Stop rewriting the same risk code in every Expert Advisor Every serious EA needs the same boring but critical pieces: a lot size that matches the risk you inte
News Filter Library MT5
Niquel Mendoza
5 (1)
This library allows you to automatically filter events by symbol. Additionally, it requires the use of "flags" to classify events based on their importance (high, low, etc.). Properties: Our library is simple and only requires the export of four functions to work properly. Requirements: The library uses OnTimer , so it is not compatible with programs that also use this event. If your bot utilizes OnTimer , this may interfere with the library’s functionality and prevent event filtering. We recomm
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
Pionex API EA Connector pour MT5 – Intégration transparente avec MT5 Aperçu Le Pionex API EA Connector pour MT5 permet une intégration fluide entre MetaTrader 5 (MT5) et l’ API Pionex . Cet outil puissant permet aux traders d’exécuter et de gérer des ordres, d’obtenir des informations sur le solde et de suivre l’historique des transactions, le tout directement depuis MT5 . Principales fonctionnalités Gestion du compte et du solde Get_Balance(); – Récupère le solde actuel du compte sur Pionex
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 
PulsePanel FREE – Esattamente lo stesso dashboard pulito, professionale e potente della versione Pro, offerto completamente gratis per testarlo a fondo prima di passare alla versione completa. Limite: funziona solo su USDCHF e GBPNZD , ma avrai accesso pieno e senza alcuna restrizione a tutte le funzioni principali: Cosa ottieni nella versione FREE Esecuzione istantanea con un solo click (buy/sell) Forza delle valute in tempo reale Scanner di momentum ultra-preciso Watchlist con trend, momentum
FREE
Breakout Pending Dashboard MT5 is an Expert Advisor specialized in breakout trading using Buy Stop and Sell Stop pending orders. The EA automatically analyzes key market levels to identify potential breakout zones, then calculates the entry level, Stop Loss and Take Profit. Main Features Breakout detection using Donchian Channels Buy Stop and Sell Stop pending orders Dynamic Stop Loss based on market structure and ATR Take Profit based on a configurable risk/reward ratio EMA, Bollinger Bands, AD
What it does: Scans a fixed list of assets (24-hour US stock pairs from the Pepperstone brokerage) on the chosen timeframe. For each pair and for various periods (Period1…Period100 ABOVE) it: Calculates a regression model between the two assets (and, if desired, using the US500 index as a normalizer). Generates the residual (spread) of this relationship, its mean, standard deviation, correlation, and betas (B1 and B2). Applies an ADF test to the residual (cointegration/stationarity). Calculates
Reward Multiplier is a semi-automatic trade manager based on pyramid trading that opens additional orders with the running profit of your trades to maximize return exponentially without increasing the risk.Unlike other similar EAs, this tool shows potential profit/loss and reward to risk ratio before even entering the first trade! Download full version here  ( In the mini version. Starting lot is fixed at 0.01 (or minimum allowed lot size ) Guide + tips here MT4 version   here You only open the
FREE
BullBear Strength Meter The BullBear Strength Meter is a dynamic market sentiment and momentum indicator that quantifies the real balance of power between buyers and sellers. Instead of relying on a single formula, it fuses multiple proven analytical engines into one comprehensive strength model — giving traders an accurate visual readout of bullish and bearish dominance in real time. This tool measures, compares, and displays the intensity of market forces using advanced statistical and trend-b
FREE
Quando più Expert Advisor condividono un conto, MetaTrader mostra un solo saldo. Un robot che perde in silenzio può nascondersi per mesi dietro uno che guadagna, e lei se ne accorge solo quando se ne accorge il conto. Halberd Portfolio Monitor mette ogni Expert Advisor su una riga propria , per numero magico: operazioni, percentuale di successo, profit factor, risultato netto, drawdown, posizioni aperte e uno stato di salute. La vista del rischio mostra se una strategia è ancora nel suo interval
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
Key Features: 200+ Fully Implemented Patterns   across all categories Advanced Market Structure Analysis Smart Money Integration   (Wyckoff, Order Blocks, Liquidity) Professional Risk Management Multi-Timeframe Analysis AI-Powered Confidence Scoring Advanced Visualization Real-time Alerts Pattern Categories: Single Candle Patterns (Hammer, Doji, Marubozu, etc.) Multi-Candle Patterns (Engulfing, Stars, Harami, etc.) Chart Patterns (Head & Shoulders, Cup & Handle, Triangles, etc.) Harmonic Pattern
FREE
Night Princess
Sabrina Hellal
Night Princess EA delivers consistent, safe trading results—time and time again.  Limited-time discounted price. The price will increase by $50 for every 10 copies sold. The final price will be $1777. A complete and unwavering focus on "quality over quantity" and "fishing in the dark"—this is my core strength. I am specifically designed to exploit the quiet nighttime (Asian Session) periods in the gold (XAUUSD) market, where there is no noise or explosive news, and the price moves in calm, p
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
PositionMap Pro — Account Overview Panel for MT5 A real-time panel that groups all open positions by symbol and shows Buy lots, Sell lots and net profit/loss directly on your chart — the whole account at a glance. Instead of counting lots symbol by symbol in the Terminal tab, PositionMap Pro groups everything automatically. You instantly see how much exposure you have on each symbol, split by direction. Panel example Symbol Buy Lot Sell Lot Net P/L EURUSD 0.50 — +12.30 XAUUSD — 1.00 −45.00 GBPUS
FREE
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
SignalXpert
Steve Rosenstock
5 (4)
CLICCA QUI PER VEDERE TUTTI I MIEI PRODOTTI GRATUITI SignalXpert è stato sviluppato da me per offrire ai trader che utilizzano l’indicatore RangeXpert uno strumento di analisi potente. RangeXpert funge da base del sistema: rileva aree di mercato precise e fornisce i dati che SignalXpert analizza in tempo reale per generare segnali chiari e utilizzabili. Questo consente il monitoraggio simultaneo di fino a 25 diversi asset su più timeframe , rilevando in tempo reale i movimenti di mercato più i
FREE
Protect your funded accounts and personal capital with military-grade precision. This utility continuously monitors your floating equity against your daily starting balance. The moment your custom drawdown threshold is breached, it instantly liquidates all open positions, deletes pending orders, and completely unloads from the chart. Stop revenge trading and never fail a prop firm evaluation due to a margin breach again.
FREE
TradeJournal AutoExporter
Mogae Ronald Sekwababe
TradeJournal AutoExporter is a powerful utility designed for MetaTrader 5 that automatically captures and logs your trading activity in real time. Eliminate manual record-keeping and keep your focus entirely on the market. Key Features: Automated Data Capture: Instantly logs detailed trade statistics—including open/close prices, lot sizes, trade duration, commissions, swap, and profit/loss—the moment a trade closes. Seamless Exporting: Automatically saves your trade history into clean, structure
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
Overview AlgoNLP.mqh is a standalone MQL5 library designed to convert natural-language trading instructions into structured trade intents that can be processed by Expert Advisors (EAs) and custom indicators. It provides a lightweight text-parsing interface for developers who want to integrate plain-language command processing into their MetaTrader 5 applications. Example input: Buy gold at 2370 with TP 0.3% and SL 1% Parsed output: Side: BUY | Type: LIMIT | Symbol: XAUUSD | Entry: 2370 | TP: 0.3
FREE
Shawrie
Kevin Kipkoech
This Pine Script implements a Gaussian Channel + Stochastic RSI Strategy for TradingView . It calculates a Gaussian Weighted Moving Average (GWMA) and its standard deviation to form an upper and lower channel. A Stochastic RSI is also computed to determine momentum. A long position is entered when the price closes above the upper Gaussian band and the Stoch RSI K-line crosses above D-line . The position is exited when the price falls back below the upper band. The script includes commission, cap
Ajuste BRA50
Claudio Rodrigues Alexandre
4.33 (6)
Este script marca no gráfico do ativo BRA50 da active trades o ponto de ajuste do contrato futuro do Mini Índice Brasileiro (WIN), ***ATENÇÃO***  para este script funcionar é necessário autorizar a URL da BMF Bovespa no Meta Trader. passo a passo: MetaTrader 5 -> Ferramentas -> Opções -> Expert Adivisors * Marque a opção "Relacione no quadro abaixo as URL que deseja permitir a função WebRequest" e no quadro abaixo adicione a URL: https://www2.bmf.com.br/ este indicador usa a seguinte página par
FREE
Gli utenti di questo prodotto hanno anche acquistato
XAUUSD BREAKOUT EA — Stop Predicting the Market. Trade the Breakout. You do not need to sit in front of the chart all day waiting for gold to break support or resistance. This XAUUSD Breakout EA is designed to identify market consolidation, detect meaningful price expansion, and automatically execute trades when predefined breakout conditions are met. BACKTEST RESULTS — 99% QUALITY Initial Deposit: $1,000 Total Net Profit: +$21,115 Profit Factor: 2.37 Expected Payoff: $213 per trade Total Tr
ModernUI Library
Levi Dane Benjamin
Libreria ModernUI per MetaTrader 5 ModernUI è una libreria di interfaccia utente ospitata sul grafico per MetaTrader 5. Aiuta gli sviluppatori MQL5 a creare pannelli EA più puliti, dashboard, finestre di impostazioni, form, tabelle, finestre di dialogo, drawer e interfacce compatte in stile trading direttamente nell’ambiente grafico di MT5. È progettata per gli sviluppatori che vogliono un livello di interfaccia più professionale rispetto a oggetti grafici sparsi, mantenendo comunque il pieno co
Native Websocket
Racheal Samson
5 (6)
An   easy to use, fast,  asynchronous   WebSocket library  for MQL5. It supports: ws://   and   wss://  (Secure "TLS" WebSocket) text   and   binary   data It handles: fragmented message  automatically (large data transfer) ping-pong   frames  automatically (keep-alive handshake) Benefits: No DLL required. No OpenSSL installation required. Up to 128 Web Socket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native t
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
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
OrderBook History Library
Stanislav Korotky
3 (2)
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
BitMEX Trading API
Romeu Bertho
5 (1)
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
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
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
Questa libreria ti consentirà di gestire le operazioni utilizzando qualsiasi tuo EA ed è molto facile da integrare su qualsiasi EA, cosa che puoi fare tu stesso con il codice script menzionato nella descrizione e anche esempi demo su video che mostrano il processo completo. - Ordini con limite di posizionamento, limite SL e limite di take profit - Ordini di mercato, mercato SL, mercato TP - Modifica ordine limite - Annulla Ordine - Interroga gli ordini - Cambia leva, margine - Ottieni inf
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG Risk Service Manager" — your comprehensive toolkit for swift and precise risk management and lot size calculations in the dynamic world of trading. Designed to streamline development processes and enhance trading strategies, this indispensable library equips developers with essential tools for optimizing risk assessment and trade profitability. Metatrader4 Version |  All Products  |  Contact   Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size c
Introducing "TG Trade Service Manager" — your all-in-one solution for seamless trade management in both MQL4 and MQL5 environments. With a focus on speed, reliability, and convenience, this powerful library simplifies the complexities of trade execution and management, empowering developers with a single interface for enhanced efficiency. Metatrader4 Version   |   All Products   |   Contact   Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   an
OpenAI Library MT5
VitalDefender Inc.
La seguente libreria si propone come un mezzo per poter utilizzare le API di OpenAI direttamente sulla metatrader, nella maniera più semplice possibile. Per maggiori approfondimenti sulle potenzialità della libreria, leggere il seguente articolo: https://www.mql5.com/it/blogs/post/756106 I file necessari per usare la libreria li trovate qui: Manuale IMPORTANTE: Per utilizzare l'EA è necessario aggiungere il seguente URL per consentire l'accesso all'API OpenAI c ome mostrato nelle immagini allega
KP TRADE PANEL EA is an EA MT5 facilitates various menus. KP TRADE PANEL EA is an EA skin care in MT5 is an EA that puts the system automatically in download EA MT5 to test with demo account from my profile page while some Trailing Stop Stop Loss require more than 0 features EA determines lot or money management calculates lot from known and Stop loss TS = Trailing stop with separate stop loss order Buy more AVR TS = Trailing stop plus
Here   is   the   English translation   of   your   description   for   the EA   (Expert   Advisor): --- This   is a   time -based   automatic trading   EA . It allows   you   to   set the   exact   time   for trading , down   to   the   second , and   specify the   maximum number   of   orders . You   can choose   to   place   either   buy   or   sell   orders . It   is possible to   set take   profit and   stop   loss   points . Additionally , you can   specify   how   long after   placing  
MyTradingHistory
Max Timur Soenmez
Una libreria facile da usare che fornisce agli sviluppatori un accesso diretto alle principali statistiche di trading per i loro EA MQL5. Metodi disponibili dalla libreria: Dati del conto e profitti: GetAccountBalance() : Restituisce il saldo attuale del conto. GetProfit() : Restituisce il profitto netto da tutte le operazioni. GetDeposit() : Restituisce l'importo totale dei depositi. GetWithdrawal() : Restituisce l'importo totale dei prelievi. Analisi del trading: GetProfitTrades() : Restituisc
Molo kumalo
James Ngunyi Githemo
Trading Forex with our platform offers several key advantages and features: Real-time Data : Stay updated with live market data to make informed decisions. User-Friendly Interface : Easy-to-navigate design for both beginners and experienced traders. Advanced Charting Tools : Visualize trends with interactive charts and technical indicators. Risk Management : Set stop-loss and take-profit levels to manage your risk. Multiple Currency Pairs : Access a wide range of forex pairs to diversify your tr
Kaseki
Ben Mati Mulatya
The Hybrid Metaheuristic Algorithm (HMA) is a cutting-edge optimization approach that combines the strengths of genetic algorithms with the best features of population-based algorithms. Its high-speed computation ensures unparalleled accuracy and efficient search capabilities, significantly reducing the total time required for optimization while identifying optimal solutions in fewer iterations. HMA outperforms all known population optimization algorithms in both speed and accuracy. Use Cases AO
*****La negoziazione principale è XAUUSD. In caso di test, si consiglia di adeguarsi a XAUUSD. Altri obiettivi di trading non possono garantire la redditività******* Se avete bisogno di testare, lasciate un messaggio (vi risponderò non appena lo vedo). Per proteggere i risultati del lavoro, è necessario inserire parametri specifici. I parametri predefiniti del sistema non possono raggiungere l'effetto mostrato nel pullback dello screenshot! Se avete bisogno di testare, lasciate un messaggio (
Questo prodotto è in sviluppo da 3 anni. È il codice più avanzato per lavorare con tutti i tipi di intelligenza artificiale e apprendimento automatico nel linguaggio di programmazione MQL5. È stato utilizzato per creare molti robot di trading e indicatori basati sull'IA in MetaTrader 5. Questa è una versione premium del progetto open source e gratuito per il machine learning in MQL5, disponibile qui:  https://github.com/MegaJoctan/MALE5 . La versione gratuita ha meno funzionalità, è meno documen
Bookeepr
Marvellous Peace Kiragu
Bookeepr is an advanced MQL5 trading bookkeeping software that automates trade logging, tracks real-time P&L, and integrates a ledger-style financial system for deposits, withdrawals, and expenses. It supports multi-currency assets , generates detailed performance reports , and provides risk management tools to help traders optimize their strategies. With secure cloud storage, exportable reports, and seamless MetaTrader 5 integration , Bookeepr ensures accurate, transparent, and hassle-free fina
Ai Prediction MT5
Mochamad Alwy Fauzi
A free indicator for those who purchase the full version This indicator is created by this Ai, with your desired settings Artificial Intelligence at your service Have a complete artificial intelligence and use it in your codes This artificial intelligence is trained to tell you on each candle whether the market is moving up or down. In general, artificial intelligence can be used in all markets, all timeframes and all symbols However, due to the increasing complexity and decreasing accuracy of
Altri dall’autore
Free. What does trading really cost at your broker, hour by hour? Ballast Spread Log measures the spread tick by tick, keeps a log for every weekday hour and shows on the chart when trading is cheap and when it is expensive. It never trades. 24 bars, one per hour (server time): the average spread from Monday to Friday or only for today's weekday. Green = normal, orange = above 1.5x typical, red = above 3x typical. Time weighted : a spread that lasts 30 seconds counts 30 times more than one that
FREE
Free lot size calculator (position size calculator) with stop-loss and take-profit levels from the average daily range (ADR): the lot is rounded down, so the stop risks no more than your chosen % of balance (before slippage and commission). Ballast Risk Panel opens trades in one click with the lot from your risk % and an automatic stop. It sizes that stop its own way (ATR or fixed points), so its lot differs from the one shown here. For prop-firm accounts, Ballast Prop Guard fits the stops of al
FREE
Free lot size calculator (position size calculator) with stop-loss and take-profit levels from the average daily range (ADR): the lot is rounded down, so the stop risks no more than your chosen % of balance (before slippage and commission). Ballast Risk Panel opens trades in one click with the lot from your risk % and an automatic stop. It sizes that stop its own way (ATR or fixed points), so its lot differs from the one shown here. For prop-firm accounts, Ballast Prop Guard fits the stops of al
FREE
Would your trading have passed a prop-firm challenge? Checks your closed trades against the daily loss, max loss, profit target and minimum trading days, and shows every day that broke a rule. Drop Ballast Prop Rules Checker on any chart, enter the rules of your firm, and in a second it replays your account history day by day the way a prop firm judges it: Verdict: PASSED, FAILED (which rule, on which day and hour), or still running. Daily loss limit: how many days broke it and how many came wit
FREE
Free. What does trading really cost at your broker, hour by hour? Ballast Spread Log measures the spread tick by tick, keeps a log for every weekday hour and shows on the chart when trading is cheap and when it is expensive. It never trades. 24 bars, one per hour (server time): the average spread from Monday to Friday or only for today's weekday. Green = normal, orange = above 1.5x typical, red = above 3x typical. Time weighted : a spread that lasts 30 seconds counts 30 times more than one that
FREE
Shows where your account loses money: trades without a stop-loss, worst symbols, weekdays, hours and holding times. New in 1.10: the report ends with What would have helped — for each problem it found (trades without a stop, a few oversized losses, one very bad day) it names the fix and the Ballast tool that does it: Ballast Risk Panel (lot from risk, a stop on every trade, daily loss lock) or Ballast Prop Guard (prop-firm rules). Drop Ballast Loss Finder on any chart. In a second it reads your
FREE
Shows where your account loses money: trades without a stop-loss, worst symbols, weekdays, hours and holding times. New in 1.10: the report ends with What would have helped — for each problem it found (trades without a stop, a few oversized losses, one very bad day) it names the fix and the Ballast tool that does it: Ballast Risk Panel (lot from risk, a stop on every trade, daily loss lock) or Ballast Prop Guard (prop-firm rules). Drop Ballast Loss Finder on any chart. In a second it reads your
FREE
Would your trading have passed a prop-firm challenge? Checks your closed trades against the daily loss, max loss, profit target and minimum trading days, and shows every day that broke a rule. Drop Ballast Prop Rules Checker on any chart, enter the rules of your firm, and in a second it replays your account history day by day the way a prop firm judges it: Verdict: PASSED, FAILED (which rule, on which day and hour), or still running. Daily loss limit: how many days broke it and how many came wit
FREE
Direct translation of blackcat's L3 Banker Fund Flow Trend Oscillator. Get push notifications on your phone app when a signal bar has formed. Historical signals are shown with buy/sell arrow right on the main chart. Indicator uses two data calculations to check for a cross below 25% level (a signal to go long) and above 75% level (a signal to short). For any further questions  feel free to contact me directly. Including requests for product improvements.
Two lines are being drawn in a separate window. And both are representing an angle of a trendline. One trendline is measured going across two price highs, but the other is measured across two lows. You get to choose the period from which the first price high and first price low is being determined. The second high and low comes from identical time period preceding the first one. Feel free to experiment with the period count until you get the confirmation you are looking for.
Line1: simple calculation of change in closing price for the chosen input period - named Velocity. Line2: simple calculation of change in velocity for the chosen input period - named Acceleration. Feel free to play with the input periods to find a profitable combination. For faster results it is best to do it in MT Optimizer. Can assist in either manual or automatic trading.
This is an Expert that gives you a control panel with two buttons - 'Hide Stops' and 'Show Stops'. With a click of a button you can hide your stoploss and takeprofit levels from your broker and restore them if necessary. When levels are hidden Expert tracks orders in the background and closes them as soon as the price exceeds hidden levels. It is not opening new orders just working with existing ones, only stoploss and takeprofit levels are not visible to the market. Choose zero as magic number
Keeps your prop-firm challenge inside its rules: fits every stop to the loss you have left, closes and locks before the daily or total limit, locks a reached profit target. Launch price until 3 December 2026: 35 USD (then 49 USD). A prop-firm challenge is usually lost to one rule: the maximum daily loss or the maximum total loss. Ballast Prop Guard watches the whole account — manual trades and every EA — and makes those limits very hard to break. What it does Fitted stops — every open trade gets
One-click trading that sizes every lot from your risk %, adds a stop-loss to any trade without one, and locks trading after your daily loss limit. Most accounts are not lost by a bad strategy. They are lost by one trade without a stop, one oversized lot, or one bad day that turns into revenge trading. Ballast Risk Panel stops all three. 1. Buy / Sell with the right lot size Press BUY or SELL. Ballast Risk Panel calculates the lot so that the stop-loss loses exactly your chosen % of balance (defa
Manages your open trades for you: break-even, partial profit, ATR trailing stop and time exit — measured in R, never loosening a stop. Opening a trade is the easy part. Ballast Exit Manager handles the rest, the same way every time, for manual trades and trades from other EAs. Everything is measured in R = the trade's initial risk (the distance from entry to the first stop-loss). A trade at +1R has made as much as it risked. Break-even — at +1R (default) the stop moves to the entry price plus a
Closes all your trades together when their combined profit or loss reaches your target — in money or % of balance — with an optional trailing profit lock. Many trades open at once — from you, from several EAs, or a grid/basket strategy. Ballast Equity Target watches their combined result and closes them all together: Profit target in money and/or % of balance (the first one reached wins). Loss limit in money and/or % of balance. Trailing profit lock — once the basket is up X%, it may give back a
Hidden stop-loss and take-profit: your levels stay in the EA, not at the broker. Drag the lines to move them; a wider emergency stop stays as insurance. Ballast Stealth Stops keeps your stop-loss and take-profit inside the EA. When price reaches a level, the trade is closed at market. The broker sees only a much wider emergency stop (or nothing, if you choose). Takes over existing broker stops/targets, or sets hidden levels (fixed points or ATR multiple, target as a multiple of the stop). Drag t
One-cancels-other for MT4: when one pending order fills, the others are deleted at once. One-click straddle with stop, target, expiry and a risk-based lot. MetaTrader 4 has no built-in OCO. Place a buy stop above and a sell stop below before the news, one of them fills, and the other one is still waiting to open a second trade against you. Ballast OCO Orders deletes it for you. What it does OCO for any pending orders — buy/sell stop, buy/sell limit. Placed by hand, from the one-click button, or
One line at the price where all your open trades on the symbol together are at zero — swaps and commission included — plus lines for your basket profit target and loss limit. Three buys at different prices, one sell, a few EAs on the same chart: where is the price at which all of it together is back at zero? MT4 does not show it. Ballast Break Even draws that price as one line and keeps it up to date on every tick. What it shows Break-even line — the Bid price at which all open trades on the sym
Asia, London and New York session boxes, with statistics from the symbol's own history: average ranges, how often London breaks the Asian range, when the day's high and low form. Session boxes show where each session traded. Ballast Session Ranges also tells you what usually happens next on the symbol you are looking at, measured on its own history. On the chart Boxes for the Asian, London and New York sessions, with the range of each session in points. Session hours are inputs (server time), in
Shows what your open trades really add up to: net long/short per currency, index and metal exposure, and the money lost if every stop is hit. Buy EURUSD, buy EURJPY, buy USDJPY — three different trades? Not really: you are long EUR twice and short JPY twice. Ballast Exposure Meter adds up every open trade on the account and shows the real picture. Net exposure per currency — long or short, the amount in that currency and its value in your account currency, largest first. Indices, metals, stocks,
Your account on your phone: push notifications for equity drops, low margin, trades without a stop, AutoTrading switched off, lost connection, every trade and a daily summary. Running EAs on a VPS, or leaving a manual trade open while you are away? Ballast Account Alerts watches the whole account and tells your phone (MetaTrader mobile app push), the terminal (alert) or your e-mail. Alarms Equity down X% since the start of the day (default 5%), or below a fixed amount. Margin level below X% (def
Averaging grid with a worst case you know before you start: a real broker stop on every trade, lots sized so all levels filled plus the stop = your chosen % of balance. Launch price until 3 December 2026: 35 USD (then 49 USD). Averaging grids win often and lose rarely, but when they lose, many accounts are gone. The cause is almost always the same: no stop, and lots that grow until the margin runs out. Ballast Grid Manager keeps the useful part of a grid and removes the unlimited part. How it wo
Copies trades between MT4 terminals on one PC or VPS — opens, partial closes, closes, stop-loss and take-profit — and to or from the MT5 version. Launch price until 3 December 2026: 41 USD (then 59 USD). Run TradeCopier as MASTER on the account you trade, and as SLAVE on every account that should follow. All terminals must run on the same computer or VPS. Copies new trades, partial closes , full closes, stop-loss and take-profit changes . MT4 and MT5 together: the MT4 and MT5 versions use the sa
Your trading in R: every closed trade divided by the money its stop risked. See which setups really pay, what a trade is worth on average and how your weeks went, without keeping a spreadsheet. Attach Ballast Trade Journal to any chart. It reads the account history, rebuilds every trade (partial closes and additions included) and refreshes by itself each time a trade closes. It never opens, changes or closes a trade. R for every trade : the result (with swap and commission) divided by the money
Stop losing trades to the spread. At rollover and around news the spread can jump to ten or twenty times its usual size for a minute: pending orders fill at bad prices and stop-losses get hit although the price never went there. Ballast Spread Guard steps aside while the spread is wide and puts everything back when it is normal again. Attach it to one chart. It watches the spread of that symbol (or a list of symbols) and acts on all their orders, manual or from any EA. It never opens a trade. Kn
The order handling behind every Ballast tool, as a library for your own Expert Advisors. One call opens a trade sized to a percentage of the account, refuses to send it without a stop, checks every broker limit first and retries requotes, so your EA never sends an order the broker or the Market validator rejects. It is not a trading strategy. It is the part every EA needs and most get wrong: how many lots, is this order valid, what if the broker says no. Lot size from risk that does not trust th
The prop-firm rules behind Ballast Prop Guard, as a library for your own Expert Advisors. Give it the firm's rules once. On every tick it tells your EA whether it may trade and how many lots still fit before the daily or total loss limit, and it tightens stops so that all open trades together cannot take the account past a limit. It is not a trading strategy. It is the part a prop-firm EA needs and that ends most challenges: one bad day, or one trade too big. The rules firms use : daily loss mea
Pauses the Expert Advisors on your other charts when trading is a bad idea, and restarts them afterwards with their own settings: after a daily loss or a run of losing trades, at the hours you choose, or while the spread is too wide. One copy on one chart looks after all the others. Any EA works as it is: no code changes, no DLL, no web requests. How a pause works : EA Pause saves the chart's template, takes the EA off the chart and keeps everything else (indicators, drawings, settings). While p
L3 Banker Fund Flow Trend Oscillator v5 is a simple translation of blackcat's work from pine script (language used by TradingView platform) to mql5. It generates buy and sell signals when two calculated buffers cross over each other in the oversold and overbought oscillator territory. Current version does not offer any changable inputs, but could be easily added in the modified version if requested.
Filtro:
Nessuna recensione
Rispondi alla recensione