I have an indicator in CL running for months and all fine. Today it doesn´t plot as it should, so I added drawing of the values in the chart for debugging and its showing strange numbers.
In the code I have simply for months working:
{startprice = Math.Round(CurrentDayOHL().CurrentOpen[0],0);
priceH = startprice+300*TickSize;
priceA = priceH-600*TickSize;
startprice should be 46, no?
with startprice = Math.Round(CurrentDayOHL().CurrentOpen[0],2); I get also strange number 53,04...
And in the attached screenshots you can see the numbers for startprice from Math. Round.
???
Thank you!
Tony
Comment