Pinescript Code Modification

Job ID: 37666638

Budget: $30 – $250 CAD

I am in need of an expert Pinescript coder to perform modifications on my existing indicators.

I'd like to change the alerts from being 5 candles from the order block to 0 or 1 candle. See picture. Currently the best indicator I can find only issues an alert 5 candles after forming a order block ( red lines ). I'd like to change this to 0 or one candle after the order block has been created. ( black lines )
Related categories: Pine Script Trading