Skip to main content

A mechanical approach to determine the trend of a stock along with breakout and reversal levels.

Project description

Swing

A mechanical approach to determine the trend of a stock along with breakout and reversal levels.

Python version: >= 3.8

If you ❤️ my work so far, please 🌟 this repo.

👽 Documentation

https://bennythadikaran.github.io/Swing

This work was inspired by youtube Channel Matt Donlevey - Photon Trading. You can watch their video How To Understand Market Structure to understand some of the concepts.

To get the Photon method as explained in the video, instantiate the class as Swing(retrace_threshold_pct=None)

In the Photon method, both minor and major pivots can result in trend continuation or trend reversal. (This includes a single bar pullback).

I prefer avoiding the minor pivots by setting a minimum threshold percent. If the threshold is set to 8%, the pullback must retrace atleast 8% or more to be considered an important level for trend reversal or continuation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swingtrend-1.0.0.post2.tar.gz (104.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swingtrend-1.0.0.post2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file swingtrend-1.0.0.post2.tar.gz.

File metadata

  • Download URL: swingtrend-1.0.0.post2.tar.gz
  • Upload date:
  • Size: 104.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for swingtrend-1.0.0.post2.tar.gz
Algorithm Hash digest
SHA256 7f243cef06184bd7e017f1a0d1f630f430954f472acceb3d6c4e9aea5d8b4ac4
MD5 c53ea042a8b7f0ccaf7746036d6706fe
BLAKE2b-256 a3cc2f222fc3175ffd52287fadf85985cce73e393e29e3841c3d2c66c0015413

See more details on using hashes here.

Provenance

The following attestation bundles were made for swingtrend-1.0.0.post2.tar.gz:

Publisher: publish-to-pypi.yml on BennyThadikaran/SwingTrend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swingtrend-1.0.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for swingtrend-1.0.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 af0f94f71d8a8b4bc7de7f11ce4cd6f5022fe5100949e9a65b59bd3bfe44c2ee
MD5 549aadbb2f29a7c18cd06a1c178d28dc
BLAKE2b-256 ececd904d576c68073f4aa1e0b5a036efcdddb7201a4ec677e38743883a425e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for swingtrend-1.0.0.post2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on BennyThadikaran/SwingTrend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page