Pinescript request: Drawing Auto fibonacci for each candle

Job ID: 36716709

Budget: $12 – $30 SGD

Please help me to write a pinescript code for drawing fibonacci levels. The fib levels should be drawn on each candle based on the high and low of the individual candle once the candle closes.
The levels should be drawn at -0.51, 0, 0.214, 0.5, 0.786, 1, 1.51. The high and low of the candles will be at the 0 or 1 level, depending on if the candle is bullish or bearish (if bullish, 0 = low, 1 = high; if bearish, 0 = high, 1 = low).
The high and low will take into account the entire range of the candle, including the wicks.

An example of a similar code would be 'Simple Fibonacci Retracement' by 'TradeChartist', after changing the lookback candle to 1. however, the code from tradechartist is not able to draw the fib level on each individual candle.
Related categories: Pine Script Trading