
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In other words, do you want the moving averages to be calculated not from the EURUSD H1 chart data, but from the data from which the bars of the technical/user indicator are drawn?
Well, then it turns out that we must anyway pass to the technical indicator iMa the values of the indicator buffer of the predecessor indicator. If the predecessor indicator has several indicator buffers(for drawing bars), then, to specify a specific buffer, we must obtain its handle using iCustom. No other ideas yet.
Well, then it turns out that we must anyway pass to the technical indicator iMa the values of the indicator buffer of the predecessor indicator. If the predecessor indicator has several indicator buffers(for drawing bars), then, to specify a specific buffer, we must obtain its handle using iCustom. No other ideas yet.
I can't immediately find the information in the Reference Manual, but it was said somewhere that "using the previous indicator's data" only transfers the data of the very first indicator buffer. That is, by specifying a handle, we are actually only pointing to the first buffer. It doesn't always suit...But, if the predecessor indicator has only one buffer (or if there is no need to specify other buffers), then, theoretically, we can try. Unfortunately, I never worked with technical (standard) indicators, therefore I can only guess.
I don't get it. I decided to make an analogue of Sleep() in indicator and solder it to Label (by pressing it to have a visual effect of pressing)
It doesn't work at any value of Delay, so I have no option to change it very quickly.
If I uncomment strings, everything works. What's the problem?
But if you uncomment the lines, everything works. What's the problem?
ChartRedraw needed
Another question: can I connect external DLLs to MQL5? If so, is there any information about it?
How to write a DLL for MQL5 in 10 minutes and exchange data? https://www.mql5.com/ru/articles/18
Delphi DLL Writing Guide for MQL5 https://www.mql5.com/ru/articles/96