Taher Halimi:
I have created a Fibo retracement object but I need to use customized levels, I use below code but all lines are showing beside each other.
fibo is drawn correctly but the result levels are as attached image.
fiblevelvalues is a double array result are correct and its price of each level.
could any one help and tell me where am I wrong?
Try changing this line:
fiblevelvalue[i]=fibprice1-(fibprice1-fibprice2)*fiblevelfactor[i]*0.01;
to
fiblevelvalue[i]=fiblevelfactor[i];
Seng Joo Thio:
Try changing this line:
to
thank you very much friend, yes you are right, I have to use factors, not the prices.
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
I have created a Fibo retracement object but I need to use customized levels, I use below code but all lines are showing beside each other.
fibo is drawn correctly but the result levels are as attached image.
fiblevelvalues is a double array result are correct and its price of each level.
could any one help and tell me where am I wrong?