Forum

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

Repeated execution of OnTick

Hello, I am learning mql5. I have developed a module that validates the inputs and numerous indicators that confirm it, or not. In the strategy tester I can manually run the module one by one with each of the indicators/oscillators. I want to develop something from OnTick that allows me to execute

Error when Creating and Writing to a .txt file

Hello, I can't locate the location of the created file. Can someone guide me? Thanks in advance, Juan Luis string FileName= "NuevoTXT " + TimeToString ( TimeCurrent (), TIME_DATE )+ ".txt" ; int OnInit () { TXTCrear(); TXTNuevaLinea(); TXTNuevaLinea(); Print ( "Fin " + FileName); return (

MQL5 Strategy Tester: Why does it fail?

Hello, I observe in the Strategy Tester big differences between its results and reality. I use the one from mql5. It is something that has surprised me so much that I have stopped trusting their estimates, since it does not happen to me with one robot but with several. For example, I put the robot

MQL5 Remove Borders from chart windows

Hello, Could someone tell me how to remove these borders from the graph windows indicated in the image? Thanks in advance, Juan

Disable object descriptions from programming

Hello, With MQL5 I have a problem that I can't solve no matter how hard I try: I want the descriptions of the objects not to be displayed, although the trading history is. Do you know if by programming the descriptions of the objects can be disabled? Best regards, Juan