I was wondering whether there is any interest in adding Fibonacci retracement and extension levels to TTR. I have created an, albeit messy, function foo to achieve this functionality. At the time of writing I haven't been able to find any peer-reviewed papers on how to actually calculate these levels, but there appears to be consensus on how to calculate it. See, for example, here and here.
I was wondering whether there is any interest in adding Fibonacci retracement and extension levels to
TTR
. I have created an, albeit messy, functionfoo
to achieve this functionality. At the time of writing I haven't been able to find any peer-reviewed papers on how to actually calculate these levels, but there appears to be consensus on how to calculate it. See, for example, here and here.Initial function
Function showcase
Returns
Visually
These retracements can be charted in visually appealing way in both
quantmod
andplotly
. Below is a simple prototype example,I, personally, think its an welcomed addition to
TTR
- what do you guys think?Best,