Support Board
Date/Time: Mon, 23 Dec 2024 18:53:34 +0000
Post From: Total Daily Profit / Loss for all symbols
[2015-01-14 12:25:55] |
Marmany - Posts: 307 |
I would like to be able to access the Total Profit / Loss for all closed trades on the current day for 2 reasons: 1)I have a daily stretch profit target. If hit it makes sense to shut down for the day, but my psychology says open another trade which of course leads to a loss or sting of losses at some stage. For this reason I want to hard wire the target into an ACSIL strategy that will prevent further entries for the current day 2)At other end of scale have a facility with broker whereby all trades closed out if daily loss reaches an agreed level. The broker closes out with market orders. With an early warning alert from the ACSIL strategy I could mitigate the damage by use of stop or limit orders. The value I look for is of course available in Trade Activity Log / Trade Statistics / Daily Date / Total Profit Loss for Closed Trades. I would like to be able to access this value via a PositionData function, to which P&L for current commodity open trades can be added and implementation of 2 points above be automated in a study. We already have 2 SCPositionData Structure members that provide this type of info: DailyProfitLoss applies to current chart symbol only CumulativeProfitLoss applies to the number of days in Trade Activity Log. I keep this set to 30 days for month end reporting. Please consider adding “CumulativeProfitLoss” for all closed trades for the current day. |