Support Board
Date/Time: Sat, 23 Nov 2024 12:22:16 +0000
Sierra Cpp BOT programming, data from two different timeframes
View Count: 164
[2024-08-19 18:50:17] |
User447251 - Posts: 2 |
Hi i looked in documentation (coding Cpp) and examples and i cant find a solution for a simple situation : I want to access OHLC bars data in code for two seperate timeframes (10seconds, and Daily) and also SMA20 and SMA8 values on them on code CPP. whats the exact functions for that please ? Thanks |
[2024-08-19 20:52:49] |
John - SC Support - Posts: 36238 |
You need to have the charts open for the different timeframes and the Moving Averages on the charts you want. Then you can access the data for those items through the following: ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Data[] / sc.Subgraph[][] For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-08-19 22:32:57] |
User447251 - Posts: 2 |
As per what i understood, sc.Subgraph[] is used to store data in first,,, while i just want read the OHLCs from charts, is there any examples ? any line of code that showcase that ? and how would you do that to read from 2 different Timeframe. I mean, if i use sc.BaseData[SC_OPEN] or sc.Open[]. Thats gonna provide me data from the main chart i have, but how to access the second chart which is in a different timeframe ? Date Time Of Last Edit: 2024-08-19 22:51:07
|
[2024-08-20 14:24:01] |
John - SC Support - Posts: 36238 |
Refer to the following: ACSIL Programming Concepts: Accessing Data from Another Chart at Second to Last Index For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: