Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.