Per post#1, hanover (David) is not updating his mq4 files for use with build 600... and I respect that. He provided his source code files, so, I did some updates.
It *should* work in build 600, but if it doesn't turn out to be completely true... you can certainly report the error(s) here, but my bottom line is: I DON'T CARE. In other words, I'm not going to maintain or debug this code. Just a few posts earlier, David made reference to the possibility that the code has some bugs described earlier. What I can say is, it compiles, and when added to a chart, it appears to work for me.
I don't use this indicator at all. I was merely curious to see what it would take to fix it to compile. Separately, I updated his "MQL4 utility functions" and already posted them where indicated below. That took the bulk of the necessary effort for conversion.
The "Recent SR original.mq4" file from post#1 contained many functions that were cut-and-pasted from his functions file. I'm not going to bother to do that. I just added a couple "#include" lines, and commented out his "LIBRARY FUNCTIONS". The compiler takes care of finding the functions it needs from the Include files, and it ignores the ones not needed. If someone else wants to do the cut-and-paste job, be my guest, and then post the update in this thread.
I made a few other edits necessary for build 600.
To compile this new mq4, put it into your MQL4/Indicators/ folder. You will also need TWO MORE FILES FROM THIS POST. Put those into your MQL4/Include/ folder.
Read the top of the .mq4 file for comments about changes made, and some compiler warnings you should expect to see.
Now, the rest is up to you...
P.S. If you're not an MQL4 programmer, well, a few years ago neither was I. I started by staring at code by others. One way you could possibly begin is to compare, side-by-side, David's original, and my updated versions, of both this .mq4 file, and better still, of his two Include files from the other post. I use a free tool called "ExamDiff" to compare text files, or use whatever tool you prefer. David's Utility functions are free to use, and many are very helpful, though I have only begun to scratch the surface. I already wrote many similar functions myself, but he has shared his set with all.
It *should* work in build 600, but if it doesn't turn out to be completely true... you can certainly report the error(s) here, but my bottom line is: I DON'T CARE. In other words, I'm not going to maintain or debug this code. Just a few posts earlier, David made reference to the possibility that the code has some bugs described earlier. What I can say is, it compiles, and when added to a chart, it appears to work for me.
I don't use this indicator at all. I was merely curious to see what it would take to fix it to compile. Separately, I updated his "MQL4 utility functions" and already posted them where indicated below. That took the bulk of the necessary effort for conversion.
The "Recent SR original.mq4" file from post#1 contained many functions that were cut-and-pasted from his functions file. I'm not going to bother to do that. I just added a couple "#include" lines, and commented out his "LIBRARY FUNCTIONS". The compiler takes care of finding the functions it needs from the Include files, and it ignores the ones not needed. If someone else wants to do the cut-and-paste job, be my guest, and then post the update in this thread.
I made a few other edits necessary for build 600.
To compile this new mq4, put it into your MQL4/Indicators/ folder. You will also need TWO MORE FILES FROM THIS POST. Put those into your MQL4/Include/ folder.
Read the top of the .mq4 file for comments about changes made, and some compiler warnings you should expect to see.
Now, the rest is up to you...
P.S. If you're not an MQL4 programmer, well, a few years ago neither was I. I started by staring at code by others. One way you could possibly begin is to compare, side-by-side, David's original, and my updated versions, of both this .mq4 file, and better still, of his two Include files from the other post. I use a free tool called "ExamDiff" to compare text files, or use whatever tool you prefer. David's Utility functions are free to use, and many are very helpful, though I have only begun to scratch the surface. I already wrote many similar functions myself, but he has shared his set with all.
Attached File(s)
Recent SR original v2_0.mq4
104 KB
|
3,006 downloads
Recent SR original v2_0.ex4
215 KB
|
2,094 downloads
1