-
Notifications
You must be signed in to change notification settings - Fork 38
Trading Primitives
Trading Primitives is a low-level mechanic designed to give you the most detailed control over trading primitives behavior.
You can use special value inherit
for some properties of Trading Lines objects. Thiw will make the Library to use its factory defaults for this property. You can enable trading_options
feature to show Trading GUI controls in chart properties window.
You can’t control visibility of specific object - generic properties for positions, orders and executions are available for user in Trading tab of Chart Properties window.
You can use following string formats for setting colors:
- "#RGB"
- "#RRGGBB"
- "rgb(red, green, blue)"
- "rgba(red, green, blue, alpha)"
You can use following string format for setting fonts: <bold> <italic> <size>pt <family>
. Colors and fonts strings will be automatically parsed to determine GUI controls values.
Following line styles are supported:
Style | Value |
---|---|
Solid | 0 |
Dotted | 1 |
Dashed | 2 |
- You can use
this
keyword to access API-object from within callback function - You can pass two arguments to callback registration function - in this case first argument is an object which will be passed as first argument to callback function (see examples).
- If callback isn’t set, then respective button will be hidden (affects
onReverse
,onClose
andonCancel
callbacks).
#Wiki Content
- What is Charting Library
- Getting Started
- Package Content
- Running Your Charting Library
- Data Binding
- How To Connect My Data
- JS API
- UDF
- Symbology
- Trading Sessions
- Quotes
- Chart Customization
- Charts Customization 101
- Client-Side Customization 1. Widget Constructor 2. Widget Methods 3. Chart Methods 4. Featuresets
- Server-Side Customization
- Trading Platform
- Brief Intro
- Trading Controller
- Saving/Loading Charts
- Creating Custom Studies
- Best Practices
- Breaking changes in versions