Login Page - Create Account

Support Board


Date/Time: Wed, 14 May 2025 10:53:43 +0000



Post From: Connectivity with interactive brokers

[2016-04-12 07:54:09]
enemyspy - Posts: 306
using sierra chart 1389.
-Sporadic problem where sometimes after entering a new postion the sierra chart trade window drops the information and indicates flat. However The position is still open with the broker.

-If I press the flatten button message log indicates "cannot flatten because position does not exist".

-Problem does not happen every time. Seems to correlate to times when I have started sierra chart in sim mode to test some things and then switch to live trading. Closing and re-opening sierra chart causes the position data to show up again.

-I don't think this is related but I will mention that I am using a study I coded that harnesses the sc.FlattenAndCancelAllOrders()function where I set the amount of ticks via sc.Input[] as a virtual stop so that I don't have to advertise my real stop. The entry order is placed manually accompanied by a looser emergency attached stop sent to broker.

Wondering if my code could be triggering the loss of the position data problem, or if it is a seperate problem that happens because my broker drops the connection?

It seems to correct itself if I restart the program.