Hi
I have an indicator that generates support and resistance levels. I need to compare the Close value to the support/resistance levels.
When you look on the PRT crosshair the Close value is ALWAYS to one decimal place. See attached screen capture.
If you ROUND it you obviously lose the decimal point. If you use Close then you get five decimal points. (IG Index DFB EUR/GBP spread bet)
Is there a way to get the Close value used by the inbuilt PRT crosshair or to round to one decimal point?
Thanks
Rob
RoundedClose = ROUND(Close)
RETURN Close as "Close", RoundedClose as "Rounded close"
roundedclose = round(close*10)/10
Despair suggested the correct way to round values. Use GRAPH to view the rounded value. You will notice that 1.25048 will be rounded to 1.30000, while 1.24294 will be rounded to 1.20000.