Note
Go to the end to download the full example code.
Bollinger Bands#
This example demonstrates how to use the Bollinger Bands indicator with the TradeTide library.

<Figure size 800x500 with 1 Axes>
from TradeTide.indicators import BollingerBands
from TradeTide.market import Market
from TradeTide.currencies import Currency
from TradeTide.times import days, minutes
from TradeTide.market import Market
from TradeTide.currencies import Currency
market = Market()
market.load_from_database(
currency_0=Currency.CAD,
currency_1=Currency.USD,
time_span=90 * minutes,
)
indicator = BollingerBands(window=10 * minutes, multiplier=1.0)
indicator.run(market)
indicator.plot()
Total running time of the script: (0 minutes 0.362 seconds)