How to send correct transaction type

Hi my pine script action is Buy or Sell will it work with Dhan where transaction Type is “B” or “S” Thank you Here is my startegy entry and exit code strategy.entry(“Long”, strategy.long, qty=positionSize, when=buy) strategy.close(“Long”, when=exitLong)

Hello @dominic_sullivan

Yes, even if you send transactionType as Buy or Sell instead of B/S, it will still work and you will be able to place orders via the same.

1 Like

Thank you , That works as you said

1 Like