ox-charts
Trading

Order lines, brackets and the position line

Drag working orders, add TP/SL by dragging, and read the position chip's P&L.

Working orders

A limit or stop order is a line at its price with a label. Drag the line to move the order; the change applies on release, with no dialog. The × on the label cancels it.

Brackets (TP and SL)

TPAvgSLReward: TP must stay above the averageRisk: SL must stay below the averageA short mirrors it: TP below, SL above
A long position: TP above the average price, SL below. The drag clamps at the wrong side.
  • Long: TP must sit above the anchor and SL below. Short: the reverse. A drag past that boundary stops one tick short and the ghost dims with the reason.
  • While dragging, the profit side washes green and the risk side red, and the label shows the arithmetic: TP 44,104.20 · +₹178 (+0.41%) · 2.4R. R appears only when a stop exists.
  • Shift-drag moves TP and SL together, keeping their distance.
  • A pending order's legs are plans: drawn fainter, with a dotted connector to their order. Once it fills they become the position's live exits.
  • TP and SL are one-cancels-other: when one fills, the other is cancelled.

The position line

An open position is a line at the average price with a chip next to the axis: [↕] [TP] [SL] [+1] [+₹273.71 (+0.62%)] [✕].

TermMeaning
↕Reverse the position.
TP / SLPress and drag to add that leg. The cell disappears once the leg exists; the leg's own line then drags.
+1 / −1Signed quantity. Direction lives in the sign, not the line colour.
P&LOpen P&L, coloured by sign. Settings → Trading → P&L display switches money, points, ticks or percent.
✕Close the position.

Confirm actions

With Settings → Trading → Confirm actions on, close and reverse ask with a small inline pill on that line. Drags never ask: the gesture is the confirmation.

The average price sits on its own price-axis tag, beside the TP and SL tags, because the axis is where you already read levels. Fills are marked on the candles: an up arrow below the bar for a buy, a down arrow above for a sell.

On this page