Pinescript code

Job ID: 33169288

Budget: ₹600 – ₹1,500 INR

I want a code written in pinescript that could be used to automate trading strategy when the 'valid' swing in intraday in Nifty & BankNifty is broken up or down in synchronised manner. The script should be logically developed so as to differentiate Valid & Invalid swings. Valid swings = Not broken yet. Invalid swings = Broken priorly.
Related categories: Pine Script