Support Board
Date/Time: Thu, 28 Nov 2024 01:26:52 +0000
Post From: Programming Help - Display of cumulative PnL in points
[2023-06-17 20:45:40] |
User61168 - Posts: 403 |
Objective is to implement money management (Compounding) solution by setting a daily profit target to a % of YTD balance instead of a fixed $ or point value. To achieve this, I need a running counter of cumulative sum of all Daily PnL from the start of the chosen date range setting used under Chart Settings> "Date Range From YYYY-MM-DD" field. Ideally, I want the summation to occur on the first tick of first bar of the current day at session start instead of last bar of yesterday's chart. This way, I can account for morning and evening sessions as well if I need to. Currently, I am only trading 9:30 to 16:00 NYSE session and using Renko chart type with new bar at session open setting. EDIT: I am confirming I need the calculation to be done on the first tick of each morning/evening session. This is required because the Daily PnL Study ID10.SG1 is not printing accurate pnl value on the last bar of previous session if I have any fills made on the last bar (I notice this in market replay or not sure if this is a bug) Date Time Of Last Edit: 2023-06-17 20:52:04
|