Support Board
Date/Time: Sat, 15 Mar 2025 07:37:53 +0000
Post From: s_SCPositionData Variable .OpenProfitLoss Does Not Return Correct Value On Sim Mode
[2022-07-08 10:59:55] |
|
Due to how everything is structured internally in the case of simulated trading, it probably is not possible to determine the Open Profit/Loss, when you specify a symbol for a position different than the symbol of the chart the trading study is on which is making the call. In which case we just have to set it to 0. You can calculate this yourself by obtaining the current pricing data: ACSIL Interface Members - Functions: sc.GetSymbolDataValue() 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2022-07-08 11:01:05
|