I am able to place buy bracket order but unable to place sell bracket order. I get CallExitBObridge error in sell order. Weirdly buy and sell orders are almost same. Can someone tell me what is the issue with ssell order? E7 cell is the price.
The Bridge functions (PlaceOrder) works on the concept of Signals. There are 4 signals BUY SELL (==Buy Exit) SHORT COVER (==Short Exit)
When you get BUY signal in your system Call PlaceOrder function with SignalType as "BUY" PlaceBOBridge("NSE", "SBIN", "BUY", 1, E7+0.1, 2, 1, 0, "SL", E7, "LONG", TRUE, "ZG", FALSE, "")
When you want to close BUY position (Tgt Hit, SL Hit or SqOff time etc in the system) Call ExitBOBridge by passing ChildOrderIds of your BUY
When you get SHORT signal in your system Call PlaceOrder function with SignalType as "SHORT" PlaceBOBridge("NSE", "SBIN", "SHORT", 1, E7+0.1, 2, 1, 0, "SL", E7, "SHORT", TRUE, "ZG", FALSE, "")
When you want to close SHORT position (Tgt Hit, SL Hit or SqOff time etc in the system) Call ExitBOBridge by passing ChildOrderIds of your SHORT
*Use Unique CTag, so that you can retrieve the OrderId correctly Examples: For BUY orders use LONG, LNG, BBB etc For SHORT orders use SHORT, SHT, SSS etc
The Bridge functions (PlaceOrder) works on the concept of Signals.
There are 4 signals
BUY
SELL (==Buy Exit)
SHORT
COVER (==Short Exit)
When you get BUY signal in your system
Call PlaceOrder function with SignalType as "BUY"
PlaceBOBridge("NSE", "SBIN", "BUY", 1, E7+0.1, 2, 1, 0, "SL", E7, "LONG", TRUE, "ZG", FALSE, "")
When you want to close BUY position (Tgt Hit, SL Hit or SqOff time etc in the system)
Call ExitBOBridge by passing ChildOrderIds of your BUY
When you get SHORT signal in your system
Call PlaceOrder function with SignalType as "SHORT"
PlaceBOBridge("NSE", "SBIN", "SHORT", 1, E7+0.1, 2, 1, 0, "SL", E7, "SHORT", TRUE, "ZG", FALSE, "")
When you want to close SHORT position (Tgt Hit, SL Hit or SqOff time etc in the system)
Call ExitBOBridge by passing ChildOrderIds of your SHORT
*Use Unique CTag, so that you can retrieve the OrderId correctly
Examples:
For BUY orders use LONG, LNG, BBB etc
For SHORT orders use SHORT, SHT, SSS etc