Skip to content

v0.6.3 - Supertrend & Tilson T3 Indicators

Choose a tag to compare

@saidsurucu saidsurucu released this 25 Jan 16:04
· 36 commits to master since this release

New Features

Supertrend Indicator

ATR-based trend following indicator with bullish/bearish direction signals.

import borsapy as bp

stock = bp.Ticker("THYAO")
st = stock.supertrend()
print(st['value'])       # 282.21
print(st['direction'])   # 1 (bullish) or -1 (bearish)

Tilson T3 Indicator

Triple-smoothed EMA with low lag and configurable smoothing factor.

t3 = stock.tilson_t3()              # 296.24
t3 = stock.tilson_t3(t3_period=8, vfactor=0.7)

Technical Changes

  • calculate_supertrend() and calculate_tilson_t3() pure functions
  • TechnicalMixin.supertrend() and .tilson_t3() methods for all assets
  • TechnicalAnalyzer support for both indicators
  • Added to add_indicators() function
  • WebSocket URL fix with ?type=chart parameter
  • Study format updated to {name}@tv-basicstudies-241