pytafast.plotting module
- class pytafast.plotting.Chart(df, date_col='Date', open_col='Open', high_col='High', low_col='Low', close_col='Close', vol_col='Volume')[source]
Bases:
objectA quantmod-inspired chaining chart builder for pytafast using Plotly.
- THEMES = {'dark': 'plotly_dark', 'ggplot2': 'ggplot2', 'light': 'plotly_white', 'seaborn': 'seaborn', 'simple': 'simple_white'}
- add_envelope(n=20, p=2.5, color='rgba(0, 0, 255, 0.1)')[source]
Add Moving Average Envelope around SMA.
- add_points(x, y, name='Points', color='black', symbol='circle', size=8)[source]
Add custom scatter points to the main chart.
- add_shading(start, end, color='rgba(128, 128, 128, 0.2)')[source]
Highlight a vertical time region (start/end can be dates or indices).
- add_tdi(n=13, rsi_ma1=2, rsi_ma2=7, bb_n=34, bb_sd=1.6185, height=0.25)[source]
Traders Dynamic Index (TDI).
- add_text(x, y, text, color='black', position='top center')[source]
Add custom text annotations to the main chart.
- add_volatility(n=10, height=0.2)[source]
Chaikin Volatility: percent change in EMA of (High-Low) range.