Adjust command
What it does
Section titled “What it does”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.
Most important rule
Section titled “Most important rule”adjust requires position=.
If you do not provide position=, the command is not valid.
Minimal example
Section titled “Minimal example”ALPHA(BTCUSDT){type=adjust,position=0.003}Reduce position
Section titled “Reduce position”ALPHA(BTCUSDT){type=adjust,position=0.001}Flatten position
Section titled “Flatten position”ALPHA(BTCUSDT){type=adjust,position=0}Percent-based target examples
Section titled “Percent-based target examples”ALPHA(BTCUSDT){type=adjust,position=50%p}ALPHA(BTCUSDT){type=adjust,position=10%a}What it does internally
Section titled “What it does internally”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
When to use it
Section titled “When to use it”Use adjust when your strategy is based on target position management instead of isolated one-off order amounts.
Common mistakes
Section titled “Common mistakes”Missing position=
Section titled “Missing position=”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.
Not verifying the final actual position
Section titled “Not verifying the final actual position”Always confirm the actual resulting position in Console after an adjustment.