Trading Overrides
Customize trading primitives
caution
Starting from version 29, the methods for creating trading primitives will only be available in Trading Platform.
Trading primitives is a low-level mechanism for creating order and position lines using createOrderLine
and createPositionLine
methods.
You can override the style of these lines using the trading_customization
property of the Widget Constructor.
new TradingView.widget({
/* Other Widget Constructor properties */
trading_customization: {
order: { /* Override properties for order lines */ }
position: { /* Override properties for position lines */ },
}
})
The example below shows how to create order and position lines and customize their quantity text color, line color, style, and width.
Follow the links below to see the full list of override properties for orders and positions.