Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 00:15:22 +0000



Post From: s_SCPositionData Version 1254 SIM-Mode, Replay Mode, LiveMode

[2015-05-20 19:07:56]
sbsierra - Posts: 71
The values are correct in the TradeStatistics Tab.
Symbol is GC (Gold Future, CTS-T4)

I use the following code for my Logfile as shown above:

###
s_SCPositionData PositionDataAfterEntries;

double MaximumOpenPositionProfit = -1.00;
double MaximumOpenPositionLoss = -1.00;

MaximumOpenPositionProfit = PositionDataAfterEntries.MaximumOpenPositionProfit;
MaximumOpenPositionLoss = PositionDataAfterEntries.MaximumOpenPositionLoss;

SCString ProfitDebug;
ProfitDebug.Format("ProfitDebug %.2f MaximumOpenPositionLoss %.2f CurrentStop1 %.2f",
    MaximumOpenPositionProfit, MaximumOpenPositionLoss, CurrentStop1 );
sc.AddMessageToLog(ProfitDebug, 0);
###

CurrentStop ist correct, which is done via "s_SCTradeOrder CurrentOrder;"