In the pic below is a strategy that polls many indicators up or down and in this specific setup it's trading up or down and reversing when the voting changes.
So the trend color will reverse course, a go long or short is started at the close of that bar which shows up in the next bar...
Is there N7 code around here to show how to code the reverse effectively?
In the picture It was going long, and it was I assume flattened but no short was initiated yet in other spots its pingponging just fine.