Forum

convert mql4 to mql5

Hi, everyone, I wanted to convert the following MQL4 Indicator to MQ5. Unfortunately, the compiler spits the error message: ARRAY OUT OF RANGE. The error message refers to the following line in the OnCalc(): " if(close[i]> close[i+1]) ". I do not quite understand the program logic of MQL4, which is

Working with Databases

Hello everyone, i am working on an indicator which uses data from the mql5 intern database. Currently, I access the database after each M1 candle and take exactly one value. This results in the problem that the indicator has very long calculation times. Therefore, I thought to asign a whole column

Connect binance with MT5

Hey everyone, I have a specific question. Is it possible to connect binance via api to mt5 without using python? Thank you :)

Custom Symbol and additional Inputs

Hello everybody I would like to create a custom symbol and found that i have more data from my provider then actually needed. MT5 only needs the following data: Additionally, in my case I have the number of long and short trades per minute and would like to implement this data into my Custom symbol

convert MQL4 into MQL5 indicator

Hey there, I want to convert this indicator into mql5. It´s really difficult written and i don´t know what possibly could be wrong. It draws the lines, but when i am going to compare it with the mql4 version, i can see differences between the plots. Is there anyone who could help me further? Here is

AD Smoothing

Hello everybody, i have this AD indicator and want to apply two moving averages . The first moving average should use the price data from the AD. The second moving average should use the smoothed price data from the first moving average. It´s easy to implement one moving average which uses the

enum and smoothalgorithms

Hello again, I have some problem with an enum Type. Since I am still a beginner, I hope you can help me. I want to implement an indicator, called xdpo into my EA. When i am trying to compile the indicator, this error occurs: It seems to be, that the following function in the SmoothAlgorithms.mqh has

3 D Modelling

Hey guys, i have an interesting approach. Suppose I wrote an EA and tested it with 2 parameters. Furthermore, I would like to graph these parameters in a 3D- graph. The x- and y-axis corresponds to the parameters of the EA and the Z-axis (height) corresponds to the balance of my account. As a

Indicator deviates in the strategy tester

Hey guy, i want to use this indicator in my EA. Below you can see a picture of the indicator in any chart: Now a picture from the same chart, but within the backtester: I´ve used 1m OHLC and tick data as well. nothing works. In the left upper corner you can see all the buffers. This values are

How to Trade Crypto with MT5

Hello everybody, I want to trade on Binance broker via an Expert Advisor, written in MT5. Unfortunately, the course data for Binance are not available for the MT5. However, Phyton is able to both retrieve the price data from Binance through an API, as well as trading on Binance. Now there are two