Forum

mql5 Indicator with 2 instances of the same indicator

In mql5, starting from an indicator, I wanted to make 2 instances of the same indicator, so that the 2 graphs could be presented in the chart. I started by duplicating the inputs, as well as the arrays, properties and buffers. After numerous tests, I only managed to present the first instance of the

Bands in Strategy Tester

Hello, Can anyone tell me why these bands appear in the MT5 strategy tester? Thanks in advance, (No indicator loaded)

Indicator does not display recent values

Hi, I am working with an indicator that I am not able to solve a problem with the M1 timeframe. The example of the indicator is like this: #property description "PruebaM1" //--- indicator settings #property indicator_separate_window #property indicator_minimum 0 #property indicator_maximum 100

ColorMix.mqh ?

Where can I get the ColorMix.mqh library

Calculate RSI from a specific date

I need to know the RSI value for a specific date, for example "2024.10.24 09:16". How could I do this from that information? What would be the most efficient way to get it

MT5 Delete Active Header

Could someone tell me how to remove the asset headers from the window tile? Regards, Juan

Comment() different in each chart in a multicurrency EA

I have an EA developed in mql5 that operates in multicurrency. I would like to be able to program a different Comment() on the screen for each pair. I am not able to see the solution. Does anyone know how to do it? Many thanks in advance, Juan

Limit trades per cycle

Hello, I have a structure that I summarize here and that, in this case, generates 3 sales on each tick once the first trade is made. I need to program: - That only 1 trade is performed in each cycle, and - That only 3 trades are made, one for each if: Only one with comment "C", one with comment "D"

String in a conditional operator

Good morning, Today I woke up with a new question: In MQL5, is it possible to use a string in a conditional operator? For example, in this case, is there any way to do it? double A= 2.5, B= 4 ; string cadena if (A< 3 ) cadena= "A==B && RSI>30" ; else cadena= "A<=B && RSI>30" ; if (cadena) {

Compose variables to assign value to them

Hello, In an EA that I have in development, there are cycles of operations that I need, from each one of them, to store a series of variables for statistical purposes. The number of cycles is indefinite. To do this, I thought that variables could be created through programming or at least, assign