Support Board
Date/Time: Sun, 02 Feb 2025 19:45:58 +0000
Post From: How to know that IB Trade workstation position was opened by ACSIL script?
[2019-09-26 11:32:17] |
User424475 - Posts: 3 |
For example script send sc.BuyEntry on chart with symbol name = "NIFTY50 IND-OPT-20190926-11450-C-NSE-1-INR-NIFTY" IB open position with symbol name = "NIFTY50-OPT-20190926-11450-C-NSE-1-INR" now if call s_SCPositionData pd; sc.GetTradePositionForSymbolAndAccount(pd, sc.Symbol, sc.SelectedTradeAccount); pd.PositionQuantity return 0.0 quantity -------------------------------------------- symbol name on IB not equal symbol name on Sierrachart -------------- how ACSIL script can know that this position was opened using sc.BuyEntry? how figure out correct symbol name to use in call to GetTradePositionForSymbolAndAccount? |