Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 13:11:00 +0000



Post From: Retrieve P&L data of a single chart and its symbol.

[2023-01-26 01:21:41]
Ticks - Posts: 174
Is it possible to just limit/retrieve the information of a trade to just the chart it was open and closed on?
I need to create a study that tracks the open and closed P&L data of just the symbol of the chart that it is applied to.

I will keep track of each trade closed P&L in a persistent variable.

If I have example two ES charts open and I have an open trade in each chart.
I want this study to only concern itself with the P&L data of the chart it is on.

Would anyone have a code snippet,SC code example, or SC help page to limit the trade information to just the current chart and symbol?