Check if it suits you, in stocks also.
I got this idea from @Abhishekkar_ video youtube.com/watch?v=VodluIhQtfw
Borrowed this idea from someone else and modified as per our need.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Yes you have done it as per Abhishek Kar's strategy, but with the addition of Pivots he has also specified the "Target" points.
If you will watch the video again and add the Pivots as a Target or Exit points then this will be the perfect strategy.
It will be helpful if you look after.