newOrderWebhook
New order from webhook. Tutorial setup.
Note, by default you go fully in or out of a position at leverage. Set pyramiding to scale into a position over multiple same-direction alerts.
Body
AlphaInsider strategy identifier.
AlphaInsider stock identifier, or SYMBOL:EXCHANGE in requests.
Order actions. Action "buy" is the same as "long", "sell" is the same as "short", "close" is the same as "flat". It is recommended for TradingView webhooks to use the {{strategy.market_position}} to get all strategy actions. See TradingView strategy alert guide for full list of automated actions.
buy, long, sell, short, close, flat User API token with newOrderWebhook permission.
Leverage to trade at. Defaults to 1 if not set.
0 <= x <= 2Must be a multiple of 0.01Number of same-direction trades needed to reach full leverage. Each same-direction alert steps the position by leverage / pyramiding toward full leverage. Once at full leverage, additional same-direction alerts rebalance the position back to exactly leverage. An opposite-direction alert reverses the position to the first step on the new side. Ignored for "close"/"flat", which liquidates the strategy. If not set, each alert goes fully in or out of the position at leverage.
1 <= x <= 100Slippage represents the percentage offset from the current bid/ask price when placing a limit order. This adjustment helps ensure that orders are more likely to fill by accounting for potential price movements. Defaults to 0.002 if not set.
0 <= x <= 0.05Must be a multiple of 0.001