Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 06:01:40 +0000



Post From: Exit signal

[2013-08-06 20:28:35]
kirstenjd - Posts: 34
Yes. I am using the Buy Exit Order Action columns on the Spreadsheet to exit the long position.
The quantity of the exit order is exactly equal to the position and the Long position gets flattened, but almost immediately a Short position is opened (quantity is equal to the above mentioned quantity.
I looked at the Trade Activity Log and saw these orders and the fills, but from that I can't make out how or why this happened.
I suspect that the exit signal became True (and an Exit signal was sent to IB)and between when the exit signal was sent and confirmation of flattening the trade was received, this True condition fluctuated between True and False and True again. This resulted that a second Exit signal landed at IB because SC has not received the signal back to change cell J8 to zero (the formula of my exit signal uses J8 to determine whether IB is in or out of a trade).
Is it possible that this has happened as I described or do you still think that something more is going on than what I am aware of? It is very important for me to understand why this has happened.
If the exit condition becomes true once, is there a way to retain that condition in that cell?