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
Printed it and value was 2 (for some strange reason). Then I set it up upfront as AvPerio=14 and when printed again, now it was 14 (correct). However, still iMAOnArray[AvPeriod] returned 0.
thanks again...
I don't have and don't know what kind of indicator "SNR1IND" is.
And so most who read this topic. I have to guess what might be wrong or what you think it is wrong working
What about Do they give other output .....Printed it and value was 2 (for some strange reason). Then I set it up upfront as AvPerio=14 and when printed again, now it was 14 (correct). However, still iMAOnArray[AvPeriod] returned 0.
Thanks deVries again
Used your nice code to check and yet again the values returned were all -0.00000.
Trying to think: The actual array SNR1_Buffer[] in the following code does contain data, so the problem is not the creation of the buffer to feed into the iMAOnArray function
However, the iMAONArray function still returns 0 (as -0.00000).
I dont really understand this function. I replaced the iMAOnArray short code by a quick code for a SMA using the data in the SNR1_Buffer[i] and no problem, it returned values. so it must be the way the SNR1_buffer data is handled (if at all!) by the iMAOnArray function what is wrong.
Thanks WHRoeder
I know, and when I changed the period value to 14, did not show up anny better results.