Login Page - Create Account

Support Board

Date/Time: Sat, 25 Mar 2023 14:17:19 +0000

[Programming Help] - Retrieve P&L data of a single chart and its symbol.

View Count: 117

[2023-01-26 01:21:41]
Ticks - Posts: 128
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?
[2023-01-29 09:53:59]
Ticks - Posts: 128
34 views and posted for 3 days still no reply.
Perhaps what I'm trying to do is too advanced for SC?
[2023-02-26 19:05:25]
Ticks - Posts: 128
View Count is at 65 and almost a month has passed and no one has any idea on how to provide assistance with this request?
[2023-02-26 20:49:47]
User431178 - Posts: 227
Automated Trading From an Advanced Custom Study: sc.GetOrderByIndex

Automated Trading From an Advanced Custom Study: [Type: int] SourceChartNumber
Date Time Of Last Edit: 2023-02-26 20:54:45

To post a message in this thread, you need to log in with your Sierra Chart account:


Login Page - Create Account