Support Board
Date/Time: Mon, 01 Sep 2025 15:44:08 +0000
Trade List (Points)
View Count: 108
[2025-08-28 12:22:45] |
User688525 - Posts: 304 |
Hello Sierra Chart, Is it possible to extract the Profit/Loss in Points or Ticks via ACSIL instead of Currency ($) from the Activity Log? sc.GetTradeListEntry provides TradeProfitLoss. Thank you |
[2025-08-28 13:31:46] |
Tony - Posts: 619 |
This is what I am doing, example of ES Mini, round trip commission is $3.81: double CostPointValue = 3.81 / 50; s_ACSTrade TradeEntry; for (int TradingLogIndex {0}; TradingLogIndex<sc.GetTradeListSize(); TradingLogIndex++) { sc.GetTradeListEntry(TradingLogIndex, TradeEntry); if (TradeEntry.ExitPrice) { double NetClosedPoints {TradeEntry.ExitPrice*TradeEntry.TradeType - TradeEntry.EntryPrice*TradeEntry.TradeType - CostPointValue}; if (NetClosedPoints > 0) { TotalWinPoints += NetClosedPoints; TotalWinNumber++; } if (NetClosedPoints < 0) { TotalLossPoints += fabs(NetClosedPoints); TotalLossNumber++; } } } I don't do "scale in, scale out", so my situation is quite simple, and I also ignore the position size Date Time Of Last Edit: 2025-08-28 13:38:11
|
[2025-08-28 14:23:04] |
Sierra_Chart Engineering - Posts: 20788 |
We have checked on this, and this function does return the values as currency values: sc.GetTradeListEntry What you can do is divide these PL values by the sc.CurrencyValuePerTick and then multiply by the sc.TickSize, in order to get Points. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-08-29 15:05:02
|
[2025-08-29 11:16:27] |
User688525 - Posts: 304 |
Hi Tony, Thank you for the code. I can use this as a skeleton. Cheers |
[2025-08-29 11:16:45] |
User688525 - Posts: 304 |
Hello Sierra, Thank you for confirming. |
To post a message in this thread, you need to log in with your Sierra Chart account: