Entry could be between any pivot levels, but I want to exit on the next Pivot point profit.
For e.g.
when the option is purchased above pivot it should exit at r1
when the option is purchased above r1 it should exit at r2
when the option is purchased above r2 it should exit at r3
Kindly note that we have used Trade Candle (open,0) in the below strategy. This is because Trade Candle (open,0) is the trade price in backtest. refer to the image below for the exit conditions matching your requirement: