Skip to main content

st13 v0.9.5 🐉

To install latest version of st13 Python package for trend analysis

pip3 install st13 --upgrade

To analyse a financial asset run it with the following, where SYMBOL is the asset symbol on Yahoo Finance. If SYMBOL is not given, MSFT will be used for demo, since Microsoft owns GitHub where this code lives.

python3 -m st13 SYMBOL

The package works by identifying clusters of weekly closing prices that are statistically significant. The rationale is if price has moved above a key level, the bias is bullish and if price has moved below a key level, the bias is bearish. Because the market is moving away from a key price level. Naturally, there can be whipsaws around key levels.

More on how this project came about and commentary on MSFT sample chart at this LinkedIn post. Further examples at this LinkedIn newsletter where I applied st13 package to out-of-sample financial assets not used during its development, namely BTCUSD, KC1!, USDJPY, BYND, KOSPI. Its views look reasonable to me.

png

API Mode 🤖

You can invoke st13 from your Python code and use the outputs accordingly

>>> from st13 import get_trend

>>> get_trend() # if not provided, default symbol is MSFT
('BULLISH', np.float64(491.8847961425781), [np.float64(491.8847961425781), np.float64(408.3346252441406), np.float64(368.87298583984375), np.float64(319.2364196777344), np.float64(286.9888916015625), np.float64(241.4587860107422), np.float64(218.7037811279297), np.float64(198.00904846191406)])

>>> trend_bias, key_line, lines_list = get_trend('AAPL')
>>> trend_bias
'BEARISH'
>>> key_line
np.float64(308.9100036621094)
>>> lines_list
[np.float64(308.9100036621094), np.float64(264.3364562988281), np.float64(217.9718017578125), np.float64(188.0437774658203), np.float64(168.74957275390625), np.float64(145.55325317382812), np.float64(121.46382141113281), np.float64(105.59131622314453)]

Release files for st13 0.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st13 0.9.5
File Size Uploaded
st13-0.9.5.tar.gz 96.1 kB Details

Release files / st13-0.9.5.tar.gz

Download URL st13-0.9.5.tar.gz
Size 96.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e1511ee22eeb95944c1ee17b573a65a954650bb6145d41e2d0002e557672888a
BLAKE2b-256 checksum
How to use checksums
9f2e8942421ceac60e38f43c343eae677d31ebb1a29e6ba5ef26a8529269b3a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.9.6

1 release file

This release

0.9.5 This release

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.7.5

1 release file

0.7.3

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.5.5

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.3.0

1 release file

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page