Python: Graphing Bollinger Bands 3 Programming in Python, and Graphing in Matplotlib

preview_player
Показать описание
This video teaches you how to graph Bollinger Bands (R) in matplotlib.

The purpose of this series is to teach mathematics within python. To do this, we will be working with a bunch of the more popular stock indicators used with technical analysis.

With most of the indicators, we will first discuss them, their purpose, then teach how to program them into python, then actually display them on a chart.

Required files:

Рекомендации по теме
Комментарии
Автор

Hi and thank you for you lessons.
BTW there is an a mistake in bollinger_bands function described in previous video - 
I guess this line:
curSD = standard_deviation( tff, closep[0:tff] )
should looks like that:
curSD = standard_deviation( tff, closep[x-tff:x] )
otherwise curSD value always will be the same (as you can see on you graph, it is the same, bond has constant width)
And this is why aapl bollinger bonds graph looks so strange.

vladimird