Hi ,
I am testing an EFS I created where I open a position, and then place a stop order. When I close the position, the stop order is not removed automatically, it just hangs there.
An example of the calls I use to initiate the position is as follows (nStop and nShares are defined elsewhere):
buyMarket(getSymbol() , nShares);
sellStop(getSymbol() , nShares, nStopPrice);
The position is closed using the following function call:
closePosition(getSymbol(), nShares);
Would anyone shed somelight on what I should do to fix this problem?
Thanks in advance...
I am testing an EFS I created where I open a position, and then place a stop order. When I close the position, the stop order is not removed automatically, it just hangs there.
An example of the calls I use to initiate the position is as follows (nStop and nShares are defined elsewhere):
buyMarket(getSymbol() , nShares);
sellStop(getSymbol() , nShares, nStopPrice);
The position is closed using the following function call:
closePosition(getSymbol(), nShares);
Would anyone shed somelight on what I should do to fix this problem?
Thanks in advance...
Comment