Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 11:12:48 +0000



Post From: Bug in sc.GetFlatToFlatTradeListEntry()

[2022-04-11 09:34:48]
Trader & Sierra++ developer - Posts: 110
Hi Sierra,

There is a problem with sc.GetFlatToFlatTradeListEntry() : EntryQuantity and ExitQuantity are always set to MaxOpenQuantity during the life of the ftf trade.

Let's take an example, starting flat :
BUY 1 => EntryQuantity=1, ExitQuantity=1, MaxOpenQuantity=1
BUY 1 => EntryQuantity=2, ExitQuantity=2, MaxOpenQuantity=2
SELL 1 => EntryQuantity=2, ExitQuantity=2, MaxOpenQuantity=2
SELL 1 => EntryQuantity=2, ExitQuantity=2, MaxOpenQuantity=2

Actually, whatever you do, you always get EntryQuantity = MaxOpenQuantity and ExitQuantity = MaxOpenQuantity.

At each step, the Trade Activity Log window shows correct data.

I discovered this using a recent SC version ; I've just updated to the last one (2382) and have the exact same issue.

+ another bug : the AverageExitPrice starts at 0 and then stays fixed to the first exit price.