How does iCCI function handle negative values in shift parameter?
1° Doesn't really matter as that doesn't make sense, a negative index is in the future.
2° The value will be 0.
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
Hello friends
Embedded below is small snippet of code that has me flummoxed ad confused me to the core.
Declared Variables a0 .... a6 are double (non arrays)
Variable i is integral loop variable that will start from the last unfinished bar and terminate at most recent bar. During debugging, it is very rare to see value of limit anything above 2.
Therefore,
if i is set to 2, expression computing a5 which uses expression "i-5" will pass negative 3 to iCCI function and positive 7 to iRSI function.
if i is set to 1, expression computing a5 which uses expression "i-5" will pass negative 4 to iCCI function and positive 6 to iRSI function.
if i is set to 0, expression computing a5 which uses expression "i-5" will pass negative 5 to iCCI function and positive 5 to iRSI function.
When positive values is passed to iCCI and iRSI they return proper values of same array specified bars ago.
How does iCCI function handle negative values in shift parameter?