Support Board
Date/Time: Sat, 11 Jan 2025 02:07:58 +0000
[Programming Help] - ASCIL: Reference the last closed bar from other timeframe chart
View Count: 881
[2016-10-28 13:50:12] |
User129630 - Posts: 22 |
I am working on a trading system which takes action after a bar is closed from the main chart. I have other timeframe charts which I'd like to reference their last closed bar (for data such as Open, High, Low, Last, Volume, # of Trades, OHLC Avg, HLC Avg, etc ... ). That is, I'd like to work with the closed bar values only from all charts. Currently, I can get the last closed bar data from my main chart, but not the other timeframe charts. I can get the closest reference index from the other timeframe chart using function like sc.GetNearestMatchForSCDateTime. However, this reference index is not the last closed bar index but the current active index. Upon closing bar of my main chart, is there a way to get the last closed bar of the other timeframe chart(s)? |
[2016-10-28 14:24:40] |
Marek F - Posts: 244 |
I also work with reference of the last closed bar from other timeframes. Could use a simple way to get the last closed bar data from other timeframe. Thanks |
[2016-10-28 17:53:42] |
Sierra Chart Engineering - Posts: 104368 |
We put together an example for this here: http://www.sierrachart.com/index.php?page=doc/ACSILProgrammingConcepts.html#AccessingDataFromAnotherChartAtSecondToLastIndex Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to 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: