Credits for source code:
Scarf, Lazybear, 100kiwi
Congratulations you have done an excellent work, however I have observed that Fibonacci lines are not drawn in timeframes greater than 1 week.
This occurs when the graph has fewer bars than indicated by the len variable (Period = 200 by default).
A fix for this is to enter the following code for Pine Script version 4.
len = input(title = "Period", type = input.integer, defval =200)
length = len > bar_index + 1 ? bar_index + 1 : len
srcHigh = highest(high, length)
srcLow = lowest(low, length)
diff = srcHigh - srcLow
line0000 = srcLow
For users who do not know how to code, it would be very helpful if you could release a new version with this fix.
One more time, many thanks for your work.