Trend Direction Force Indicator made by mladen, it compiles without any errors and should work but indicator window is blank. Tried on 3 different broker's MT4 but nothing.
Open the following page and read first message of Mladen.
- www.forex-station.com
I think(!) that one need not to change something, but just do (try!):
- "Save under different name"
- Select the same name!
- Upon the remark: .."file exists" press yes (or ok?)
- Compile it again.
- Attach it to the chart - and see whether or not it worked!
Once and a while the debug-button is greyed (=not startable) and this procedure enables the debugger again.
Open the following page and read first message of Mladen.
Brilliant! Thank you!
Trend Direction Force Indicator made by mladen, it compiles without any errors and should work but indicator window is blank. Tried on 3 different broker's MT4 but nothing.
In fact, the problem is that there are no styles for drawing lines.
Simply insert the drawing styles into init() and the problem will be gone.
SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexStyle(2,DRAW_LINE); SetIndexStyle(3,DRAW_LINE); SetIndexStyle(4,DRAW_LINE); SetIndexStyle(5,DRAW_LINE); SetIndexStyle(6,DRAW_LINE);
That isn't the problem; the problem is compiling a working indicator sometimes results in no drawing but the data window has values. Compiling a second or a third time fixes it with no changes to the code.
In fact, the problem is that there are no styles for drawing lines.
Simply insert the drawing styles into init() and the problem will be gone.
The way you wrote it, it is not a style. That is drawing type. And it is obvious that mt4 now sometimes "forgets" what used to be default drawing type (line) for years and years (but does not "forget" it always - "just" sometimes :)).
In any case the issue is clear : it sometimes displays lines and sometimes it does not (even though they are visible in the data window). Ie: that is a bug 101% (see whroeder1's post too) since without any change of code whatsoever it will sometimes be displayed and sometimes not. If it did not show it all the time then it would be a change in mt4. Since it sometimes draws those lines and sometimes it does not it is a bug by all the definitions of the bug there are
The way you wrote it, it is not a style. That is drawing type. And it is obvious that mt4 now sometimes "forgets" what used to be default drawing type (line) for years and years (but does not "forget" it always - "just" sometimes :)).
In any case the issue is clear : it sometimes displays lines and sometimes it does not (even though they are visible in the data window). Ie: that is a bug 101% (see whroeder1's post too) since without any change of code whatsoever it will sometimes be displayed and sometimes not. If it did not show it all the time then it would be a change in mt4. Since it sometimes draws those lines and sometimes it does not it is a bug by all the definitions of the bug there are
Type or style, it does not really matter and the problem is connected with this, not paying attention to someone's messages and someone's mistakes!
That isn't the problem; the problem is compiling a working indicator sometimes results in no drawing but the data window has values. Compiling a second or a third time fixes it with no changes to the code.
If this were not a problem, then no one would have addressed such requests!
Type or style, it does not really matter and the problem is connected with this, not paying attention to someone's messages and someone's mistakes!
Please then explain why it sometimes produces correct ex4 file (that works) without any code change and sometimes incorrect ex4 file (that does not work) when exactly the same code is repeatedly compiled
Patch is a patch (and nobody denies that there are patches that can fix that bug/issue - use #property indicator_type(nnn) DRAW_LINE for example and no need to do anything in the init). All that "issue" started with the build 1090 and all that code was perfectly "legal" till this unfortunate build 1090 was released. Hence "patches" for builds pre build 1090 were not necessary since mt4 was working as it used to work for years and years till this build 1090. All that code was working perfectly well (as it was supposed to work, and not just that indicator but 1000s of indicators) - why should it have been changed then in any way when there were no "mistakes" in it?
But bug is a bug also - and in this case it is a MT4 bug. Closing eyes on that will not remove it
Now it is up to MQ: are they going to force this as a new requirement (and make something similar as with build 600) just because default drawing type that was valid for all the code before build 1090 is not valid any more (but funny enough, just sometimes, since it sometimes works) and that way make one more time people forcefully change code that worked for years and years back (and that code from post one was written years and years ago - long before build 1090) or they are going to fix the bug so that it stops producing correct ex4 files - randomly?
All the best
Please then explain why it sometimes produces correct ex4 file (that works) without any code change and sometimes incorrect ex4 file (that does not work) when exactly the same code is repeatedly compiled
Patch is a patch (and nobody denies that there are patches that can fix that bug/issue - use #property indicator_type(nnn) DRAW_LINE for example and no need to do anything in the init). All that "issue" started with the build 1090 and all that code was perfectly "legal" till this unfortunate build 1090 was released. Hence "patches" for builds pre build 1090 were not necessary since mt4 was working as it used to work for years and years till this build 1090. All that code was working perfectly well (as it was supposed to work, and not just that indicator but 1000s of indicators) - why should it have been changed then in any way when there were no "mistakes" in it?
But bug is a bug also - and in this case it is a MT4 bug. Closing eyes on that will not remove it
Now it is up to MQ: are they going to force this as a new requirement (and make something similar as with build 600) just because default drawing type that was valid for all the code before build 1090 is not valid any more (but funny enough, just sometimes, since it sometimes works) and that way make one more time people forcefully change code that worked for years and years back (and that code from post one was written years and years ago - long before build 1090) or they are going to fix the bug so that it stops producing correct ex4 files - randomly?
All the best
Mladen, do not worry you so, it certainly is not your fault and I was not going to accuse you of this!
Thank you very much, for the huge number of indicators that you have made, from me and I think from all users who have ever used your codes.
The fact is that this is not the first time I have encountered this problem and get rid of it, in this way.
Whose error is this, this is another question and it will most likely not be solved any more, since MQL4 is no longer developing, and somehow it is necessary to get rid of it, so I suggested this option. You can call ServiceDesk with this problem and ask them to solve this issue.
Regards.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Trend Direction Force Indicator made by mladen, it compiles without any errors and should work but indicator window is blank. Tried on 3 different broker's MT4 but nothing.