A pine script-coded strategy for tradingview

Job ID: 37498326

Budget: $250 – $750 USD

I'm looking to have an imbalance/fvg strategy coded based on the attached open source indicator.

FVGs appear on the bar after the one they formed on and are only confirmed on the 3rd bar. I.e. they 're-paint' somewhat. The strategy would need to count the 3rd bar as potential entry. Please see pic attached.

Further this strat should base it's SL on fractals (I'll provide the indicator) and have x3 r/r sizes based on SL % (with distance below/above last fractal option) ranges. E.g. SL range 1 is 0.25-0.45% with a 1-3 r/r. This strategy should run only on certain days of the week and specific time ranges based on local timezone. The current trade should also force close by X time.

Example: fvg forms within the designated time range and is confirmed 2 candles later. Entry is retracement to that fvg with SL X distance below/above last fractal with a set r/r based on SL size. I need the strategy to alert me for entry as soon as potential trade is confirmed. I.e. 3rd candle confirms fvg and strat spits out an r/r calculator with alert for entry at that fvg so that I can manually enter a limit order.
Related categories: Pine Script Trading