I am creating a Pinescript with Supertrend Indicator.
So entry when Supertrend says uptrend and take profit at 100 pips.
Short at downward Supertrend and take profit at 100 pips.
Problem is when it takes profit it renters again as Supertrend is still green or red.
I want to avoid re-entry in same direction and wait for next signal reverse signal.
Can anyone guide me in right directions.