Skip to main content

This is a package of helper classes and libraries.

Project description

pyfxgit

This is a package of helper classes and libraries.

Author

dennislwm

Installation

$ pip install pyfxgit

Example

from pyfxgit.ChartCls import ChartCls

Getting Data

Note: Variable data is of type DataFrame that consists of columns ['Open', 'High', 'Low', 'Close', 'Dbs', 'DbsMa'].

Add indicator charts

chart = ChartCls(data, intSub=2)
chart.BuildOscillator(1, data['Dbs'], intUpper=3, intLower=-3, strTitle="Dbs")
chart.BuildOscillator(0, data['DbsMa'], intUpper=3.75, intLower=-3.75, strTitle="DbsMa")

Build tags

lstTag = chart.BuildOscillatorTag(data, 'DbsMa', 3.75)

Add spans to main chart

chart.MainAddSpan(data['Tag'], lstTag[lstTag>0], 0.2, 'red')
chart.MainAddSpan(data['Tag'], lstTag[lstTag<0], 0.2, 'green')

Build main chart

chart.BuildMain(strTitle="SPY")

Save chart

chart.save("Dbs")

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

pyfxgit-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pyfxgit-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfxgit-0.1.0.tar.gz.

File metadata

  • Download URL: pyfxgit-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pyfxgit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41364d603dd6449eae73bc14400c5ae9e6bb440b4e9ce678607f60585773c658
MD5 0cf04f6f0ec76bb547e811bf7dd28f49
BLAKE2b-256 3fdaa5f6136459650054527b1f86be0e7157302c7e7f4e85c729566404be58b4

See more details on using hashes here.

File details

Details for the file pyfxgit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyfxgit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pyfxgit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 954e2392dc3f9138bc24e859de8098564b6986d56273aa4142494366961a4f84
MD5 6ad768bbd036acc6d8cd694bac71562a
BLAKE2b-256 be0678c2de96cf2cbfe320c03aad41c4f1d4af9a5013fea4a3498019fb04d808

See more details on using hashes here.

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