build_trade_plan
Calculate trade entry details including quantity, stop-loss, targets, risk, and profit with risk-reward ratio. Manage capital and leverage for BUY or SHORT trades.
Instructions
Calculates the trade entry details including Quantity, Stop-Loss, Target 1, Target 2, Risk in Rupees, Gross PnL, Net PnL (including daily fees), and Risk-to-Reward Ratio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vwap | Yes | Current VWAP value | |
| price | Yes | Entry price of the stock | |
| action | Yes | Trade direction | |
| capital | Yes | Available capital to allocate for the trade | |
| prevLow | Yes | Previous swing low (support anchor, used as SL for BUY setups) | |
| leverage | No | Intraday leverage factor, defaults to 5 | |
| prevHigh | Yes | Previous swing high (resistance anchor, used as SL for SHORT setups) | |
| vwapCheckTv | No | Flag indicating whether the target is the VWAP (true for reversals) | |
| vwapCheckType | No | The type of trade setup determined by the VWAP check |