I took the formula of the fibonacci from LonesomeTheBlue and made this script. You can take a look at his indicator here:
When you first add the indicator on the chart, click on the chart to select the first date and then the second date. It will then calculate the fibonacci support and resistance of the range you choose. You can also choose the date inside the inputs.
Be sure the first date is before the second date, otherwise it won't be able to show the fibonacci. If that happen, choose a correct date in the inputs.
Release Notes
The original code is from LonesomeTheBlue in the Fibonacci Levels MTF script.
Release Notes
-Added a bool to extend the fibonacci to the right. -I changed the fibonacci to start from start time to end time instead of starting at end time. -Added a bool to show/hide the start/end white line.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.