Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position - a new annotation type for stock charts #224

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jimmysp
Copy link

@jimmysp jimmysp commented Mar 26, 2024

A visual aid for the stock charts, the Position annotation represents an order with profit and loss estimates.

The Position annotation is constructed with 3 points where the first point is the origin (where the order is placed), the second point is the desired win (either long/up or short/down) and the third point is the loss estimate (opposite to the win point).

The default colors are 20% opacity theme's rising color (for win region) and 20% falling color (for loss region).
image
image

The Position annotation has two specific methods:

  • winFill() Fill settings for the win region
  • lossFill() Fill settings for the loss region

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant