Skip to content

Adjust command

adjust is used to move the current position toward a target position.

This is a position-management command, not a plain new-entry command.

Use TradingView Order Syntax first if you need the full command structure before working through individual command types.

adjust requires position=.

If you do not provide position=, the command is not valid.

ALPHA(BTCUSDT){type=adjust,position=0.003}
ALPHA(BTCUSDT){type=adjust,position=0.001}
ALPHA(BTCUSDT){type=adjust,position=0}
ALPHA(BTCUSDT){type=adjust,position=50%p}
ALPHA(BTCUSDT){type=adjust,position=10%a}

The app resolves:

  • current position size
  • target position size
  • the difference between them

Then it decides whether the required action is:

  • a pure reduction
  • a full flatten
  • or a market-side adjustment toward the target

Use adjust when your strategy is based on target position management instead of isolated one-off order amounts.

This is the most common error.

Treating adjust like a normal entry command

Section titled “Treating adjust like a normal entry command”

If you want to just open a fresh order, use market or limit.

Always confirm the actual resulting position in Console after an adjustment.