I have an issue and I´m working round now for 2 days (!!!) and dont get a solution for this "problem", that might sound ridiculous.
I simply want to have the distance from Close to Open or Open to Close. I dont know whats goin on that I get strange values printed.
I have COBC==true and if(BarsInProgress==0){
range0=(Opens[0][0]-Closes[0][0]);
range1=(Closes[0][1]-Opens[0][1]);
Opens and Closes are plotted correctly, but I get as results:
Opens[0][0] with 2482 and Closes[0][0] with 2482.75 it plots a range0 with -0.5
Closes[0][1] with 2481.75 and Opens[0][1] with 2481.25 it plots a range with 1.25
I tried it already with Math.Round and with "*TickSize" but always wrong values for distance open and close.
What is necessary in there to get the correct values please for open-close or close-open?
Thank you!
Tony
Comment