I have tested your script using $AUDJPY on a 15 minute chart and I am not able to reproduce the behavior.
Do you have any output that can show there is a different and where this difference is coming from?
(As in do you have a print that shows the bar with the different price value?)
http://screencast.com/t/NmREsXuQBIA
Comment