Is it possible to function where you could count points. If you have a green cloud and eg Zlema has stayed X number of points above the green cloud for Y number of hours, it should hold the position until you have definitely got a clear turn.
The Green Cloud is the one of Ichimoku?
Clarifies. Want to count the points between two indicators
There you go:
MySpanB = SenkouSpanB[9,26,52]
MyZlema = ZLEMA[20](close)
Gap = (MyZlema - MySpanB) / PipSize
return Gap AS "Difference"