Forum

Script to apply an indicator

Hi, How does one write a script that can apply an indicator onto a chart. I can set the initial parameters of the indicator from the script. Is this even possible ? Thanks

last open handle of chart from Win32 API

Hi, How do I get the chart handle of the last open chart window from Win32 API ? This is from within win32 dll, so I won't have access to the return of ChartOpen, that also returns the handle. Thanks

need help creating a dll file, most of the program is here

Hi, I am writing a program to open any offline chart programmatically and this works in recent mql4 builds, but I need a dll out of this so older builds can use it. Can anyone who is familar with win32 programming help me fix the 3 or 4 compilation issues ? I am new to windows programming and I

import question

Hi, I just coded a library 'mylib.ex4' in build 840. and moved that library to build 509 and compiled an indi using that library. It compiles fine. The I move the indi to build 840 and attach the indi to a chart it says: cannot load external program 'mylib' What am I doing wrong ? I have included

Chart display question

Hi, Whenever I open a chart using ChartOpen() in MT4 the last bar on the chart is on the left-most corner (meaning the entire chart is empty except for one bar on the left of the chart) . Then I have to scramble for page up / down to get it in the proper place. Have I missed anything after calling

Chartopen error

Hi, I'm using an old mql4 editor (build 509) to compile and modify an existing indicator and would like to use ChartOpen() . All I need to do is just compile so I can copy the ex4 to the new MT4 (build 840) and use ChartOpen like it was intended. I added some code like this to just take the call in

Open an offline chart programmatically !

Hi, I have the following program from the net modified to open an offline chart. But all it does it open the offline chart-list. The key down and selecting the chart-list entry does not work. If someone who is familiar with windows programming please let me know what am I doing wrong ? #import

Report the price of a horizontal line

Hi, If I manually place a horizontal line on the chart, how do I report the level where I placed the line to my EA ? How do I even identify the line ? Thanks

Autoload indicator after a compile

Hi, Is it possible to automatically re-load a loaded indicator say after a compile ? It is possible to reload, if we open metaeditor and click on compile on any of the files. It doesn't matter which file, meta-trader will refresh and re-load the indicator. Can we do it manually ? I downloaded the

Chartopen() question

Chartopen() is not able to open offline charts. Is there a programmatic way to open offline charts