| | |
| | | tryGenerateQueues(); |
| | | }else { |
| | | longPositionSize = size; |
| | | checkShortEntryOrderToCancel(); |
| | | checkLongEntryOrderToCancel(); |
| | | // checkShortEntryOrderToCancel(); |
| | | // checkLongEntryOrderToCancel(); |
| | | } |
| | | } else { |
| | | if (longActive && state == StrategyState.ACTIVE) { |
| | |
| | | tryGenerateQueues(); |
| | | }else { |
| | | shortPositionSize = size.abs(); |
| | | checkShortEntryOrderToCancel(); |
| | | checkLongEntryOrderToCancel(); |
| | | // checkShortEntryOrderToCancel(); |
| | | // checkLongEntryOrderToCancel(); |
| | | } |
| | | } else { |
| | | if (shortActive && state == StrategyState.ACTIVE) { |