Support Board
Date/Time: Thu, 28 Nov 2024 19:51:51 +0000
[Programming Help] - How to get a running total of sc.NumberOfTrades since session start?
View Count: 255
[2023-04-11 15:40:38] |
C_Money - Posts: 65 |
Hello, I'm trying to make my own version of the Number Of Trades indicator but can't figure out how to get the total number of trades since the session start. I understand the following will give me the number of trades per bar: Subgraph_NumTrades[sc.Index]= sc.NumberOfTrades[sc.Index];
But I am unsure what replace sc.Index with so that it gets me a total instead. |
[2023-04-11 17:37:15] |
User431178 - Posts: 544 |
But I am unsure what replace sc.Index with so that it gets me a total instead.
It doesn't work like that.Take a look at "Cumulative Daily Volume" study in studies8.cpp (instructions to find a link below) for one example of how you might do this. How to Build an Advanced Custom Study from Source Code: Searching for Source Code for Sierra Chart Built-In Studies |
To post a message in this thread, you need to log in with your Sierra Chart account: