• Visão global
  • Comentários
  • Discussão

Relative Average Calculator

Relative Average Cost of Open Positions Indicator

Description: The “Relative Average Cost of Open Positions” indicator is a powerful tool designed for traders who engage in mean reversion strategies. It calculates the average entry price for both buy and sell positions, considering the total volume of open trades. Here are the key features and advantages of this indicator:

  1. Mean Reversion Trading:

    • Mean reversion strategies aim to capitalize on price movements that revert to their historical average. By calculating the relative average cost, traders can identify potential reversal points and make informed decisions.
  2. Breakeven Point:

    • The relative average cost price serves as a breakeven point. When the current market price crosses this level, traders can assess whether their positions are profitable or not.
    • If the market price exceeds the relative average cost, it suggests potential profits.
    • Conversely, if the market price falls below the relative average cost, it indicates potential losses.
  3. Hedge Account Support:

    • The indicator considers both buy and sell positions, making it suitable for hedge accounts.
    • It calculates the weighted average entry price, taking into account the lot sizes of each position.
  4. Easy Integration:

    • The MQL5 app seamlessly integrates with MetaTrader 5 (MT5) platforms.
    • Traders can add the indicator to their charts and customize its parameters.
  5. Visual Representation:

    • The indicator displays the relative average cost as a horizontal line on the chart.
    • Traders can visually compare the current price with this reference level.
  6. Risk Management:

    • Knowing the relative average cost helps traders manage risk effectively.
    • It provides insights into whether existing positions are favorable or need adjustments.

Usage:

  1. Install the indicator in your MT5 platform.
  2. Observe the relative average cost line on your chart.
  3. Consider potential reversals when the market price approaches this level.


Produtos recomendados
Introduction to Chart Pattern MT Chart Pattern MT is a chart pattern scanner to detect the triangle pattern, falling wedge pattern, rising wedge pattern, channel pattern and so on. Chart Pattern MT uses highly sophisticated chart pattern detection algorithm. However, we have designed it in the easy to use with intuitive user interface. Chart Pattern MT will show all the patterns in your chart in the most efficient format for your trading. You do not have to do tedious manual pattern detection an
Elliott Wave Trend was designed for the scientific wave counting. This tool focuses to get rid of the vagueness of the classic Elliott Wave Counting using the guideline from the template and pattern approach. In doing so, firstly Elliott Wave Trend offers the template for your wave counting. Secondly, it offers Wave Structural Score to assist to identify accurate wave formation. It offers both impulse wave Structural Score and corrective wave Structure Score. Structural Score is the rating to sh
Essa biblioteca é usada para classificar matrizes de chave e valor, geralmente precisamos classificar valores. como na linguagem python sorted(key_value.items(), key = lambda kv:(kv[ 1 ], kv[ 0 ])) função de importação Exemplo de cenários de uso 1. As ordens do Grid EA são classificadas de acordo com o preço de abertura void SortedByOpenPride()   {    long     OrderTicketBuffer[];    double   OpenPriceBuffer[];    for ( int i = PositionsTotal ()- 1 ; i>= 0 ; i--)      {        if (m_pos
Mine Farm
Maryna Kauzova
Mine Farm is one of the most classic and time-tested scalping strategies based on the breakdown of strong price levels. Mine Farm is the author's modification of the system for determining entry and exit points into the market... Mine Farm - is the combination of great potential with reliability and safety. Why Mine Farm?! - each order has a short dynamic Stop Loss - the advisor does not use any risky methods (averaging, martingale, grid, locking, etc.) - the advisor tries to get
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
Introducing the Power Trade Plus indicator designed by a small group of traders with a few years of experience trading the market profitably.  The Power Trade Plus is derived from the Power Trade indicator,  the indicator strive in powerful sniper entries and take profit levels,  with an algorithm that's can determine the markets volatility and Provides entries based on the current market volatility. This indicator is much more effective in stock ,currencies and indices.
The Penta-O is a 6-point retracement harmonacci pattern which usually precedes big market movements. Penta-O patterns can expand and repaint quite a bit. To make things easier this indicator implements a twist: it waits for a donchian breakout in the right direction before signaling the trade. The end result is an otherwise repainting indicator with a very reliable trading signal. The donchian breakout period is entered as an input. [ Installation Guide | Update Guide | Troubleshooting | FAQ | A
The Matrix
Omega J Msigwa
Matrix is the foundation of complex trading algorithms as it helps you perform complex calculations effortlessly and without the need for too much computation power, It's no doubt that matrix has made possible many of the calculations in modern computers as we all know that bits of information are stored in array forms in our computer memory RAM, Using some of the functions in this library I was able to create machine learning robots that could take on a large number of inputs To use this libra
Este indicador inovador de medir a força das moedas da INFINITY é um assistente indispensável para cambistas e comerciantes que negociam em longo prazo. O sistema de análise de força / fraqueza das moedas é conhecido há muito tempo e é usado no mercado pelos principais traders do mundo. Qualquer negociação de arbitragem não está completa sem essa análise. Nosso indicador determina facilmente a força das moedas subjacentes em relação umas às outras. Ele exibe gráficos de linhas em todas ou no pa
The   Visual Volatility Clustering   indicator clusters the market based on volatility. The indicator does not redraw and gives accurate data, does not use closing prices. Uses the opening prices or the highs or lows of the previous completed bar. Therefore, all information will be clear and unambiguous. The essence of the indicator is to divide the price market into certain areas according to a similar type of volatility. This can be done in any way. In this example, the indicator is configure
The   Visual Volatility Clustering   indicator clusters the market based on volatility. The indicator does not redraw and gives accurate data, does not use closing prices. Uses the opening prices or the highs or lows of the previous completed bar. Therefore, all information will be clear and unambiguous. The essence of the indicator is to divide the price market into certain areas according to a similar type of volatility. This can be done in any way. In this example, the indicator is configure
O nível Premium é um indicador único com mais de 80% de precisão nas previsões corretas! Este indicador foi testado pelos melhores Especialistas em Negociação por mais de dois meses! O indicador do autor você não encontrará em nenhum outro lugar! A partir das imagens você pode ver por si mesmo a precisão desta ferramenta! 1 é ótimo para negociar opções binárias com um tempo de expiração de 1 vela. 2 funciona em todos os pares de moedas, ações, commodities, criptomoedas Instruções:
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 );    //复杂开单
Antes de tudo, vale ressaltar que esta Ferramenta de Negociação é um Indicador Não Repintante, Não Redesenhante e Não Atrasado, o que a torna ideal para negociação profissional. Curso online, manual do utilizador e demonstração. O Indicador de Conceitos de Ação de Preço Inteligente é uma ferramenta muito poderosa tanto para traders novos quanto experientes. Ele combina mais de 20 indicadores úteis em um único, combinando ideias avançadas de negociação como Análise do Trader do Círculo Intern
Tout d'abord, il convient de souligner ici que cet indicateur de trading est un indicateur   non repeint , non redessiné et non retardé,     ce qui le rend idéal pour le trading manuel et robotisé.  Viking Strategy Signal Indicator  - est un indicateur de tendance qui analyse automatiquement le marché et fournit des informations sur la tendance et chacun de ses changements, ainsi que des signaux pour entrer dans des transactions sans redessiner ! . Points d'entrée exacts dans les transactio
Key level wedge MT5
Presley Annais Tatenda Meck
The   Key level wedge MT5   indicator automatically draws rising wedge pattern and falling wedge pattern for you on the chart. This pattern is really good when used as a confirmation entry at key support & resistance, supply & demand and reversal zones. Advantages  The   Key level wedge MT5   block DOES NOT RE-PAINT, giving you confidence when a signal appears and also helps when looking back.  The   Key level wedge MT5   includes an on/off button on the chart to easily keep the charts cle
Gold instrument scanner is the chart pattern scanner to detect the triangle pattern, falling wedge pattern, rising wedge pattern, channel pattern and so on. Gold instrument scanner uses highly sophisticated pattern detection algorithm. However, we have designed it in the easy to use and intuitive manner. Advanced Price Pattern Scanner will show all the patterns in your chart in the most efficient format for your trading. You do not have to do tedious manual pattern detection any more. Plus you
TPSpro RFI Levels MT5
Roman Podpora
4.75 (12)
INSTRUÇÕES         Russo   -        ENG       R   ecomendado para uso com um indicador       -       TPSpro   TREND PRO -   Versão MT4         Um elemento-chave na negociação são as zonas ou níveis a partir dos quais as decisões de comprar ou vender um instrumento de negociação são tomadas. Apesar das tentativas dos principais participantes de esconder sua presença no mercado, eles inevitavelmente deixam rastros. Nossa tarefa era aprender como identificar esses rastros e interpretá-los corretame
[ MT4 Version ] Supply and Demand Multitimeframe Supply and Demand Multitimeframe is the first indicator in the market that combines multiple aspects like trading volume, price structure and momentum to identify Supply and Demand zones for every asset. The Supply and Demand indicator analyzes simultaneously up to 4 different TFs and represents their information in the current graph. Its interactive UI highlights everytime the price enters a Supply or Demand zone even if the zones are not visible
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   a
Mean Volume indicator for MT5
Renaud Herve Francois Candel
Mean Volume Most indicators are based on price analysis. This indicator is based on volume. Volume is overlooked piece of information in most trading systems. And this is a big mistake since volume gives important information about market participants. Mean Volume is an indicator that can be used to spot when volume is above average. It usually means that institutional traders are active. Peak in volume can be used to confirm an entry since increased volume can sustain the move in one or
Noize Absorption Index - is the manual trading system that measures the difference of pressure between bears forces and bulls forces. Green line - is a noize free index that showing curent situation. Zero value of index shows totally choppy/flat market.Values above zero level shows how powerfull bullish wave is and values below zero measures bearish forces.Up arrow appears on bearish market when it's ready to reverse, dn arrow appears on weak bullish market, as a result of reverse expectation.
Before installing the HeatMap indicator make sure you are using a broker that gives you access to the Depth of market (DOM) !! This indicator creates a heatmap on your chart allowing you to see the buy or sell limit orders easily and in real time. You have the possibility to change the setting and the colors of the HeatMap in order to adapt to all markets and all charts. Here is an example of a setting you can use with the NASDAQ100 on the AMPGlobal broker :  https://www.youtube.com/watch?v=x0
Rainbow EA MT5
Jamal El Alama
Description : Rainbow EA MT5 is a simple Expert advisor based on   Rainbow MT5 indicator witch is based on Moving average with period 34. The indicator is incorporated in the EA, therefore, it is not required for the EA to operate, but if you wish, you can download it from   my product page . The Expert Advisor settings are as follows : Suitable for Timeframes up to H1 The parameters below can be set according to your trading rules. StopLoss ( Stop Loss in pips) TakeProfit ( Take Profit in pi
Owl Smart Levels MT5
Sergey Ermolov
4.07 (28)
Versão MT4  |  FAQ O Indicador Owl Smart Levels é um sistema de negociação completo dentro de um indicador que inclui ferramentas populares de análise de mercado, como fractais avançados de Bill Williams , Valable ZigZag que constrói a estrutura de onda correta do mercado e níveis de Fibonacci que marcam os níveis exatos de entrada no mercado e lugares para obter lucros. Descrição detalhada da estratégia Instruções para trabalhar com o indicador Consultor de negociação Owl Helper Chat privado d
Volume by Price MT5
Brian Collard
3.25 (4)
The Volume by Price Indicator for MetaTrader 5 features Volume Profile and Market Profile TPO (Time Price Opportunity). Volume and TPO histogram bar and line charts. Volume Footprint charts. TPO letter and block marker collapsed and split structure charts. Static, dynamic and flexible range segmentation and compositing methods with relative and absolute visualizations. Session hours filtering and segment concatenation with Market Watch and custom user specifications. Graphical layering, positio
Introducing the  Precision Data Extractor: LWMA , an MQL5 utility crafted for traders, analysts and quants who need accurate historical data to build robust datasets. This tool lets you selectively pull historical price and indicator data—  Linear Weighted Moving Average  ( LWMA )—from  multiple applied prices, timeframes, and periods,  then stores it in a  CSV  format, making it easy to feed into  machine learning models ,  trading algorithms , or  in-depth market analyses . Compatible with  Fo
Atomic Analyst MT5
Issam Kassas
4.32 (19)
Primeiramente, vale ressaltar que este Indicador de Negociação não repinta, não redesenha e não apresenta atrasos, tornando-o ideal tanto para negociação manual quanto automatizada. Manual do utilizador: configurações, entradas e estratégia. O Analista Atômico é um Indicador de Ação de Preço PA que utiliza a força e o momentum do preço para encontrar uma vantagem melhor no mercado. Equipado com filtros avançados que ajudam a remover ruídos e sinais falsos, e aumentam o potencial de negociação.
O indicador cria cotações atuais, que podem ser comparadas com as históricas e, com base nisso, fazer uma previsão do movimento dos preços. O indicador possui um campo de texto para navegação rápida até a data desejada. Opções: Símbolo - seleção do símbolo que o indicador exibirá; SymbolPeriod - seleção do período do qual o indicador coletará dados; IndicatorColor - cor do indicador; HorisontalShift - deslocamento das cotações desenhadas pelo indicador pelo número especificado de
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
Os compradores deste produto também adquirem
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
WalkForwardOptimizer MT5
Stanislav Korotky
3.86 (7)
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.
Native Websocket
Racheal Samson
5 (5)
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
Esta biblioteca permitirá que você gerencie negociações usando qualquer um de seus EA e é muito fácil de integrar em qualquer EA que você mesmo pode fazer com o código de script mencionado na descrição e também exemplos de demonstração em vídeo que mostram o processo completo. - Pedidos Place Limit, SL Limit e Take Profit Limit - Ordens Place Market, SL-Market, TP-Market - Modificar ordem de limite - Cancelar pedido - Consulta de pedidos - Mudança de alavancagem, margem - Ob
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.67 (3)
MetaCOT 2 CFTC ToolBox is a special library that provides access to CFTC (U.S. Commodity Futures Trading Commission) reports straight from the MetaTrader terminal. The library includes all indicators that are based on these reports. With this library you do not need to purchase each MetaCOT indicator separately. Instead, you can obtain a single set of all 34 indicators including additional indicators that are not available as separate versions. The library supports all types of reports, and prov
AO Core
Andrey Dik
3 (2)
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
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
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 c
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,
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, Stop-Limit and Stop-Market. Support margin trading. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries - Download Header   file and EA sample https://www.mql5.com/en/code/download/34972_260999.zip Copy Binance.mqh header file to folder \MQL5\Include Copy  BinanceEA-
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        -
Gold plucking machine S   Gold plucking machine  S Gold plucking machine S   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
The library is used to develop automatic trading on Binance Futures Market from MT5 platform. Support all order types: Limit, Market, Stop-Limit, Stop-Market , StopLoss and TakeProfit. Automatically display the chart on the screen. Usage: - Open MQL5 demo account - Move BinanceFuturesLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries -  Download Header file and EA sample https://www.mql5.com/en/code/download/34976_252386.zip Copy BinanceFutures.mqh header file to folder \MQL5\Include C
If you're a trader looking to use Binance.com and Binance.us exchanges directly from your MetaTrader 5 terminal, you'll want to check out Binance Library MetaTrader 5. This powerful tool allows you to trade all asset classes on both exchanges, including Spot, USD-M   and COIN-M futures, and includes all the necessary functions for trading activity. With Binance Library MetaTrader 5, you can easily add instruments from Binance to the Symbols list of MetaTrader 5, as well as obtain information ab
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 installa
This is standard library built for flexible neural Networks with performance in mind. Calling this Library is so simple and takes few lines of code:    matrix Matrix = matrix_utils.ReadCsv( "Nasdaq analysis.csv" );       matrix x_train, x_test;    vector y_train, y_test;         matrix_utils.TrainTestSplitMatrices(Matrix,x_train,y_train,x_test,y_test, 0.7 , 42 );    reg_nets = new CRegressorNets(x_train,y_train,AF_RELU_,HL, NORM_MIN_MAX_SCALER); //INitializing network       reg_nets.RegressorN
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 cl
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
Este é um EXPERT com FOCO em APRENDIZAGEM  e DESENVOLVIMENTO PROFISSIONAL !!! A ideia deste produto é comercialiar o código-fonte, permitindo que aqueles que querem desenvolver seus próprios robôs, ou iniciar uma atividade profissional de desenvolvimento de experts customizados tenham um código-fonte de referência que os ajude no processo de aprendizagem e desenvolvimento. Este código-fonte será incrementado, ou seja, novas funcionalidades serão criadas, permitindo assim que o projeto continue
The following library is proposed as a means of being able to use the OpenAI API directly on the metatrader, in the simplest way possible. For more on the library's capabilities, read the following article: https://www.mql5.com/en/blogs/post/756098 The files needed to use the library can be found here: Manual IMPORTANT: To use the EA you must add the following URL to allow you to access the OpenAI API as shown in the attached images In order to use the library, you must include the following Hea
Nmt5
Liang Qi Quan
这段代码是一个简单的交易专家顾问(Expert Advisor)示例,主要功能如下: 使用两个移动平均线(MA)作为交易信号: 快速MA(FastMA)和慢速MA(SlowMA) 初始化函数(OnInit): 创建两个MA指标句柄 设置数组为时间序列模式 清理函数(OnDeinit): 释放指标句柄,防止内存泄漏 主要交易逻辑(OnTick): 获取最新的MA值 判断趋势和交易信号 在无持仓时执行交易 交易规则: 上升趋势+买入信号时开多单 下降趋势+卖出信号时开空单 使用固定的止损和止盈点数 风险管理: 使用输入参数设置交易手数、止损和止盈 每次只允许一个持仓(inTrade变量) 使用MQL5的Trade库进行交易操作,简化了下单过程 这个EA适合初学者学习,展示了基本的EA结构和简单的交易策略实现方法。但在实际使用前,还需要进行更多的测试和优化。
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
WalkForwardOptimizer MT5
Stanislav Korotky
3.86 (7)
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.
Native Websocket
Racheal Samson
5 (5)
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 WebSocket Connections from a single program. Various Log Levels for error tracing Can be synchronized to MQL5 Virtual Hosting . Completely native to
Esta biblioteca permitirá que você gerencie negociações usando qualquer um de seus EA e é muito fácil de integrar em qualquer EA que você mesmo pode fazer com o código de script mencionado na descrição e também exemplos de demonstração em vídeo que mostram o processo completo. - Pedidos Place Limit, SL Limit e Take Profit Limit - Ordens Place Market, SL-Market, TP-Market - Modificar ordem de limite - Cancelar pedido - Consulta de pedidos - Mudança de alavancagem, margem - Ob
MetaCOT 2 CFTC ToolBox MT5
Vasiliy Sokolov
3.67 (3)
MetaCOT 2 CFTC ToolBox is a special library that provides access to CFTC (U.S. Commodity Futures Trading Commission) reports straight from the MetaTrader terminal. The library includes all indicators that are based on these reports. With this library you do not need to purchase each MetaCOT indicator separately. Instead, you can obtain a single set of all 34 indicators including additional indicators that are not available as separate versions. The library supports all types of reports, and prov
AO Core
Andrey Dik
3 (2)
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
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
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 c
Filtro:
Sem comentários
Responder ao comentário