Forum

How can I create a fuction with a macro for printing?

Hi everyone, I need to create a macro for printing en MQL5, but I don't know how to do it. This is what I was trying but it didn't work: #define PRINT(debug,...) ((debug == 1)?Print(...)) So you can use it in that way: PRINT(1, "Hello World!"); //Print PRINT(0, "Hello World!"); //Don't print

Is there any to detect pressing the rest button in an indicator?

Hi everyone, I am trying to detect pressing the rest button in this window? Is there anyway to detect the click of this button inside a .mql4 file? Best regards

Convert an indicator from prorealtime

Hi, I am new in metatrader 4, I come from prorealtime, but I think that metatrader 4 is better than prorealtime and I would like to learn to program in Metatrader4. The problem is there are a lot of funcitons of prorealtme that don't exist in metatrader and I think that I have to program them. This