How to check the open position(which already bought by Algo) in the fastest way.
Whenever Algo has got a buy signal based on that position is already taken, just wanted to know how to check the open position(which already bought by Algo) in the fastest way.
We would like to any open positions before placing any new order, even if an algo gets a buy/sell signal it should not create any new order if already position exists.
Could you please advise on the above.
We would like to any open positions before placing any new order, even if an algo gets a buy/sell signal it should not create any new order if already position exists.
Can you please advise on the above query?
You can fetch open position, and check for
respective scrip.
you can place order, if algo signal and next position is matched
if(AlgoSignal==nextPostion) placeOrder(parm1.. nextPostion)