Forum

How can I return 2 different values when using if, else?

Hy guys, simple question and don't know what its wrong here. Please have a look: if( cond1 && cond2){ return 1;} else if(cond3){ return 0;} Warning: '}' - not all control paths

How can I set Hours and Minutes as input parameters and use it in my function.

Hy guys, new to mql5 and trying hard to understand it. Please help me with the following issue, I am trying to find a solution since 2 days without success. //Global paramters// input parameter opentime = "12:00" (??) //Get the local time// datetime time = TimeLocal(); //format the time and

Declaration of 'varaible 1' hides global variable (warning) Please help, cannot find the solution sine hours!

Hy guys, please help me the following issue. I researched for many hours already and cannot fix this issue. mq4 file: #include <TEST.mqh> // Input parameters input int variable1 = 10; input double variable2 = 20; No warning when I only compile the mq4 file(where I also use these variables) but when