Support Board
Date/Time: Sun, 24 Nov 2024 12:33:54 +0000
Post From: ACSIL Trade Fill List
[2014-05-04 14:48:56] |
QnReally - Posts: 181 |
Thanks for the update. I was trying to see what the position quantity was and I am always getting a 1 during the replay of my charts regardless of my current position and regardless of if I am long or short. Is that expected? s_SCPositionData PosData;
if (sc.GetTradePosition(PosData) != 1) return; Buffer.Format("Position = %d", PosData.PositionQuantity); sc.AddMessageToLog(Buffer, 0); This prints: Position = 1 The Chart Trade Window shows the correct position. Unless I am doing something obviously wrong in the code, how can I reliably get the current position when I am in Live, Simulation, or Replay mode? Thanks. |