
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
It is easy! Save the "close - open" in a buffer and apply the iMAOnArray. That simple!
Or if you prefer to use "MovingAverages.mqh", then the functions "SimpleMA" or "SimpleMAOnBuffer" can be used, irrespective of their efficiency.
Remember that the question is about a custom Indicator.
It is easy! Save the "close - open" in a buffer and apply the iMAOnArray. That simple!
Or if you prefer to use "MovingAverages.mqh", then the functions "SimpleMA" or "SimpleMAOnBuffer" can be used, irrespective of their efficiency.
Remember that the question is about a custom Indicator.
It is easy! Save the "close - open" in a buffer and apply the iMAOnArray. That simple!
Or if you prefer to use "MovingAverages.mqh", then the functions "SimpleMA" or "SimpleMAOnBuffer" can be used, irrespective of their efficiency.
Remember that the question is about a custom Indicator.
Great answer - thanks!
For one, the OP does not have the coding skill or the maths knowledge to understand your solution, nor does he require it, given that the "efficiency" factor is not a requirement for this case.
Yes, it is true that your O(1) solution is indeed helpful when processing Tick Data, or when speed is a priority. However, an SMA is not ideal for that. That is where EMA is much better and faster for those cases, even when using an SMA with O(1).
Your code will indeed be helpful to someone, but probably not on this thread. Let's just say that it is a good solution but for the wrong problem 😅.
Seems like you have a desperate need for recognition and accolade - its about helping others and not expecting anything in return.
No need to take things so personally - its about collaboration rather than competition.
And BTW no need to mock - my son is leading efforts in quantum computing at his University in California, so if it were relevant, I could get access...
But heck why would one waste time solving a trivial matter like this? Over and out