Pedro Henrique Vieira:
Hello,
I have created a function to calculate the price´s changing rate.
but depending on the the buffer that I use to parameter "buffer2[index-N]", the compiler shows the message : " zero divided on Delta".
So I modified the previous function to:
But it is not working....
Some thoughts?
Thank you all
change to that.
if(buffer2[index-N]==0) buffer2[index-N]=1; else buffer2[index-N]= buffer2[index-N];
Janfi-trading:
change to that.
Unfortunately it does not work.
The message :'buffer2' - constant cannot be modified
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,
I have created a function to calculate the price´s changing rate.
but depending on the the buffer that I use to parameter "buffer2[index-N]", the compiler shows the message : " zero divided on Delta".
So I modified the previous function to:
But it is not working....
Some thoughts?
Thank you all