Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 14:50:59 +0000



Post From: GetTradePosition

[2014-02-12 07:58:46]
Kiwi - Posts: 375
I think I'm making a mistake in my use of this:


s_SCPositionData pd;
if(sc.GetTradePosition(pd) == 1 && pd.PositionQuantity != 0)
inTrade = 1;

SC 1086, Interactive Brokers HSI-201402-HKFE

Under chart settings the symbol is set to HSI-201402-HKFE lthough there is no Trade and Current Quote Symbol.

It works fine in replay (sim) mode but in live trading it returns zero so it never recognizes that its in a trade. I use manual looping only. Can you please advise what I should do differently?
Date Time Of Last Edit: 2014-02-12 08:01:40