So it buys + 1 to go long. Then sells -1 to go flat, and instead of another -1 to go short, it sells -2.
The reversal code looks like this:
Code: Select all
Sell Next Bar At SellStopPrice Stop;
Sell Short Next Bar at SellStopPrice Stop;
Code: Select all
Sell Next Bar At SellStopPrice Stop;
Sell Short Next Bar at SellStopPrice Stop;
My autotrading system is somehow trading two contracts when reversing from long to short. In Strategy Properties I have the option Maximum Shares/Contracts per position set to 1, yet it opens a long position with 1 share, then reverses but for the short position sells 2 contracts.
So it buys + 1 to go long. Then sells -1 to go flat, and instead of another -1 to go short, it sells -2.
The reversal code looks like this:
This same system works fine in TS without trading a second contract. What setting am I missing?Code: Select all
Sell Next Bar At SellStopPrice Stop;
Sell Short Next Bar at SellStopPrice Stop;