Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 02:04:28 +0000



[Programming Help] - SIM (replay) sc.GetTradeListEntry() not returning trade info

View Count: 141

[2024-09-12 11:37:37]
skalaydzhiyski - Posts: 58
Hi guys,

As part of my backtesting using market replay I need to track my closed trades, but for some reason sc.GetTradeListEntry() does not seem to return trade info while replaying charts in SIM.
I can see the trades in the Trade Activity, but when trying to retrieve them with sc.GetTradeListEntry() from ACSIL during replay (by retrieve I mean I get the tradelistsize() and iterate over it to get all trade entries) -> I get the right number of trades for which TradeType is correct (Long/Short), but not the quantity nor PNL, they both come out as 0...

Any ideas what I might be doing wrong ?
Date Time Of Last Edit: 2024-09-12 11:38:46
[2024-09-13 10:44:52]
skalaydzhiyski - Posts: 58
Ignore this, I'm a silly monkey, was printing %d when the PnL is double...

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account