Support Board
Date/Time: Mon, 25 Nov 2024 08:05:06 +0000
Post From: Position Quantity during replay is always zero?
[2023-10-08 20:34:08] |
j4ytr4der_ - Posts: 938 |
Can't figure out what's going on here, but I'm always getting zero for my position quantity during replay, despite the Chart Statistics tab of the TAL and the Trade Window both showing the correct position quantity. The Trade Positions window however, always shows no position. I've scoured the documentation, read many threads, done tons of googling, but I'm still stuck. My simple code: s_SCPositionData PositionData; sc.GetTradePosition(PositionData); double PositionQuantity = PositionData.PositionQuantity; if(PositionQuantity == 0){ Subgraph_debug[sc.Index] = 1234; // This is just so I can see that the code does execute SCString Message1; Message1.AppendFormat("PositionQuantity: %f", PositionQuantity); sc.AddMessageToLog(Message1, 1); } Strangely however, Subgraph_debug is in fact set to 1234, so I know the code execution got there. But my message log gets nothing written to it. Any input on what's going on here? |