I want to know how to use Webhook to Deploy a strategy am using in TV

Hello ,
I am using a strategy Like Supertrend , I want to trade in crude oil, I want to know how to setup my trade in continuos mode …like the following

  1. The PineScript generates a buy signal and sends a webhook alert to the auto-trading platform.
  2. The auto-trading platform receives the alert and executes a buy trade.
  3. The PineScript generates a sell signal and sends a webhook alert to the auto-trading platform.
  4. The auto-trading platform receives the alert and executes a sell trade, closing the previous long position and opening a new short position.
  5. The PineScript generates a buy signal again and sends a webhook alert to the auto-trading platform.
  6. The auto-trading platform receives the alert and executes a buy trade, closing the previous short position and opening a new long position.

But in Order book of Dhan what should i select and how many lots should i select so that it goes on

@Rahul007 U r code should have four alerts - Buy, Sell, Short and Cover. U cannot work with just Buy and Sell alert. Each alert message should have a corresponding order specific JSON string. Sample code is here.

Lot count should be determined from your side depending on your capital and strategy parameters