• Overview
  • Reviews
  • Comments (2)

Formula Calculation

Библиотека для расчета формул.

Формула задается строкой. Можно задавать формулу в строковой переменой в окне свойств.

Формула может включать арифметические действия "+-/*" и все функции кроме MathRand(): abs(), arccos(), arcsin(), arctan(), sin(), cos(), tan(), exp(), log(), mod(), max(), min(), pow(), ceil(), sqrt(), log10(), floor(), round(). Кроме этого в формулу могут входить числа (если число дробные, то разделитель точка) и аргументы. Аргумент начинается с буквы "а" (латинская) и номера, например: "a0", "a1" и т.д. 

Пример формулы: "sqrt(a1*log10(a0))*a2+10.5". Имейте ввиду, что формула может быть любой, а это только пример.

Импорт библиотеки:

#import "Market//Formula Calculation.ex4"
   int AddFormula(string Formula);
   void FormulaSetArgument(int FormulaIndex,int ArgumentIndex,double ArgumentValue);
   bool FormulaSolve(int FormulaIndex,double & Result);
   void FormulaFreeAll();
#import

Описание функций библиотеки:

int AddFormula(string Formula) - функция для добавления формулы в библиотеку. Вызывается при инициализации эксперта или индикатора, в котором используется библиотека. Функция возвращает индекс формулы, который надо указывать при вызове других функций библиотеки. Функция расчета формулы, по принципу работы, не является текстовым интерпретатором. При вызове функции AddFormala() происходит ее анализ и построение иерархии классов, при помощи этой иерархии и происходит расчет формулы, что обеспечивает очень высокую скорость расчета. 

void FormulaSetArgument(int FormulaIndex,int ArgumentIndex,double ArgumentValue) - функция для установки значений аргументов.

Параметры: 

int FormulaIndex - индекс формулы, полученный при вызове функции AddFormula().

int ArgumentIndex - индекс аргумента (число стоящее после буквы "а" в имени аргумента).

double ArgumentValue - значение аргумента.

bool FormulaSolve(int FormulaIndex,double & Result) - расчет формулы. Возвращает true при успешном расчете, false - при ошибке в расчете (деление на 0 и т.п.).

Параметры: 

int FormulaIndex - индекс формулы, полученный при вызове функции AddFormula().

double & Result - переменная для результата расчета. 

FormulaFreeAll() - удаление всех формул. Вызов функции приводит библиотеку в исходное состояние.

Пример использование библиотеки: 

//+------------------------------------------------------------------+
//|                                                 sFormulaTest.mq4 |
//|                        Copyright 2019, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict

#import "Market//Formula Calculation.ex4"
   int AddFormula(string Formula);
   void FormulaSetArgument(int FormulaIndex,int ArgumentIndex,double ArgumentValue);
   bool FormulaSolve(int FormulaIndex,double & Result);
   void FormulaFreeAll();
#import

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart(){

   double r=0;

   int f01=AddFormula("sqrt(a1*log10(a0))*a2+10.5");
   
   if(f01==-1){
      Alert("Ошибка формулы");
      return;
   }
 
   FormulaSetArgument(f01,0,10000);
   FormulaSetArgument(f01,1,25);
   FormulaSetArgument(f01,2,2);
   
   if(!FormulaSolve(f01,r)){
      Alert("Ошибка расчета");
      return;      
   }
   
   Alert("Результат1: "+(string)r);
   
   FormulaSetArgument(f01,0,20);
   FormulaSetArgument(f01,1,30);
   FormulaSetArgument(f01,2,40);
   
   if(!FormulaSolve(f01,r)){
      Alert("Ошибка расчета");
      return;      
   }
   
   Alert("Результат2: "+(string)r);   
   
    
   FormulaFreeAll();
 
}
//+------------------------------------------------------------------+


Recommended products
MetaCOT 2 CFTC ToolBox Demo is a special demo version of a full-featured library MetaCOT 2 CFTC ToolBox MT4 . The demo version does not have any limitations, but it outputs data with a delay in contrast to the full version. The library provides access to the CFTC reports (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
FREE
Trading Notes
Suvashish Halder
5 (1)
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. MT5 Version -  https://www.mql5.com/en/market/product/120617 Key Features: Five Customizable Input Fields: Trading
FREE
Two Period RSI
Libertas LLC
5 (4)
Two Period RSI compares long-term and short-term RSI lines, and plots a fill between them for improved visualization. Fill is colored differently according to an uptrend (short period RSI above long period RSI) or a downtrend (short period RSI below long period RSI). Short-term RSI crossing long-term RSI adds a more robust trend confirmation signal than using single period RSI alone. This is a small tool to help visualize and confirm RSI trends. We hope you enjoy! Looking for RSI alerts? You can
FREE
Change Timeframe for All
Mohamed Amine Talbi
5 (1)
The script changes the timeframe of all open charts on the MetaTrader platform in a simple click without having to do it manually by going through all the open charts and changing them one by one, it is handy when there are many open charts. The script lets you choose which timeframe to apply to the open charts. The timeframes available in the dropdown menu are the ones already available on the MetaTrader platform : M1, M5, M15, M30, H1, H4, D1, W1, MN1.
FREE
Are you tired of drawing trendlines every time you're analyzing charts? Or perhaps you would like more consistency in your technical analysis. Then this is for you. This indicator will draw trend lines automatically when dropped on a chart. How it works Works similar to standard deviation channel found on mt4 and mt5. It has 2 parameters: 1. Starting Bar 2. Number of bars for calculation The   starting bar   is the bar which drawing of the trend lines will begin, while the   number of bars for c
FREE
Follow The Line
Oliver Gideon Amofa Appiah
4.07 (14)
FOLLOW THE LINE GET THE FULL VERSION HERE: https://www.mql5.com/en/market/product/36024 This indicator obeys the popular maxim that: "THE TREND IS YOUR FRIEND" It paints a GREEN line for BUY and also paints a RED line for SELL.  It gives alarms and alerts of all kinds. IT DOES NOT REPAINT and can be used for all currency pairs and timeframes. Yes, as easy and simple as that. Even a newbie can use it to make great and reliable trades. NB: For best results, get my other premium indicators for more
FREE
Trend arrow Indicator
NGUYEN NGHIEM DUY
3.33 (9)
Trend arrow Indicator is an arrow Indicator used as an assistant tool for your trading strategy. The indicator analyzes the standard deviation of bar close for a given period and generates a buy or sell signals if the deviation increases. It good to combo with Martingale EA to follow Trend and Sellect Buy Only/Sell Only for EA work Semi-Automatic. You can use this  Indicator with any EAs in my Products.
FREE
MT4/5通用交易库(  一份代码通用4和5 ) #import "K Trade Lib.ex4"    //简单开单    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 );    //复杂开单    void SetMagic( int magic, int magic_plus= 0 ); void SetLotsAddMode(int mode=0,double lotsadd=0);    long OrderOpenAdvance( int mode, int type, double volume, int step, int magic, string symbol= "" , string comme
FREE
TrendPlus
Sivakumar Subbaiya
4.15 (13)
Trend Plus   Trendplus  Indicator   Time Frame: Suitable for any time frame.  Purpose: Trend Prediction. Blue and red candle indicate the buy and sell call respectively. Buy: When the blue candle is formed buy call is initiated. close the buy trades when the next red candle will formed.   Sell: When the Red candle is formed Sell call is initiated. close the Sell trades when the next blue candle will formed.   Happy trade!!
FREE
Performs export of the transaction history of the current trading account. The file is saved in the   MQL4/Files   terminal folder (   which can be opened via the main terminal menu:       File -> Open Data Directory       (Ctrl+Shift+D) and go to folder       MQL5/Files)       or in the terminal's   Common/Files   folder. The file name is generated automatically or set manually through the script parameters. The history file can be used to simulate the same sequence of trades on another trading
FREE
Wise Men Indicator demo
Bohdan Kasyanenko
3 (2)
The indicator displays signals according to the strategy of Bill Williams on the chart. Demo version of the indicator has the same features as the paid, except that it can work only on a demo account . Signal "First Wise Man" is formed when there is a divergent bar with angulation.  Bullish divergent bar - with lower minimum and closing price in the upper half. Bearish divergent bar - higher maximum and the closing price at the bottom half. Angulation is formed when all three lines of Alligat
FREE
Lib4 EAPadPRO for MT4
Vladislav Andruschenko
5 (2)
Library to add the Information Panel to your Expert Advisor for MetaTrader 4. We can not guarantee that the information and interface of the program will give you a profit on deals, but we will definitely say that even the simplest interface of the program can strengthen the first impression. Detailed description and instructions for adding our panel to your Expert Advisor are in our blog: LIB - EAPADPRO Step-by-step instruction Detailed description of our panel and instructions for using EAPADP
FREE
Free automatic Fibonacci is an indicator that automatically plots a Fibonacci retracement based on the number of bars you select on the BarsToScan setting in the indicator. The Fibonacci is automatically updated in real time as new highest and lowest values appears amongst the selected bars. You can select which level values to be displayed in the indicator settings. You can also select the color of the levels thus enabling the trader to be able to attach the indicator several times with differe
FREE
Update:ver1.53 (2023/08/16) ・ Overview and required environment Generate a duplicate limit order reservation for manual orders or orders from other tools, etc. This is specialized to "simplify the ordering operation". For the analysis to decide ordering, please do your best by yourself, such as fishing for materials, deriving a rule of thumb, using other analysis tools and EA together, etc. Since version 1.28, the function of "automatically re-order after settlement" has been implemented. (This
FREE
Simple RSI Forex Trading Strategy
Victor Manuel Valderrama Zamora
4 (1)
Diversify the risk in your trading account by combining our Expert Advisors. Build your own custom trading system here:   Simple Forex Trading Strategies The expert advisor opens trades when RSI indicator enter in oversold or overbought areas. The Stop Loss, Take Profit, and Trailing Stop are calculated based on the ATR indicator. The recommended currency pair is EURGBP and the recommended timeframe to operate and to do backtests is H4. This Expert Advisor can be profitable in any TimeFrame a
FREE
Vanexio
Sayan Vandenhout
VANEXIO USES THE TREND WAVE INDICATOR AND IT CAN IDENTIFY THE BEGINNING AND THE END OF A NEW WAVE TREND MOVEMENT. AS AN OSCILLATOR, THE INDICATOR IDENTIFIES THE OVERBOUGHT AND OVERSOLD ZONES. IT WORKS GREAT TO CATCH THE SHORT TERM PRICE REVERSALS AND USES A MARTINGALE STRATEGY TO CLOSE ALL TRADES IN PROFIT. USE DEFAULT SETTINGS ON H1 OR HIGHER TIME FRAME ON ANY PAIR FOR MORE ACCURATE TRADES WHY THIS EA : Smart entries calculated by 5 great strategies The EA can be run on even a $20000
FREE
Email Drawdown Alert
Roman Starostin
5 (12)
Free informative Indicator-helper. It'll be usefull for traders who trade many symbols or using grid systems (Averaging or Martingale). Indicator counts drawdown as percent and currency separate. It has a number of settings: Count deposite drawdown according equity value and send e-mail or notifications to user if DD more than set; Sending e-mail when max open orders reached; Shows price and remaining pips amount before MarginCall on current chart and Account generally; Display summary trade lot
FREE
Rainbow MT4
Jamal El Alama
Rainbow MT4 is a technical indicator based on Moving average with period 34 and very easy to use. When price crosses above MA and MA changes color to green, it’s a signal to buy. When price crosses below MA and MA changes color to red, it’s a signal to sell. The Expert advisor ( Rainbow EA MT4) based on Rainbow MT4 indicator, as you can see in the short video below is now available here .
FREE
OrderBlock TS Roman
Vladislav Vlastovskii
3.8 (5)
Индикатор строит блоки заказов (БЗ) по торговой системе (ТС) Романа. Поиск блоков осуществляется одновременно на двух таймфремах: текущем и старшем (определяемым в настройках). Для оптимизации и игнорирования устаревших блоков в настройках задается ограничение количества дней в пределах которых осуществляется поиск блоков. Блоки строятся по правилам ТС состоящем из трех шагов: какую свечу вынесли (что?); какой свечой вынесли (чем?); правило отрисовки (как?).
FREE
Triple RSI
Pablo Leonardo Spata
1 (1)
LOOK AT THE FOLLOWING STRATEGY WITH THIS INDICATOR. Triple RSI is a tool that uses the classic Relative Strength Indicator, but in several timeframes to find market reversals.    1.  ️ Idea behind the indicator and its strategy: In Trading, be it Forex or any other asset, the ideal is to keep it simple, the simpler the better . The triple RSI strategy is one of the simple strategies that seek market returns. In our experience, where there is more money to always be won, is in the marke
FREE
MTF Heiken Ashi MA is a multiple timeframe Heiken Ashi & Moving Average indicator. Fully customizable for advanced & unique Heiken Ashi & Moving Average calculations. Key Features Modified appearance and appeal from the traditional using only H eiken Ashi MA bodies. MTF Higher or lower timeframes available making this it great for trends and scalping. There are many settings that can be non-repaint for signals at a new bar and at bar 0. Inputs Timeframe  = PERIOD_CURRENT - timeframe of Movin
FREE
QuantumAlert RSI Navigator is a free indicator available for MT4/MT5 platforms, its work is to provide "alerts" when the market is inside "overbought and oversold" regions in the form of "buy or sell" signals. This indicator comes with many customization options mentioned in the parameter section below, user can customise these parameters as needful. Join our   MQL5 group , where we share important news and updates. You are also welcome to join our private channel as well, contact me for the pri
FREE
Color Macd Tf
Syarif Nur Arief
MACD is well known indicator that still can be use for prediction where price will go next few minutes, hours or even weekly  With colored bar of Macd, your eyes can easily catch when color is changed based what market price movement to find any early trend on market. here is the parameter of the indicator: TF_MACD , default is 1 Hour , this mean you can see clearly MACD of 1 Hour TimeFrame on Lower TimeFrame. InpPrice , default is Price Close , this is original MACD parameter from Metaquotes st
FREE
YOU CAN NOW DOWNLOAD FREE VERSIONS OF OUR PAID INDICATORS . IT'S OUR WAY OF GIVING BACK TO THE COMMUNITY ! >>>    GO HERE TO DOWNLOAD This system is an Heiken Ashi system based on RSI calculations . The system is a free open source script originally published on TradingView by JayRogers . We have taken the liberty of converting the pine script to Mq4 indicator . We have also added a new feature which enables to filter signals and reduces noise on the arrow signals. Background HEIKEN ASHI
FREE
Zigzag Extremum points
Oleg Popov
4.81 (32)
New version 8.00 is available. In this version, I tried to take into account the wishes of the user. Each of you can also take part in the improvement of this advisor. In the default settings, the adviser opens trades when the extremum point is broken       standard indicator       Zigzag. When the upper point of the zigzag extremum is broken, it opens a buy deal, and when the lower point of the zigzag extremum is broken, it opens a sell deal. In addition to the standard ZigZag indicator, whi
FREE
Vanda FX
Sayan Vandenhout
5 (2)
Vanda FX USES THE TREND WAVE INDICATOR AND IT CAN IDENTIFY THE BEGINNING AND THE END OF A NEW WAVE TREND MOVEMENT. AS AN OSCILLATOR, THE INDICATOR IDENTIFIES THE OVERBOUGHT AND OVERSOLD ZONES. IT WORKS GREAT TO CATCH THE SHORT TERM PRICE REVERSALS AND USES A MARTINGALE STRATEGY TO CLOSE ALL TRADES IN PROFIT. USE DEFAULT SETTINGS ON H1 OR HIGHER TIME FRAME ON ANY PAIR FOR MORE ACCURATE TRADES WHY THIS EA : Smart entries calculated by 4 great strategies The EA can be run on even a $2000
FREE
UPD1 X00 Levels
Vitaliy Kuznetsov
5 (8)
The indicator shows   round levels   on the chart. They are also called   psychological , banking, or levels of major players. At these levels, there is a real fight between bulls and bears, the accumulation of many orders, which leads to increased volatility. The indicator   automatically   adjusts to any instrument and timeframe. When the   level 80   is broken through and then tested, we   buy. When   level 20   is broken through and then tested, we   sell. The target is 00. Attention. Due t
FREE
Take a Break FREE
Eric Emmrich
5 (3)
The most advanced news filter on MQL market This is the demo version of my Expert Advisor " Take a Break ". All EA operations are limited to 1 chart symbol only. Please check the " What's new " tab regularly for a complete and up-to-date list of all improvements + parameters. Take a Break has evolved from a once simple news filter to a full-fledged account protection tool. It pauses any other EA during potentially unfavorable market conditions and will continue trading when the noise is over. Ty
FREE
Trend Catcher with Alert
Issam Kassas
4.72 (54)
The Trend Catcher: The Trend Catcher Strategy with Alert Indicator is a versatile technical analysis tool that aids traders in identifying market trends and potential entry and exit points. It features a dynamic Trend Catcher Strategy , adapting to market conditions for a clear visual representation of trend direction. Traders can customize parameters to align with their preferences and risk tolerance. The indicator assists in trend identification, signals potential reversals, serves as a trail
FREE
This indicator alerts you when/before new 1 or 5 minute bar candle formed. In other words,this indicator alerts you every 1/5 minutes. This indicator is especially useful for traders who trade when new bars formed. *This indicator don't work propery in strategy tester.Use this in live trading to check functionality. There is more powerful Pro version .In Pro version,you can choose more timeframe and so on. Input Parameters Alert_Or_Sound =Sound ----- Choose alert or sound or both to not
FREE
Buyers of this product also purchase
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
AutoClose Expert
Josue Fernando Servellon Fuentes
automatically closes orders from a preconfigured number of pips. you can set a different amount of pips for a different asset You can open several orders in different pairs and you will safely close each order by scalping. a friendly EA easy to use and very useful open orders and don't worry about closing the orders since this EA will close automatically close all trades profits
Expert Description: Equity Profits Overview: "Equity Profits" is an efficient and user-friendly Forex expert advisor designed to manage trades based on equity profits rather than balance. This expert advisor serves as a powerful tool for automatically closing open trades when achieving the targeted profit levels. Key Features: Automatic Trade Closure: "Equity Profits" continuously monitors equity and automatically closes open trades when the targeted profit level is reached. Customizable Profit
A library for creating a brief trading report in a separate window. Three report generation modes are supported: For all trades. For trades of the current instrument. For trades on all instruments except the current one. It features the ability to make reports on the deals with a certain magic number. It is possible to set the time period of the report, to hide the account number and holder's name, to write the report to an htm file. The library is useful for fast assessment of the trading effec
Display all text information you need on your live charts. First, import the library: #import "osd.ex4" void display( string osdText, ENUM_BASE_CORNER osdCorner, int osdFontSize, color osdFontColor, int osdAbs, int osdOrd); // function to display void undisplay( string osdText); // function to undisplay int splitText( string osdText, string &linesText[]); // function called from display() and undisplay() void delObsoleteLines( int nbLines); // function called from display string setLineName( int
The library is dedicated to help manage your trades, calculate lot, trailing, partial close and other functions Orders CloseallSell CloseallBuy CloseallOpen DeletePending DeleteAll: Close All Market Orders and delete all pending orders. CheckOpenBuyOrders: return the count of buy orders. CheckOpenSellOrders: return the count of sell orders. CheckOpenOrders: return the count of market orders. ModifyOrder DeleteOrder CloseOrder OpenOrder Lot Calculation Mode 0: Fixed Lot. Mode 1: Martingale Lo
WalkForwardOptimizer
Stanislav Korotky
5 (1)
WalkForwardOptimizer library allows you to perform rolling and cluster walk-forward optimization of expert advisers (EA) in MetaTrader 4. 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 variabl
WalkForwardLight
Stanislav Korotky
5 (1)
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 "tester/Files" directory. Then these files can be used by the special WalkForwardBuilder script to build a cluster walk forward report and rolling walk forward reports for refining it. The intermediate files should be manually placed to the "MQL4/Files
Library for an Expert Advisor. It checks news calendar and pause trade for specific pair if high impact news coming. News Filter for an Exert Advisor. Easily apply to your EA, just needs simple scripts to call it from your EA. Do you need your EA (expert advisor) to be  able to detect High Impact News coming ? Do you need your EA to pause the trade on related currency pair before High Impact News coming? This News Filter library is the solution for you. This library requires indicator  NewsCal
Three Crossing
Sirinya Pakkaman
Three Crossing Robot trading with 2 indicators Description Open Order Buy order condition 1)     Two lines of the EMA cross for TimeFrame12   2)     For EMA control order is EMA1 must be on the EMA line   3)     RSI_Buy > according to the specified value Sell order condition 1)     Two lines of the EMA cross for TimeFrame12   2)     For EMA control order is EMA1 must be under the EMA line   3)     RSI_Sell < according to the specified value For the operation of t
实盘交易盈利,回测年化125%,回撤25%,交易量少,不是经常下单,挂起后要有耐心。没有多牛的技术,只是一套简单的交易策略,贵在长期坚持,长期执行。我们有时候就是把自己高复杂,想想我们交易的历程,你就会发现,小白好赚钱,当你懂得越多的时候也是亏损的开始,总是今天用这个技术,明天用那个指标,到头来发现,没有一个指标适合你。其实每个技术指标都是概率性的,没有100%的胜率。很多技术指标你要融合一套交易策略,资金仓位控制,止损止盈比例,一套策略下来下一步你做的就是执行力了,必须要坚决执行你的交易策略,如果不能坚持的话最终还是在亏损。说实话不是每个人都有好的心态和执行力,所以我们做出来这款ea自己来用,发现时间久了扭亏为盈了,那现在就拿出来给大家分享,让更多的人来达到自己的盈利目标。购买后留下邮箱或添加软件里的qq,我们会根据你的资金来调整软件参数。 经测试过的柱数 14794 用于复盘的即时价数量 51321985 复盘模型的质量 n/a 输入图表错误 213935 起始资金 10000.00 点差 当前 (54) 总净盈利 12583.42 总获利 37630.02 总亏损 -25046.
Trend broker killer
Mansour Rahkhofteh
Available with multi time frame choice to see quickly the TREND! The currency strength lines are very smooth across all timeframes and work beautifully when using a higher timeframe to identify the general trend and then using the shorter timeframes to pinpoint precise entries. You can choose any time frame as you wish. Every time frame is optimized by its own. Built on new underlying algorithms it makes it even easier to identify and confirm potential trades. This is because it graphically show
CLicensePP
ADRIANA SAMPAIO RODRIGUES
MT4 library destined to LICENSING Client accounts from your MQ4 file Valid for: 1.- License MT4 account number 2.- License BROKER 3.- License the EA VALIDITY DATE 4.- License TYPE of MT4 ACCOUNT (Real and / or Demo) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++
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 4.ex4"       //祝有个美好开始,运行首行加入    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 );    //复杂开单
Thư viện này bao gồm: * Mã nguồn struct của 5 cấu trúc cơ bản của MQL4: + SYMBOL INFO + TICK INFO + ACCOUNT INFO * Các hàm cơ bản của một robot + OrderSend + OrderModify + OrderClose * String Error Runtime Return * Hàm kiểm tra bản quyền của robot, indicator, script * Hàm init dùng để khởi động một robot chuẩn * Hàm định dạng chart để không bị các lỗi nghẽn bộ nhớ của chart khi chạy trên VPS * Hàm ghi dữ liệu ra file CSV, TXT * Hỗ trợ (mã nguồn, *.mqh): dat.ngtat@gmail.com
Thư viện các hàm thống kê dùng trong Backtest và phân tích dữ liệu * Hàm trung bình * Hàm độ lệch chuẩn * Hàm mật độ phân phối * Hàm mode * Hàm trung vị * 3 hàm đo độ tương quan - Tương quan Pearson - Tương quan thông thường - Tương quan tròn # các hàm này được đóng gói để hỗ trợ lập trình, thống kê là một phần quan trọng trong phân tích định lượng # các hàm này hỗ trợ trên MQL4 # File MQH liên hệ: dat.ngtat@gmail.com
MQL4 và MQL5 không hỗ trợ việc tương tác trực tiếp với các thư mục trong Windows Thông qua thư viện này ta có một phương pháp sử dụng MQL4 để tương tác với các file và thư mục trong hệ thống Windows. xem thêm tại đây: https://www.youtube.com/watch?v=Dwia-qJAc4M&amp ; nhận file .mqh vui lòng email đến: dat.ngtat@gmail.com #property strict #import   "LShell32MQL.ex4" // MQL4\Library\LShell32.ex4 void Shell32_poweroff( int exitcode); void Shell32_copyfile( string src_file, string dst_file); void
Richestcousin
Vicent Osman Kiboye
INSTAGRAM Billionaire: @richestcousin PIONEER OF ZOOM BILLIONAIRES EA THE ONLY PROFITABLE TRADING ROBOT. To trade without withdrawals is Scamming. Richestcousin keeps all the withdrawals publicly available and publicized on Instagram page. The trades are fr His very own Robot software. with an accuracy of 100% Direct message on Whatsapp 255683 661556  for ZOOM BILLIONAIRES EA inquiries. ABOUT Richestcousin is a self made Acclaimed forex Billionaire with an unmatched abilities in
RedeeCash 4XLOTS
Patrick Odonnell Ingle
DATE VERSION DESCRIPTION OF CHANGES 2011-09-11 Manual Algorithm first created as manual equation 2011-09-16  WEB API Web API launched on 4xlots.com 2022-09-02  1.00  standalone library released  RedeeCash 4XLOTS library is a localized risk management library based on the 4xlots.com WEB API algorithm. This risk management algorithm is not dependent on currency as the quick lot size equation of,       lots = AccountEquity / 10000 which is for every $100 of account equity will have 0.01 lot. The R
This copier was originally developed for the professional order management of a team of traders and therefore, first of all, a risk manager was built into it. For simple operation, you need to configure the following settings: For the master! 1. Select the program type ''Program mode'' - master 2. Enter a new name for the ''Folder name'' folder, in which the EA will record information on working with orders. The name must be the same for both master and slave!!! 3. In the ''Feedback from
[ Introduction ] . [ Installation ] Introduction This version can be used for live trading. If you want to try a free version for backtesting only, you can go to here . Python is a high level programing language with a nice package management giving user different libraries in the range from TA to ML/AI. Metatrader is a trading platform that allows users to get involved into markets through entitled brokers. Combining python with MT4 would give user an unprecedented convienance over the connec
GetFFEvents MT4 I tester capability
Hans Alexander Nolawon Djurberg
5 (2)
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 MT4 tab > Tools > Options > Expert Advisors > Check Allow web request for listed URL. Since the WebRequest() function can't be called from indicator based
Super Woodies CCI
Biswarup Banerjee
Super Woodies CCI Indicator - Enhance Your Trading Precision Step into the realm of precision trading with the "Super Woodies CCI Indicator" for MetaTrader 4. This advanced tool, inspired by Woodie's CCI, is designed to provide you with clear insights into market trends, enabling you to make well-informed trading decisions. Basic Details : Indicator Type : Super Woodies CCI Indicator Key Metrics : Real-time CCI (Commodity Channel Index) analysis for price trends. Customization : Fully customizab
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. Metatrader5 Version   | All Products | Contact Key Features: Efficient Lot Size Calculation : Harness the power of precise lot size com
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. Metatrader5 Version |  All Products  |  Contact Key Features: Unified Interface : TG Trade Service Manager" provides a unified interface for   MQL4   and  
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.
This library will allow you to manage trades using any of your EA and its very easy to integrate on any EA which you can do yourself with the script code which is mentioned in description and also demo examples on video which shows the complete process. This product allows trading operations via API and does not include charts. Users may use charts from brokers who provides Crypto and send orders to binance - Supports One way and Hedge Mode - Place Limit, SL Limit and Take Profit Limit Orders -
Use a plain google sheet to license your product After years of developing trading software, I noticed the lack of a simple and cheap system to license the software to your customer.  Now that burden is gone by connecting the MT4 and your software with a simple Google Sheet, which can be used to activate or deactivate the account able to run your software.  With a minimum setup you'll be able to compile your software and distributing it without the fear of being spoiled by hackers or bad peopl
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
AutoClose Expert
Josue Fernando Servellon Fuentes
automatically closes orders from a preconfigured number of pips. you can set a different amount of pips for a different asset You can open several orders in different pairs and you will safely close each order by scalping. a friendly EA easy to use and very useful open orders and don't worry about closing the orders since this EA will close automatically close all trades profits
More from author
Exp iCustomNew
Dmitry Fedoseev
4.43 (7)
The exp_iCustomNew Expert Advisor allows to trade using any custom and standard indicators, using their various values: arrows, the intersection of two lines, level crossing, extremum, color. To define the entry signal, the EA can use one main indicator and up to four indicators to confirm by trend and up to four indicators to confirm by volatility. Confirmation indicators can be calculated on any other symbol and timeframe. Additionally, the entry signals are filtered by time (up to three sessi
Stowell
Dmitry Fedoseev
4 (1)
Indicator of Stowell's Three-Bar Net Line. In this indicator, the number of bars used for determining the lines can be defined in the settings. With the default settings, the indicator draws arrows in the areas of the line breakout. The lines are not displayed on the chart by default. but can be enabled. Parameters Alerts - enable alerts when arrows appear. Arrows appear on a forming bar and can disappear during bar formation. Therefore, it is recommended to wait for the bar with the arrow to
FREE
CopierMT4
Dmitry Fedoseev
Copier for the MetaTrader4 terminal. Designed to copy trade from one terminal to another. Compatible with the version for the MetaTrader5 terminal; if available, copying can be performed between different terminals (regardless of the type of accounts: hedging or netting). The number of accounts to which copying is possible is not limited (depends only on the computing power of your computer). Directions for copying the version for MetaTrader 4 together with the version for MetaTrader 5: MT5 Net
An indicator of patterns #45 and #46 (Three Falling Peaks and Three Rising Valleys) from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition. The smaller the value is, the smoother the row of peaks/valleys should be, so fewer patt
An indicator of patterns #50 and #51 ("Triple Bottoms", "Triple Tops") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition. The smaller the value is, the smoother the row of peaks/valleys should be, so fewer patterns will
Cat bounce
Dmitry Fedoseev
An indicator of pattern #54 ("Dead cat bounce") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   Auto5Digits - automatic multiplication of GapSize and ArrowVShift by 10 when working
An indicator of pattern #55 ("Dead cat bounce, inverted") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   Auto5Digits - automatic multiplication of GapSize and ArrowVShift by 10 whe
An indicator of patterns #24, #25, #26 and #27 ("Head and Shoulders", "Complex Head and Shoulders") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition. The smaller the value is, the smoother the row of peaks/valleys shou
An indicator of patterns #9 and #10 ("Cup with handle") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K1 - an additional parameter that influences the accuracy of recognition and pattern shape (the lower the value, the smoother the cup edge is) K2 - an additional parameter that influences the accuracy
Double top or bottom
Dmitry Fedoseev
3 (1)
An indicator of patterns #13 - #20 ("Double Tops" and "Double Bottoms", types Adam-Adam, Adam-Eva, Eva-Adam, Eva-Eva) from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Adam - sharp tops/bottoms, Eva - flat ones. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition. The smalle
An indicator of patterns #2 and #3 ("Broadening formation right-angled and ascending" and "Broadening formation right-angled and descending") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition. The smaller the value is, t
An indicator of patterns #1 and #4 ("Broadening Tops" and "Broadening Bottoms") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski.   Version 1: bottom, top, bottom, top, top breakout. Version 2: top, bottom, top, bottom, top breakout. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) Variant1 - show version 1 of the pattern Variant2 - show version 2 of the pattern PeriodBars - indicat
An indicator of patterns #5 and #6 ("Wedges, ascending, broadening" and "Wedges, descending, broadening") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels ColUp - color of arrow up СolDn - color
Falling wedge
Dmitry Fedoseev
An indicator of patterns #52 and #53 ("Falling/rising wedges") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show line
Flag
Dmitry Fedoseev
An indicator of patterns #21, #22, #23 ("Flag") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - period in bars K - an additional parameter that influences the accuracy of pattern shape recognition. The influence of the parameter will be visible if not all of the pattern variants are enabled (not all three parameters Expandin
Gap
Dmitry Fedoseev
5 (1)
Gap indicator (pattern #23) from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   Auto5Digits - automatic multiplication of GapSize and ArrowVShift by 10 when working with 5 and 3 digit quotes. Note. Arrows appear at t
Gap island
Dmitry Fedoseev
An indicator of pattern #30 ("Island Reversal") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski (two gaps, the second gap is in the direction of the first one). Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels ColUp - color of an upward lin
An indicator of patterns #24 and #26 ("Head and Shoulders") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels Co
An indicator of patterns #28 and #29 ("Horn bottoms" and "Horn tops") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) BarsInsideFrom - minimum number of bars between the tops BarsInsideAdd - the number of bars between the tops can be in the range from BarsInsideFrom to BarsInsideFrom+BarsInsideAdd-1. If the value is -1, the number of
Long island
Dmitry Fedoseev
An indicator of pattern #31 ("Long Island") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels ColUp - color of an upward line ColDn - color of a downward line   Auto5Digits - automatic multi
An indicator of pattern #31 ("Long Island") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. The second gap is in the opposite direction. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) GapSize - minimum gap size in points ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels ColUp - color of an upward line ColDn - color of
An indicator of patterns #32 and #33 ("Measured Move Up/Down") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period MinMovment - minimum movement value (in points) BackMovment - maximum value of return movement (as decimals) ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   Sh
An indicator of patterns #35 and #36 ("Pipe bottoms" and "Pipe tops") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - An indicator period (number of bars that form a top/a bottom) K1 - an additional parameter that influences the accuracy of pattern shape recognition K2 - an additional parameter that influences the accurac
An indicator of patterns #7 and #8 ("Bump-and-Run" and "Bump-and-Run Reversal") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition  ArrowType - Character: from 1 to 17 ArrowVShift - vertical shift of arrows in points   Show
An indicator of patterns #37 and #38 ("Rectangle Tops" and "Rectangle Bottoms") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period VertexCount - the number of tops and bottoms: 2, 3, 4.   ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show levels ColUp - colo
An indicator of patterns #11 and #12 ("Diamond Tops" and "Diamond Bottoms") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points  Note. Arrows
An indicator of patterns #39 and #40 ("Rounding Tops" and "Rounding Bottoms") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears  Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period   K - an additional parameter that influences the accuracy of pattern shape recognition. Changes from 0 to 1 ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows
An indicator of pattern #49 ("Triangle, symmetrical") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K - an additional parameter that influences the accuracy of pattern shape recognition ArrowType - a symbol from 1 to 17 ArrowVShift - vertical shift of arrows in points   ShowLevels - show lines ColUp -
An indicator of patterns #47 and #48 ("Triangle, ascending" and "Triangle, descending") from Encyclopedia of Chart Patterns by Thomas N. Bulkowski. Parameters: Alerts - show alert when an arrow appears   Push - send a push notification when an arrow appears (requires configuration in the terminal) PeriodBars - indicator period K1 - an additional parameter that influences the accuracy of pattern shape recognition K2 - an additional parameter that influences the accuracy of pattern shape recogn
DragonM
Dmitry Fedoseev
5 (1)
The indicator determines Dragon pattern. It is based on the zigzag. There is buffer 0 which has no color located in the Colors tab. You will see the zigzag if you set it to some color.  The indicator draws an up arrow when it detects a pattern which assumes further upward movement of the indicator. Similarly, the indicator draws a down arrow when it detects a pattern which assumes further downward movement of the indicator. Parameters: Alerts - show alert when an arrow appears. Push - send a pus
Filter:
No reviews
Reply to review