// change plot color
if ((profit + Position.GetProfitLoss(Close[0], PerformanceUnit.Currency)) >= 0)
StrategyPlot(0).Plots[0].Pen.Color = Color.Blue;
else
StrategyPlot(0).Plots[0].Pen.Color = Color.Red;
// historical PNL
StrategyPlot(0).Name ="PNL Today\n";
StrategyPlot(0).Value.Set(profit + Position.GetProfitLoss(Close[0], PerformanceUnit.Currency));
Comment