Forum

Compiling errors: variables expected or not defined, global scope

Hello, While I try to compile the mq4 file, I receive various errors. I attach the corresponding txt file 'research 5 - chart 2 red lines ETI.txt'. I looked up on compiling errors, but could not see an answer. I have following errors and warnings: * 'ObjectCreate' - variable expected (11, 6) * 'int'

Compiled script of Graphical Object not visible

Hello, I have compiled a script without any errors for a graphical object (see attached file 'research grafobjects.txt'). But the graphical object is not visible on the graph I load it on. My journal displays messages that 1) it loaded successfully the script on graph, and 2) it was removed (the

list of all symbols including CFD's

Hello, I have found the script 'listallsymbols.mq4' that is very useful to get the extensive symbol list for currency pairs . This does not include CFD symbols or any symbol that does not have 6 characters. I am wondering if such a script exists that covers all symbols, including CFD's with variable

News tab not showing

Hello, My news tab is not showing. I believe that it should appear in the terminal window. Under tools/options/server I have checked 'enable news'. It still doesn't show, even after restarting MT4. Any ideas why this is? Thank you

How to sequentially change period of chart?

Hello, Is there a function or any other way in the library to sequentially change the period of the chart? Thank you

How to change chart period on code base in oncalculate function for custom indicator?

Hello, By trying to switch chart period within oncalculate function in a custom indicator, we use following code below. But the chart automatically closes after the return. How can this be solved? Thank you. ENUM_TIMEFRAMES periods[] = { PERIOD_M30 , PERIOD_H1 }; int period_ind; int OnCalculate (

How to change default period from M1 to M30 in custom indicator

Hello, By launching a custom indicator, the default period is M1. Even if I close all charts, it will still generate the M1 as default period. Can this be changed in oncalculate function ? Many thanks

Ichimoku cloud: settings

Hello, In the Ichimoku cloud settings (Senkou Span A and B lines), these look forward some periods. How can this be specified in the settings of the cloud? In my current settings, they are at the level of current price. I have looked on the forum to find an answer, since I believe I read about it

What is MT5 equivalent to MT4 'History Center' export?

Hello everyone, Is there a possibility to export data from MT5? In MT4 this can be done through the 'History Center' and I was wondering what functionality allows this in MT5. Many thanks

Functions for multiple sounds with *.wav files?

Hello, I'm looking for multiple sound functions, so that my alerts can vary according to e.g. long or short situations. I have already read about differences between alert, playsound or print functions. The Cookbook also mentions MIDI files. However, my question is how I can simply make my alert