Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 01:47:07 +0000



Is there a way to cause chart updates with ACSIL?

View Count: 1441

[2017-01-15 02:38:50]
Sporken - Posts: 82
Is there a way to flag that a study/chart/subgraph has changed? So that referencing studies (like study/price overlays) update correctly?

I see sc.EarliestUpdateSubgraphDataArrayIndex but I cannot find any documentation on this.

Context: I wrote a study that makes subgraph replications of Line tool lines (Ray's). I then use a Study/Price overlay to copy these 'line' subgraphs from my 1 minute chart to my renko chart. This works really nicely. The lines appear correctly warped with the renko blocks. It means my trading study on the renko chart can see the line subgraphs and trade long/short against them. The problem is that the Study/Price overlay doesnt update unless I select Chart->Recalculate. I had some limited success with sc.EarliestUpdateSubgraphDataArrayIndex by always sending a decrementing value. But this doesn't seem to be 100% reliable. The only reliable way I can force an update is by manually selecting Chart->Recalculate.

Is there a better way?

Thanks again for your help.

-Jason
[2017-01-15 08:02:01]
Sierra Chart Engineering - Posts: 104368
Yes you do want to use sc.EarliestUpdateSubgraphDataArrayIndex.

Set this to the earliest Subgraph array index in the study which has been modified.

It is not necessary to set it when sc.IsFullRecalculation is true.

It should produce a very stable result when using the Study/Price Overlay study.
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-01-15 08:02:21
[2017-01-15 20:53:39]
User869667 - Posts: 12
How do i know how many times it has been calculated a study during a bar? The study only recalculates with each variation of the price and at the end of the bar?
[2017-01-15 21:08:10]
Sierra Chart Engineering - Posts: 104368
Refer to this page:
Working with ACSIL Arrays and Understanding Looping
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-01-15 21:11:22]
Sporken - Posts: 82
Thanks for your help earlier. It worked!

I've attached a pic in case you're curious what it looks like. The top chart shows the renko projection of the ray (in orange and black) and the bottom chart shows the original Ray on a 60min chart. The study is actually added to a 3rd offscreen 5min chart to make sure it gets good resolution. I do the projection there and then let the study/price overlay project the 5min subgraph onto the renko chart. Each orange/black segment is 5 mins.

Thanks again for you help

-Jason
imageOrange and black line projection.jpg / V - Attached On 2017-01-15 19:58:50 UTC - Size: 975.58 KB - 319 views
[2017-01-15 21:27:35]
Sierra Chart Engineering - Posts: 104368
Here is the documentation for this:
ACSIL Interface Members - Variables and Arrays: sc.EarliestUpdateSubgraphDataArrayIndex
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