Flip Position - Automation and Margin Requirement

Hi @t7support ,

I would like to understand how do you handle following scenario when automating orders using TV Webhook

Let’s say I’m trading in EQ segment intraday using 5x leverage. In my account I’ve total 40K i.e. 30K for taking intraday position and 10K loss management.

  1. Using TV webhook, I got a long signal and it bought 650 qty BHEL at 230 with 30K using 5x leverage.

  2. Price is now 228 i.e. Rs. 1,300 unrealised loss.

  3. Using TV webhook, I got a short signal flipping the trade i.e. short 1300 qty BHEL

So, it should book loss in the open long position and create new short position with 650 qty.

Is my expectation correct?

If you want to stop and reverse on the same candle then you can always send 1300 as the trade quantity. This will always keep the pos size as 650 as it keeps flipping between Long and Short. Just note that before starting the alert for the first time, manually open a 650 pos in the broker terminal.

If you stop out on one candle and reverse on the next candle then send 650 as the order quantity for each. You don’t need to bother about open position if you do like this.

I did this, but when doing Flip Position Dhan says insufficient funds. :roll_eyes:

@Hardik ,

Would you be able to explain?

That is because of margin update delay I guess

@PravinJ @Hardik ,

This is another blocker for an Automated System.

Will Dhan be able provide some solution here?

@hachiko This issue persists only with Dhan. I have raised the same concern multiple times here: link.
Please don’t waste your time on this — consider looking for alternatives. Dhan is unlikely to address this concern.

1 Like