Does anyone know how to express points move in code? for example, if a price closes more than 5 points higher than N time frames ago, I want to see a signal (the latter I know how to do, it’s the first part which I’m struggling with!)
Roberto’s code will return true if the current close is 5 pips higher than the highest high in the last 5 candles. If you just want it to be 5 pips higher than the close 5 candles ago then you need to use:
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.