Support Board
Date/Time: Thu, 28 Nov 2024 01:47:57 +0000
Post From: Programming Help - Display of cumulative PnL in points
[2023-06-17 02:12:07] |
User61168 - Posts: 403 |
Hi, I am embarrassed to ask why is this simple logic is not working. Objective: To cumulatively keep a running count of my total (realized) PnL in Points across all bars loaded in my chart. This is similar to Account Balance in points reflecting PnL from day1 of the date range selected in chart settings Studies in use: ID10.SG1=Trading Daily Profit/Loss, ID19.SG1=Bar Numbering (resets at start of session to value=1), ID18.SG1=Spreadsheet Formula Study to calculate running Account Balance in Points (i.e. realized PnL) as of Yesterday's closing session. All studies are displayed in Chart region2 Formula: IF(ID19.SG1=1,ID10.SG1[-1]+ID18.SG1[-1],ID18.SG1[-1]) Date Time Of Last Edit: 2023-06-17 02:13:14
|