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
this indicator is great, EXCPEPT it does not function correctly in real time. It doesnt react right for giving real time signal.
Some things are Bad.
If I use original SMA03 + SMA20 the crossess are diferent from this indicator.
Are there some secret algo???
There are not used the calculation buffers. I do not know ..
Some things are Bad.
If I use original SMA03 + SMA20 the crossess are diferent from this indicator.
Are there some secret algo???
There are not used the calculation buffers. I do not know ..
It is published source code--not a secret.
Here's the calculation:
Yes I read the source,
But the problem is the diferncy.
The croses of original sma03+sma20 are not on the same place.
sma03+sma20
You're omitting the average_handle which is controlled by the input:
AHA.
OK. Yes, all is right.
I am sorry for this.
Measure quality is easier. Nice.
I thinkd the mean is 20. I know, thera are 3smas.
Do you think there would be a problem to remove the lines and do the fix?
There should be no problem. Occasionally people write code for their specific symbol/instrument is all.
This digits code is pretty standard in indicators with nothing more:
You could delete the function altogether and the indicator would still work, but it would always default to displaying 6 digits.
[W]here can I read the SlowBuffer values
See the buffer declarations:
You've already found the fast buffer #0. Similarly, the slow buffer is buffer #2.
Personally, the mean buffer #1 which is assigned a static value of 1 leaves me scratching my head. It would be easier and cleaner to just use the integer... 1.🤔You're right to be puzzled by the mean buffer. In this implementation it's always assigned a static value of 1 (MeanBuffer[shift] = 1), so it never changes across bars.
That means the buffer itself is redundant: you don't actually need to store or expose it through SetIndexBuffer.
The indicator could simply use the literal constant 1 directly in the calculation of the other two series, and that would make the code shorter, clearer, and use less memory. The Fast and Slow buffers are the only ones that carry real data.