Forum

How to save and load the control states of a dialog with IniFileSave() and IniFileLoad()

The attached is a simplified EA to find the correct way in using IniFileSave() and IniFileLoad() to save and load the control states of a dialog to and from a file. After the EA is started. Firstly, I save the origial state of the Edit object by clicking the Save button. then, i made some change to

BarsCalculated() return with error code 4806.

I use the indicator attached to show a H4 moving average in H1 Chart.[by setting the period parameter to H4 in a H1 chart.] But nothing is shown in the chart. The function call BarsCalculated() returned with error code 4806. What is wrong with my code? How should i tackle this issue? thank you time

how can I get the standard deviation of volume with the iStdDev()function ?

I am a beginner in Mql5 programming. Iwant to know how to get the standard deviation of volume with the iStdDev()function. thanks for your time and efforts.regards

How to create a ComboBox object in an indicator subwindow?

Dear all, I created a ComboBox object in an indicator subwindow(by the code attached), But when I click the drop-down arrow next to the control , nothing was pop out. What is wrong with my code? Many thanks for your time and efforts

How to extract only the bottoms turnaround points extracted by the zigzag indicator?

Dear all, How to modify the code to show only the bottoms of the zigzag ? The following code below can successfully extract the tops extracted by zigzag indicator.tops[] has been specified as the index buffer in the init() function ....But is it possible to only show the bottoms of lower turn point

how to programmatically arrange windows as non-overlapping tiles

Dear all, May i know how to programmatically arrange windows as non-overlapping tiles? Since MT5 provide a toolbar(by pressing ALT+R) for or this. I searched the MT5 manual but cannnot find the API. Many thanks for your help. taozemin

How to "delete indicators window" without closing the chart?

Dear all, After I inserted the Panel Indicator(created after compiling Indicators/myindicators/mypanel/PanelIndicator.mq5) into the chart, I found that each time I click the context sensitive menu "delete the indicators window" of the indicator so as to remove the indicator from the chart, the chart

How can the prices series and indicator values contained in the CSignalXXXX Class generated by the MQL5 Wizard be successfully accessed?

Dear All, Let me illustrate my problem in MACD. After I used MQL5 wizard to create a very simple EA based on the signals of CSignalMACD indicator. I made 2 changes to it: 1. In SignalMACD.mqh, add a member function PrintDBgInfo() to CSignalMACD,which print the Open, Time, and MACD's main and

How can I run the Controls EA correctly?

Dear all, I compiled the MQL5\Experts\Examples\Controls\Controls.mq5 to run it. But only a very small window appeared, as shown in the "Controls" area in the attached image . I check the out in the "export" tab, but no output there either. What's wrong?How can I run the Controls EA correctly? How

The sequence of calling ArraySetAsSeries() and CopyBuffer()

Dear all, I am puzzled by the sdequence of calling the two functions: ArraySetAsSeries() and CopyBuffer(). There are 3 articles or (documents?) that give examples on using the 2 function. 1. https://www.mql5.com/en/articles/130 This article showed calling CopyBuffer() before calling