DinexSpace JSON Writer Library

DinexSpace JSON Writer Library is a library for MetaTrader 5 (MT5) that builds a valid JSON text piece by piece, for your indicator or Expert Advisor. You begin an object or an array, add keys and values, end it and read the text. The commas, colons, quotes and the escaping of special characters are done for you, and a call that would make the text invalid is refused with a code.

How it works

  • Call DxJwCreate with the number of levels, whether to write letters above the basic set as codes, and the indent (0 for a compact text). You get a handle.
  • Call DxJwBeginObject or DxJwBeginArray, then DxJwKeyString, DxJwKeyNumber, DxJwKeyInt, DxJwKeyBool, DxJwKeyNull or DxJwKey followed by a value call, and close with DxJwEndObject or DxJwEndArray.
  • When one value is complete, DxJwComplete is true and DxJwText gives the text. Before that DxJwText returns an empty string with a status code.
  • DxJwEscape escapes a single string.

What you get

  • Complete text: objects, arrays, strings, numbers, true, false and null, with the commas, colons and quotes put in for you.
  • Escaping done: quotes, backslashes, control characters, non-Latin letters and emoji are written the way the JSON rules ask.
  • Compact or indented: no spaces at all, or one element on each line with the indent you choose; letters above the basic set can be written as \uXXXX codes.
  • Misuse is refused: a value without a key in an object, a key outside an object, a closing bracket that does not match, a second top-level value, too many levels or a number that is not finite returns a code and a plain-English text, and the text written so far stays valid.
  • Checked: the example EA writes every bar as a JSON object and compares the text with one put together by hand; 2000 random documents in four layouts are read back by a separate Python program with json.loads.
  • Light: each program has its own writers. No DLLs, no web requests, no files. The library only builds a string.

How to use it

  1. Copy DinexJsonWriter.ex5 to MQL5\Libraries.
  2. Add the import block with the functions you use (shown in the images and in the example EA).
  3. Open a writer, write the members, read the text.

Rules of the text (RFC 8259)

  • String: between double quotes. Escaped: a double quote and a backslash, the control characters 0x00 to 0x1F (as \b \f \n \r \t or \u00XX). The slash is not escaped. A surrogate code unit with no partner is written as \uXXXX.
  • Integer: the whole number. Number: a double with the number of decimals you give, 0 to 16; not-a-number and infinity are refused.
  • Layout: indent 0 has no spaces; indent n has one element on each line, n spaces for each level and a space after each colon; an empty object or array stays {} or [].

Example EA (included in the description images)
On every new bar the example writes the last closed bar as a JSON object, in compact form and with an indent of two spaces, and compares the text character by character with a text put together by hand. It also runs results worked out by hand, the error codes, and writes 200 random documents to a file for a separate check. It prints the number of checks and the number of failed checks.

Notes

  • The library only builds text. It does not read JSON, reads no market data, gives no entries or exits and does not predict any move.
  • Numbers are written with the number of decimals you give, not with the shortest form. Duplicate keys are not checked.
  • Up to 256 writers, 128 levels.

Requirements

  • MetaTrader 5, any symbol and timeframe.
Prodotti consigliati
NATS (Niguru Automatic Trailing Stop) will help you achieve more profits, by setting the trailing stop automatically. Pair this NATS application with EA, or can also be used as a complement to manual trading. A trailing stop is a powerful tool in trading that combines risk management and profit optimization.  A trailing stop is a type of market order that sets a stop-loss at a percentage below the market price of an asset, rather than a fixed number. It dynamically adjusts as the asset’s pric
FREE
Lib5 EAPadPRO for MT5
Vladislav Andruschenko
4.5 (6)
EAPADPRO Library for MetaTrader 5 è una libreria professionale gratuita di interfaccia per aggiungere un pannello informativo moderno al tuo Expert Advisor. La libreria è pensata per sviluppatori MQL5 che vogliono dare ai propri programmi di trading una presentazione visiva più pulita, più informativa e più professionale direttamente sul grafico di MetaTrader 5. Gli Expert Advisors per MetaTrader 5 spesso contengono logiche più complesse, molte impostazioni, filtri per Magic number, regole di es
FREE
Static Text display
Muhammad Saad Khan
Visualizzazione di Testo Statico è un Expert Advisor (EA) leggero e facile da usare per MetaTrader 5, progettato per ispirare ed educare i trader mostrando suggerimenti di trading motivazionali direttamente sul tuo grafico. Con un elegante sfondo nero centrato e testo bianco in un font a spaziatura fissa, questo EA offre consigli concisi e pratici in frammenti rotanti per mantenerti concentrato su un trading disciplinato. Perfetto sia per i principianti che per i trader esperti, promuove princip
FREE
This simple logging library is designed to provide clear and contextual log output with minimal hassle. It exposes five  methods: LogError Message (message) LogWarn Message (message) LogInfo Message (message) LogDebug Message (message) LogTrace Message (message) Each method prints the provided message to the console only if the severity level meets or exceeds the current threshold set by a global variable logLevel. This means you control the verbosity of your application's logs by adjusting logL
FREE
Delete Only Pending Orders
Muhammad Usman Siddique
Lo script UZFX - Delete Only Pending Orders per MetaTrader 5 (MT5) è uno strumento semplice ma efficace che rimuove automaticamente tutti gli ordini in sospeso (Buy Limit, Sell Limit, Buy Stop, Sell Stop) dal conto di trading. Questo script è ideale per i trader che desiderano cancellare istantaneamente gli ordini in sospeso senza influenzare le posizioni attive sul mercato. Scopri tutti i miei altri indicatori ed EA per MT4/MT5 >> QUI Caratteristiche: Cancella tutti gli ordini pendenti (Buy
FREE
UZFX - Delete All Drawing and Objects on Chart Instantly è uno script MetaTrader 5 (MT5) semplice ma potente, progettato per rimuovere istantaneamente tutti gli oggetti di disegno dal grafico attivo. Questo script è utile per i trader che hanno bisogno di ripulire rapidamente i loro grafici dai disegni dell'analisi tecnica, dalle linee di tendenza, dagli strumenti di Fibonacci, dalle etichette di testo e da altri oggetti senza doverli cancellare manualmente uno per uno. Caratteristiche: Elim
FREE
Lo script UZFX - Close All Open Buy & Sell Orders Instantly per MetaTrader 5 (MT5) è un potente strumento che consente ai trader di chiudere immediatamente tutte le posizioni attive sul mercato con un'unica esecuzione. Questo script è ideale per la gestione delle operazioni di emergenza, aiutando i trader a uscire rapidamente dal mercato in caso di alta volatilità, eventi di cronaca o aggiustamenti della strategia. Caratteristiche: Chiude tutte le posizioni aperte di acquisto e vendita su tut
FREE
Position Size Math
Saurabh Singh Parihar
Cosa risponde questa libreria Libreria compilata per MetaTrader 5 (MT5). Quanti lotti può davvero prendere questo conto? Se sbagli, uno stop che funziona su EURUSD viene rifiutato su XAUUSD. Position Size Math è una libreria compilata di funzioni aritmetiche pure che altri Expert Advisor, indicatori, script e passaggi di ottimizzazione chiamano invece di riscrivere ogni volta la stessa matematica. Niente trading, niente ordini, niente file e niente oggetti del grafico: ogni funzione prende numer
FREE
Important: This product is a Library for developers . It is suitable only for users who can write/modify MQL5 code and integrate a compiled library into their own EA/Script. It is not a “drag & run” notifier. Telegram SDK helps you send Telegram messages and photos from MetaTrader 5 in a simple and reliable way. Use it when you want Telegram notifications inside your own automation tools. If you need the MetaTrader 4 version, it is available separately in the Market:   Telegram SDK M T4 . Main f
Set Stop Loss to Breakeven Instantly
Muhammad Usman Siddique
4.6 (5)
Lo script UZFX - Set Stop Loss to Breakeven Instantly per MetaTrader 5 (MT5) è un potente strumento che consente ai trader di spostare rapidamente lo stop loss di tutte le posizioni aperte al loro prezzo di entrata, assicurando operazioni prive di rischio. Questo script è particolarmente utile per gestire in modo efficiente le operazioni attive, assicurando che una volta che una posizione si muove favorevolmente, il trader sia protetto da potenziali perdite. (Visitate il profilo e controllate
FREE
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
TeleSignal
Vincent Jean Robert Trolard
TeleSignal EA is an intelligent Expert Advisor designed to automatically send Telegram notifications whenever a position is opened, closed, or modified in MetaTrader 5 . It allows you to monitor your trades in real time , wherever you are — no need to keep your trading platform open. Through its direct integration with the Telegram API, you’ll receive clear and instant messages showing: Trade opened (symbol, lot size, order type, entry price) Trade closed (exit price, profit/loss, trade du
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
Risk Math Toolkit
Saurabh Singh Parihar
What this library answers Compiled library for MetaTrader 5 (MT5). How much should this trade really risk? Most people work it out by hand and get the answer wrong on gold, on an index and on a small account. Risk Math Toolkit is a compiled library of pure arithmetic functions. No trading, no orders, no files and no chart objects, because every function takes numbers and returns a number. Import the ones you need and call them inside your own Expert Advisor, indicator, script or optimisation pas
FREE
Market book tester
Aliaksandr Hryshyn
3 (2)
Using data from the order book in the strategy tester Key features: Simultaneous use of several symbols, up to 7 pieces DOM visualization With the visualization of order books, real-time simulation is available, as well as acceleration or deceleration Working with the library: This product also requires a utility to save data:  https://www.mql5.com/en/market/product/71642 Speed control utility:  https://www.mql5.com/en/market/product/81409 Include file:   https://c.mql5.com/31/735/Market_book_s
FREE
Bridge API DhanHQ v2 per MetaTrader 5 Collega MetaTrader 5 al tuo conto di trading DhanHQ e gestisci ordini, posizioni, fondi e portafoglio direttamente da MQL5. Questa libreria integra le API REST ufficiali di DhanHQ v2 (NSE, BSE, MCX), consentendoti di creare Expert Advisor (EA), script e strategie automatizzate su piattaforma Dhan. Funzionalità - Ciclo di vita completo dell'ordine: invio, modifica, cancellazione, suddivisione (slice), registro ordini (order book), ordine per ID, ordine per
ShreeFx Trade Manager
Dhiraj Shivprabhu Pattewar
Clean dual-tab panel: TRADE and SETTINGS are on separate tabs, with dark and light themes and a live dashboard showing balance, equity, floating P&L ($ and %), open positions, total lots, and spread. Edit directly on the chart: Change lot size, SL, TP, or risk by clicking the value and typing, or with the +/− buttons. Settings are saved and reload automatically after a restart. 1-click execution: Market orders, Buy/Sell Limit, and Buy/Sell Stop orders, all with SL and TP attached. Split orders:
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  
Universal MarketInfo Service Library for MT4 & MT5 Bring simplicity and power to your trading projects with the Universal MarketInfo Service — a professional library that exposes a unified API for both MetaTrader 4 and MetaTrader 5. No more rewriting code for each platform. With this library, you can: Access symbol data, OHLC prices, spreads, and volatility with a single call. Query account balance, free margin, stop levels, and lot constraints. Work with currency precision, pip values, and n
FREE
DinexSpace Rolling Statistics Library is a library for MetaTrader 5 (MT5) that keeps rolling statistics of a series of numbers for your indicator or Expert Advisor: mean, standard deviation, z-score, percent rank, correlation and autocorrelation. You push one value at a time and read the result, without writing the window code yourself. How it works Call DxRsCreate with the window length. You get a handle. Call DxRsPush for each new value (for example the close of each new bar). Read the statist
FREE
Lo script UZFX - Margine richiesto e dimensione massima del lotto per MetaTrader 5 (MT5) è stato progettato per aiutare i trader a determinare rapidamente il margine richiesto per aprire una posizione a 1 lotto e a calcolare la dimensione massima del lotto che possono negoziare in base al patrimonio netto del conto corrente. Questo strumento è essenziale per la gestione del rischio e il dimensionamento delle posizioni, consentendo ai trader di pianificare le loro operazioni in modo efficiente.
FREE
DinexSpace Indicator Handle Library is an MQL5 library for MetaTrader 5 (MT5) that creates indicator handles once, tells you whether they are ready, and reads their values with a clear status instead of silent failures. What it supports Handles by ID: create moving average, RSI, ATR or custom indicator handles and keep them as small integer IDs. Up to 64 handles per program, and up to 8 numeric inputs for a custom indicator. Ready check: ask whether a handle has calculated enough bars before you
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
Trading Notes MT5
Suvashish Halder
Trading Notes   is an innovative tool designed for traders to streamline their decision-making process by allowing them to write and display important reminders or short details directly over their trading charts. This essential feature ensures that traders have quick access to their personalized checklist before opening any positions, enhancing their trading efficiency and accuracy. MT4 Version -  https://www.mql5.com/en/market/product/120613 Join To Learn Market Depth -  https://www.mql5.co
FREE
A dependency-free MQL5 library of independent building blocks for Expert Advisor developers: risk-based position sizing, stop construction, spread filter, logging, state persistence and a retry state machine. No strategy, no profit claims. --- ARV EA Toolkit is a dependency-free library of independent modules for MQL5 Expert Advisor developers. Use only what you need; the modules do not depend on each other except for a tiny shared defines header. It contains no trading strategy and makes no
FREE
Questa libreria consente di gestire le operazioni utilizzando qualsiasi EA ed è molto facile da integrare in qualunque EA. È possibile farlo autonomamente utilizzando il codice dello script indicato nella descrizione, oltre a esempi dimostrativi video che mostrano l’intero processo. Questo prodotto consente di eseguire operazioni di trading sull’exchange Bybit tramite API. Per i grafici: il noleggio di grafici crypto per dati OHLC o tick crypto con profondità del book ordini è opzionale. Inserim
Toolkit Utility
Mohamed Maguini
Sniper Utility Rimani sempre aggiornato sui tuoi trade, ovunque tu sia. Sniper Utility invia notifiche immediate ogni volta che uno dei tuoi ordini raggiunge il Take Profit o lo Stop Loss . Perfetta per trader attivi che desiderano monitorare le proprie operazioni senza dover controllare costantemente il terminale. ️ Funzionalità principali Notifica istantanea alla chiusura dell’ordine (TP o SL) Compatibile con notifiche push su dispositivi mobili Supporto per ordini manuali, EA e p
Regime Lab
Shipra Gupta
Regime Lab Regime Lab è una libreria MQL5 gratuita per gli sviluppatori di Expert Advisor MetaTrader 5 (MT5): MQL5 library, Hidden Markov Model HMM, market regime detection, Hurst exponent, variance ratio, quant. Importala in qualsiasi EA, indicatore o script con un #import e usala dal vivo e nello Strategy Tester per creare sistemi di trading algoritmico più robusti e adatti alle prop firm su forex, oro (XAUUSD), indici e cripto. Indica al tuo EA in quale regime di mercato si trova, con statist
FREE
Auto trading so strong mt5 trading script so rich and running amazing auto trading trades with so high quality performance and results Look that is the best trading script that will help you to make good results like in screenshots i built that strategy depend on Envelopes indicator to make that script trading in that area excellent scalping trades and gain maximum good results per trade so i built that strategy manually then I make it auto trading  so to start use that script add to scripts aft
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
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
MT5 to Delta Exchange API Bridge EA Connector allows your expert advisor with mq5 file to integrate and communicate with Delta Exchange using API Keys You can place order, check balance and other order managements using Delta Exchange API - Place Limit, SL Limit and Take Profit Limit Orders - Place Market, SL-Market, TP-Market orders - Cancel Order - Query Orders - Change Leverage, margin - Get Position info and many more, details available at demo script Script Documentation 
EX5 Signal Copier
Rajesh Kumar Nait
Libreria EX5 Signal Copier — Motore professionale per eventi di trading per MetaTrader Trasforma qualsiasi Expert Advisor in un potente copiatore di trading, processore di segnali o motore di automazione, senza dover scrivere complesse logiche di tracciamento delle operazioni. La libreria EX5 Signal Copier è un sistema ad alte prestazioni basato su eventi che cattura ogni attività di trading in MetaTrader 5 e la converte in segnali strutturati che puoi utilizzare per creare: Copiatori di trad
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions. Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lot (1,3,5,8,13) you can use it in different way calculate when loss=1 ,when profit=0. Mode 2: Multiplier Lot (1,2,4,8,16) you can use it in different way calculate when loss=1 ,when profit=0. Mode 3: Plus Lot (1,2,3,4,5) you can use it in different way calculate when loss=1 ,when profit=0. Mode 4: SL/Risk Lot calculate based on s
Friends, join us! Ask questions and connect with like-minded traders: MetaCOT Public Group MetaCOT Information Channel: news, CFTC reports, and signals: MetaCOT Channel Here’s to successful trading and new profitable signals for us all! Attention! Recently, certain countries have been blocking access to the cftc.gov website. As a result, users in these countries are giving the product low ratings. MetaCOT has always adhered to the highest quality standards and is in no way associated with th
WalkForwardOptimizer MT5
Stanislav Korotky
3.63 (8)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 5. To use the library include its header file WalkForwardOptimizer.mqh into your EA source code, add call provided functions as appropriate. Once the library is embedded into EA, you may start optimization according to the procedure described in the User guide . When it's finished, intermediate results are saved into a CSV file and some special global variables.
This is a simplified and effective version of the library for walk forward analysis of trading experts. It collects data about the expert's trade during the optimization process in the MetaTrader tester and stores them in intermediate files in the "MQL5\Files" directory. Then it uses these files to automatically build a cluster walk forward report and rolling walk forward reports that refine it (all of them in one HTML file). Using the WalkForwardBuilder MT5 auxiliary script allows building othe
OrderBook History Library
Stanislav Korotky
3 (2)
Order Book, known also as Market Book, market depth, Level 2, - is a dynamically updated table with current volumes of orders to buy and to sell specific financial instument at price levels near Bid and Ask. MetaTrader 5 provides the means for receiving market book from your broker, but in real time only, without access to its history. The library OrderBook History Library reads market book state in the past from archive files, created by OrderBook Recorder . The library can be embedded into you
BitMEX Trading API
Romeu Bertho
5 (1)
Cryptocurrency analysis has never been easier with Crypto Charts for MetaTrader 5. Now, trading on BitMEX has never been easier with BitMEX Trading API for MetaTrader 5. BitMEX Trading API library was built to be as easy to use as possible. Just include the library into your Expert Advisor or Script, call the corresponding methods and start trading! Features Trade on BitMEX and BitMEX Testnet. Build and automate your strategies. Concern more with the trading strategy logic and less with the co
Teclado trader, é uma BIBLIOTECA que você pode chamar no OnChartEvent para abrir posição de compra/venda/zerar, os botões padrões são: V = venda C = compra Z = zerar posições a mercado S = zerar posições opostas e depois a mercado X = zerar posições opostas Além da função de teclado, é possível mostrar os estados do ExpertAdvisor usando o MagicId, com informação de: lucro mensal, semanal, diario, e posição aberta, para isto use o OnTick, ou qualquer outro evento (OnTimer / OnTrade / OnBookEven
Goliath Mt5
Nicolokondwani Biscaldi
Goliath MT5 - scalper fully automated Expert Advisor for medium-volatile forex markets P roperties: The Library trades 10 currency pairs (USDCHF, EURCHF, EURGBP, AUDUSD, USDCAD, GBPUSD, EURUSD, NZDUSD, CADCHF, EURAUD, EURCAD, AUDJPY) The Library does not use martingale The Library sets a fixed stop loss and take profit for all orders The Library only trades a user input volume The Library can be installed on any currency pair and any timeframe Recommendations: Before using on a real account, t
Binance Library
Hadil Mutaqin SE
5 (1)
The library is used to develop automatic trading on Binance Spot Market from MT5 platform. Support all order types: Limit, Market, StopLimit and StopMarket Support Testnet mode Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header   file and EA sample   https://drive.google.com/uc?export=download&id=1kjUX7Hyy02EiwTLgVi8qdaCNvNzazjln Copy Binance.mqh to folder \MQL5\Include Copy  BinanceEA-Sample.mq5 to folder \MQL5\Experts 3. Allow WebRequest from MT5
Gold plucking machine   Gold plucking machine is an Expert Advisor designed specifically for trading gold. The operation is based on opening orders using the Fast and Slow lines indicator, thus the EA works according to the "Trend Follow" strategy, which means following the trend. Use grid strategy to place orders without stop loss operation, so please make sure the account has sufficient funds. magic number      -  is a special number that the EA assigns to its orders. Lot Multiplier        - 
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support Binance Futures USD-M and COIN-M Support Testnet mode Support all order types: Limit, Market, StopLimit, StopMarket, StopLoss and TakeProfit Automatically display the chart on the screen Usage: 1. Open MQL5 demo account 2. Download Header file and EA sample https://drive.google.com/uc?export=download&id=17fWrZFeMZoSvH9-2iv4WDJhcyxG2eW17 Copy BinanceFutures.mqh to folder \MQL5\Include Copy  Bina
MT4/5通用交易库(  一份代码通用4和5 ) #ifdef __MQL5__      #define KOD_TICKET ulong      #define KOD_MAGIC   long #else        #define KOD_TICKET long      #define KOD_MAGIC   int #endif class ODLIST; #import "K Trade Lib Pro 5.ex5"       //祝有个美好开始,运行首行加入    void StartGood() ;    //简单开单    long OrderOpen( int type, double volume, int magic, string symbol= "" , string comment= "" , double opprice= 0 , double sl= 0 , double tp= 0 , int expiration= 0 , bool slsetmode= false , bool tpsetmode= false );    //复杂开单
1. What is this The MT5 system comes with very few optimization results. Sometimes we need to study more results. This library allows you to output more results during backtest optimization. It also supports printing more strategy results in a single backtest. 2. Product Features The results of the optimized output are quite numerous. CustomMax can be customized. The output is in the Common folder. It is automatically named according to the name of the EA, and the name of the same EA will be au
T5L Library is necessary to use the EAs from TSU Investimentos, IAtrader and others. It contains all the functions framework needed to Expert Advisors working properly.  ツ - The Expert Advisors from  TSU Investimentos does not work without this library,  the T5L library can have updates during the year - At this Library you will find several funcionalities like order sends, buy and sell, trigger entry points check, candlestick analyses, supply and demmand marking and lines, and much more. 
AO Core
Andrey Dik
3.67 (3)
AO Core is the core of the optimization algorithm, it is a library built on the author's HMA (hybrid metaheuristic algorithm) algorithm. Pay attention to the MT5 Optimization Booster product , which makes it very easy to manage the regular MT5 optimizer . An example of using AO Core is described in the article: https://www.mql5.com/ru/articles/14183 https://www.mql5.com/en/blogs/post/756510 This hybrid algorithm is based on a genetic algorithm and contains the best qualities and properties of p
EA Toolkit
Esteban Thevenon
EA Toolkit   is a library that allows any developer to quickly and easily program Advisor experts. It includes many functions and enumerations such as trailing stop, lot, stop loss management, market trading authorisations, price table updates, trading conditions and many more. Installation + Documentation : You will find all the information to install this library and the documentation of its functions on this GitHub : https://github.com/Venon282/Expert-Advisor-Toolkit WARNING : The installat
GetFFEvents MT5 I tester capability
Hans Alexander Nolawon Djurberg
Want to get all events like Previous/Forecast/Actual values for each news to analyze/predict it? By this simple library you can do it easily,Just import/integrate the library into your system,then get all possible values for each news   Even In Strategy Tester   . Note: Please add the address " https://www.forexfactory.com/ " of news feed at your MT5 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator ba
A Simple Moving Average (SMA) is a statistical indicator used in time series analysis. This indicator represents the arithmetic mean of a sequence of values over a specific period of time. SMA is used to smooth short-term fluctuations in data, helping to highlight the overall trend or direction of changes. This aids analysts and traders in better understanding the general dynamics of the time series and identifying potential trends or changes in direction.  More information you can find in Wiki 
Questa libreria ti consentirà di gestire le operazioni utilizzando qualsiasi tuo EA ed è molto facile da integrare su qualsiasi EA, cosa che puoi fare tu stesso con il codice script menzionato nella descrizione e anche esempi demo su video che mostrano il processo completo. - Ordini con limite di posizionamento, limite SL e limite di take profit - Ordini di mercato, mercato SL, mercato TP - Modifica ordine limite - Annulla Ordine - Interroga gli ordini - Cambia leva, margine - Ottieni inf
Hello everyone! I am a professional MQL programmer , Making EAs, Indicators and Trading Tools for my clients all over the world. I build 3-7 programs every week but I seldomly sell any ready-made Robots. Because I am fastidious and good strategy is so few...  this EA is the only one so far I think its good enough to be published here.  As we all know, the Ichimoku indicator has become world popular for decades, but still, only few people knows the right way of using it, and if we check the clo
Applying these methods, I managed to arrive at a nuanced conclusion that is crucial to understanding the importance of unique strategies in contemporary trading. Although the neural network advisor showed impressive efficiency in the initial stages, it proved to be highly unstable in the long run. Various factors such as market fluctuations, trend changes, external events, etc. cause its operation to be chaotic and eventually lead to instability. With these experiences, I accepted the challenge
Introducing "TG 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
This trailing stop application will helping trader to set the trailing stop value for many open positions, that apply a grid or martingale strategy as a solution. So if you apply a grid or martingale strategy (either using an EA or trading manually), and you don't have an application to set a trailing stop, then this application is the solution. For EAs with a single shot strategy, just use the FREE trailing stop application which I have also shared on this forum.
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
Altri dall’autore
DinexSpace Order Block Zones is an order block indicator for MetaTrader 5 (MT5) that draws each zone from a written rule: the last opposite candle before a bar closes beyond a confirmed swing, with a minimum move measured in ATR, kept on the chart until a bar closes through it. The rule A swing high or low needs N bars on each side, so it is confirmed N bars later and does not change afterwards. A break is a bar that closes beyond the last unbroken swing. A wick beyond the level is not a break,
FREE
Heikin Ashi Smoothed draws a cleaner version of Heikin Ashi candles. Regular Heikin Ashi already averages prices to reduce noise; this version smooths twice, before and after the Heikin Ashi step, so small swings disappear and longer moves stand out. How it works The bar's open, high, low and close are smoothed with an exponential moving average (length 10 by default). Heikin Ashi candles are built from those smoothed prices: close = average of the four prices, open = midpoint of the previous ca
FREE
DinexSpace Relative Volume is a relative volume (RVOL) indicator for MetaTrader 5 (MT5) that compares the volume of each bar with the bars that opened at the same time of day on the previous days, so you can see whether a bar is unusually busy or quiet for that hour. What you get RVOL by time of day: the volume of a bar divided by the average volume of the bars that opened at the same time on the previous N trading days. A London-open bar is compared with earlier London-open bars, not with the q
FREE
DinexSpace RSI Divergence is an RSI divergence indicator for MetaTrader 5 (MT5) that marks regular and hidden divergence between confirmed price swings and the RSI, with the confirmation rule written out so you know exactly when and why a mark appears. What you get Regular divergence: price makes a higher high while RSI makes a lower high (bearish), or price makes a lower low while RSI makes a higher low (bullish). Hidden divergence: price makes a lower high while RSI makes a higher high (bearis
FREE
DinexSpace Market Structure is a market structure indicator for MetaTrader 5 (MT5) that labels confirmed swings as HH, HL, LH and LL and marks a break of structure (BOS) or a change of character (CHoCH) when a bar closes beyond a swing level, with the rules written out. What you get Swing labels: a swing high is labelled HH when it is higher than the previous swing high, LH when it is lower; a swing low HL or LL the same way. Confirmed swings only: a swing needs N bars on each side, so it is kno
FREE
DinexSpace Liquidity Sweep is a liquidity sweep indicator for MetaTrader 5 (MT5) that marks bars whose wick runs beyond a confirmed swing high or low and then closes back inside, and keeps that apart from a real break, where the bar closes beyond the level. What you get Sweep by a clear rule: the wick goes beyond the swing level by at least a share of the 14-bar average true range you set, and the bar closes back inside the level. Break, not sweep: a bar that closes beyond the level is a break.
FREE
Daily High/Low & Previous Day Levels draws the reference levels intraday traders check every morning: the previous day's high, low and close, today's open, today's running high and low, and the previous week's high and low. How it works Values come straight from the symbol's own D1 and W1 bars, so the day follows your broker's server day. Each day gets its own line segment, from the day's first bar to its last. Past days stay readable and old lines stay in place. You choose how many days to keep
FREE
DinexSpace Choppiness Regime is a Choppiness Index (CHOP) indicator for MetaTrader 5 (MT5) that shows whether the market is moving in one direction or back and forth, with a panel for several timeframes from closed bars. The formula CHOP = 100 × log10(sum of the true range over N bars ÷ (highest high − lowest low over N bars)) ÷ log10(N). When price travels far compared with all the back-and-forth movement, CHOP is low (trending). When it moves a lot but goes nowhere, CHOP is high (ranging). Wha
FREE
DinexSpace Price Imbalance Zones is a three-bar price imbalance (fair value gap) indicator for MetaTrader 5 (MT5) that draws each zone with a numeric definition, follows it until price closes back through it, and shows how often zones were filled within N bars. What you get Bullish zone: the low of bar 3 is above the high of bar 1. Bearish zone: the high of bar 3 is below the low of bar 1. The zone is the gap between them, around bar 2. Size filter: zones smaller than a share of the 14-bar avera
FREE
ATR Stop Levels draws price levels a chosen number of ATRs below and above the current price. It shows at a glance where a volatility-based stop would sit for a long or a short position, without measuring by hand. How it works ATR (Average True Range) measures the typical bar range. You can smooth it with RMA (Wilder's original method), SMA or EMA. Up to three multipliers (1.5, 2 and 3 by default). Each draws a dashed level below price and one above, with a label showing the price and the distan
FREE
Average Daily Range (ADR) Panel shows how far a symbol usually travels in a day and how much of that typical range today has already covered. It is a quick way to judge whether today is quiet, normal or unusually active. How it works The daily range is the D1 bar's high minus its low. ADR is the average of that range over the last 5, 10 and 20 completed days; today's unfinished day is not included. Today's range is the current D1 bar's high minus its low so far. "Used of ADR" is today's range di
FREE
Fibonacci Auto Levels draws Fibonacci retracement levels automatically, so you do not have to drag the Fibonacci tool by hand every time the chart moves. How it works The indicator looks at the last N bars (100 by default) and finds the highest high and the lowest low. The direction follows which extreme came last. - Low after the high: the last swing was down. Level 0 sits at the low and level 1 at the high, so the levels show how far price has bounced back up. - High after the low: the last sw
FREE
DinexSpace Volatility Squeeze is a Bollinger Bands and Keltner Channel squeeze indicator for MetaTrader 5 (MT5) that shows when volatility is compressed, when the squeeze is released, and the direction of momentum, with a panel for several timeframes on the same chart. What you get Squeeze dots on the zero line: red while the Bollinger Bands are inside the Keltner Channel (squeeze on), green when they are outside (released). Momentum histogram: the linear-regression value of the close minus the
FREE
DinexSpace Candlestick Pattern Scanner is a candlestick pattern indicator and multi-symbol scanner for MetaTrader 5 (MT5) that marks common patterns (engulfing, hammer, doji, morning star and more) on closed bars and, optionally, scans several symbols and timeframes for the latest pattern. Every rule is written out, so you know exactly what is detected. What you get Ten patterns: doji, hammer, shooting star, bullish and bearish engulfing, inside bar, outside bar, morning and evening star, three
FREE
ATR Trailing Stop Line draws where a volatility-based trailing stop would sit. For a long position the line stays a fixed number of ATRs below the highest point reached. For a short position it stays above the lowest point. The line only moves in the position's favour. How it works ATR (Average True Range, Wilder's smoothing) measures the typical bar range. The line sits a chosen multiple of it (3 by default) away from price. On each bar the line is pulled up (long side) or down (short side) whe
FREE
Opening Range Levels marks the high, low and middle of the opening range, the first minutes of a session you choose, and carries those levels through the rest of the day. How it works You set the window and its time zone: New York (default 09:30-10:00), London, Tokyo or your broker's server time. US and UK daylight saving are applied automatically. Your broker's server offset is detected from the terminal; most brokers shift their clock with US daylight saving, which is the default, and a fixed
FREE
DinexSpace Turtle Channel is a Donchian 20/55 breakout channel indicator for MetaTrader 5 (MT5) that draws the 20- and 55-bar channels with their exit channels and shows the volatility unit N, so you can see the breakout levels and the size of normal price movement at a glance. What you get Two entry channels: the highest high and lowest low of the last 20 and 55 bars (lengths adjustable). Exit channels: 10 and 20 bars by default, drawn dashed. Breakout arrows: placed when a bar closes beyond th
FREE
ATR Volatility Percentile answers a simple question: is the market quiet or busy compared with its own recent past? Raw ATR values are hard to compare across symbols and periods. A percentile puts them on one 0-100 scale. How it works ATR (Average True Range, Wilder's smoothing, length 14 by default) measures the typical bar range. The indicator compares the current ATR with the previous N values (250 bars by default). The percentile is the share of those values that were lower than or equal to
FREE
Economic Calendar Marker shows when economic news is released, directly on your chart. Each event time gets a vertical line coloured by importance, so you can see at a glance which candles were moved by news and what is coming next. How it works Events come from the economic calendar built into MetaTrader 5 (the Calendar tab of the terminal). The indicator uses the standard Calendar functions. By default it shows the currencies of the chart symbol (for example EUR and USD on EURUSD, or USD for g
FREE
DinexSpace Weekend Gap Levels is a weekend gap indicator for MetaTrader 5 (MT5) that draws the gap between the last close before the weekend and the next open, keeps it on the chart until price fills it, and counts how past gaps on the same chart were filled. How a gap is found A gap starts at the first bar after a pause of 36 hours or more, found from the bars themselves. Weekends and long holidays are both found, whatever your broker's server time. The fill level is the last close before the p
FREE
Inside/Outside Bar Highlighter colours two common candle patterns so they are easy to spot on any chart: Inside bar: the bar's high is below the previous high and its low is above the previous low. The range has contracted inside the previous bar. Outside bar: the bar's high is above the previous high and its low is below the previous low. The range has expanded beyond the previous bar on both sides. How it works The indicator draws a coloured candle on top of each matching bar. Inside bars are
FREE
DinexSpace Ichimoku MTF Dashboard is a multi-symbol, multi-timeframe (MTF) Ichimoku cloud dashboard for MetaTrader 5 (MT5) that shows the Ichimoku state of up to 12 symbols on up to 6 timeframes in one table, using closed bars only. What you get Price vs cloud: above, inside or below the cloud. Tenkan/Kijun: which line is above. Chikou: the close compared with the close 26 bars earlier. Future cloud: rising or falling cloud ahead. Overall: Bullish when all four agree up, Bearish when all four ag
FREE
Account Info Panel puts the numbers you check most often into one small panel on the chart, so you do not have to switch to the Trade tab. What it shows Balance and equity. Floating P/L of open positions. Closed today: profit, swap, commission and fees of deals closed since the start of the server day. Deposits and withdrawals are excluded. Margin used and margin available. Margin level, highlighted when it falls below 200%. Today's drawdown: how far equity is below its level at the start of the
FREE
News Countdown Panel keeps the next important economic release in view. A small panel shows how long is left until the next event of the chart's currencies, so a news spike does not catch you by surprise. How it works Events come from the economic calendar built into MetaTrader 5, through the standard Calendar functions. By default it uses the currencies of the chart symbol (for example EUR and USD on EURUSD, or USD on gold). You can type your own list, such as "USD,GBP". You choose the importan
FREE
Currency Strength Meter ranks the eight major currencies (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD) from strongest to weakest over a recent period. It uses all 28 pairs they form, so it shows whether a move belongs to one currency or to the other side of the pair. How it works For each pair the indicator takes the percent change between the last closed bar and the bar N bars before it on the chosen timeframe (24 H1 bars by default). A currency gains that change when it is the base of a pair and lo
FREE
Correlation Matrix shows how closely up to six symbols have moved together. It helps to avoid holding several positions that are really the same bet, and to see when a usual relationship between markets breaks down. How it works The reference bars are the last N closed bars (60 by default) of the chosen timeframe (D1 by default) on the chart symbol. For each symbol the indicator finds the bar at the same time with iBarShift and takes its return, so symbols with different trading hours are compar
FREE
Market Sessions Clock is a small panel that shows, at a glance, which markets are open right now and when the next one opens or closes. How it works Four sessions: Sydney, Tokyo, London and New York. Each has its own on/off switch and hours. Hours are entered in each market's local time (for example 08:00–17:00 London), and daylight saving is applied automatically for Sydney, London and New York. For every session the panel shows Open or Closed, the time left until it closes or until it next ope
FREE
Drawdown Monitor keeps an eye on your account and tells you how deep the current drawdown is. Its alerts fire before a bad day turns into a worse one. How it works DD from peak: how far equity is below its highest value. The peak is stored in a terminal global variable per account, so it survives restarts. It can be reset with an input. Floating DD: how far equity is below balance, which is the loss on open positions. Today DD: how far equity is below the equity at the start of the server day. E
FREE
Multi-Timeframe Trend Panel shows, in one small panel, what a moving average is doing on four timeframes at once (M15, H1, H4 and D1 by default). You can see whether the timeframes agree without switching charts. How it works For each timeframe the indicator reads the moving average (EMA 50 by default) on the last closed bar and on the bar a few bars before it (5 by default). The change between the two is compared with ATR(14) of the same timeframe: - rising when the average went up by more than
FREE
Lot Size Script answers one question before a trade: how many lots can I open so that hitting my stop loss costs exactly the risk I chose? Drop it on a chart, fill in two numbers and read the answer. How it works Risk is a percent of balance, a percent of equity, or a fixed amount in the account currency. The stop loss is a distance in points or a stop-loss price. A price on the wrong side of the entry is rejected with a clear message. The entry is the current ask (buy) or bid (sell) of the char
FREE
Filtro:
Nessuna recensione
Rispondi alla recensione