NO error message / stoppage on above settings on my Spread Bet Platform.
Algo needed an Endif deleting on Line 29 and an Endif adding as an additional last line in order to overcome the syntax error message.
Can’t see how you would not have got the syntax error message?
Do you want me to run it on my CFD Platform?