Forum

How to include a *.mq4 file into a *.mqh OR *.mqh file and *.mq4 file into EA, being linked to each other

Hello together, Could you please tell me how to include a *.mq4 file into a *.mqh (not EA) file. Or is it possible to include a *.mqh file (not EA) and *.mq4 file into an EA, whereat the included *.mqh file (not EA) would need input from the included *.mq4 file. Thank you in advance and have a nice

array out of range or uninit reason 8 + array size not right

Hello everyone, I would appreciate your help since I am not so familiar with mql4, but trying my best to learn more every day. :) Thank you in advance. My goal: ArraySize (atf) should be 3, since M1, M5 as well as M15 are true. If I put the code into int OnInit () then the error "uninit reason 8"

strategy tester - not showing a message

Hello everyone, I would appreciate your help since I am not so familiar with mql4. Thank you in advance. My goal: To show the message "CHECK" somewhere when testing in the strategy tester . I run the code several times in several time frames and markets. Nevertheless, the message was not shown in

EventSetTimer + variable - flexible - mql4

Hello everyone, I would appreciate your help since I am not so familiar with mql4. My goal: When the code starts EventSetTimer should be 0 as well as the variable x to get the close of bar 0 and bar 1 as "sell"/"buy" comment. After that the EventSetTimer should work only 5 seconds after the candle