Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 23:24:48 +0000



Deleting candles

View Count: 775

[2017-04-28 01:55:56]
CustomIndicators - Posts: 126
I need to be able to load a tick chart of 128 days, have it calculate my oscillator, and then remove all but the last 50 candles on the chart.

Is there a SC function that would allow me to erase candles (and study indexes), also removing them from memory? I need quite a few charts loaded for my system to work, but if all my charts have 128 days worth of tick data, SC often stops responding for a good 5 minutes or so.

Another option, would be to erase them by DateTime, so that all my charts still have the same amount of time on them. That way, backtesting would be in sync.
[2017-04-28 04:58:49]
Sierra Chart Engineering - Posts: 104368
Yes. You just need to change this:
ACSIL Interface Members - Variables and Arrays: sc.DaysToLoadInChart

Also refer to:
ACSIL Interface Members - Variables and Arrays: sc.LoadChartDataByDateRange
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
[2017-04-28 06:07:00]
CustomIndicators - Posts: 126
I know about that setting. I use it all the time. The problem is, if I have 128 days loaded, my study looks very different than when I have 5 days loaded. All my charts need to have begun at the same exact point in time, but the 10 tick chart gets completely overloaded when I have 128 days. The 100000 tick chart can handle 128 days perfectly fine without performance issues.

I need to be able to load all my charts having their starting points being 128 days back in time, but a 10 tick chart just can't handle that much data alongside over a dozen other tiny charts doing the same thing, starting 128 days back. I need to load 128 days on that 10 tick chart in order for my study to be synchronized with the 100000 tick chart. After it is loaded, and my study has caught up to the most recent events, I only need the last 50 candles for my system to work.

I need a way of removing data from the chart. I don't need to adjust how many days load. I always need to start with 128 days loaded.

I am programming in ACSIL.
[2017-04-28 07:03:08]
Sierra Chart Engineering - Posts: 104368
Why not use this and set it to 1?:

ACSIL Interface Members - Variables and Arrays: sc.DaysToLoadInChart

This will remove data from the chart because the chart will be reloaded.

Why not use this and the associated start date variable and use a later date:
ACSIL Interface Members - Variables and Arrays: sc.LoadChartDataByDateRange

Sierra Chart does not have the capability to remove data from a chart without having to reload the chart.
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
Date Time Of Last Edit: 2017-04-28 07:05:15
[2017-04-28 07:36:17]
CustomIndicators - Posts: 126
The problem with setting all charts to 1 day is that on large charts, just one candle contains multiple days worth of data. With the chart not having a minimum of 10 candles, I can't use it for my cross-chart trade confirmations.

The reason I say 128 days, is because the largest chart I use needs at least that much. In order to synchronize the flow of all the charts, they do best to all start at the same exact time.

Sadly, by the chart reloading and recalculating the study, it dumps the data that I needed.

I technically don't need the candles. All I need is the Last price from each one. If I display the study as the main price graph, do you think it would take some of the load off? The study can be reduced down to 1 float per element in the subgraph.
[2017-04-28 09:04:53]
Sierra Chart Engineering - Posts: 104368

I technically don't need the candles. All I need is the Last price from each one. If I display the study as the main price graph, do you think it would take some of the load off? The study can be reduced down to 1 float per element in the subgraph.
We would not expect any difference.
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:

Login

Login Page - Create Account