Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 07:24:27 +0000



[Locked] - memory allocation of UseTool

View Count: 1364

[2016-03-24 23:20:39]
@sstfrederik - Posts: 403
I am using UseTool to draw Volume per price as text on each bar. Each text has an unique linenumber and displays bid x ask. When loading more days of data (30 or more, on 5 min bars), this study makes SC react slower. Is there any way I can use UseTool drawing in this way and use less resources?

thanks
[2016-03-25 00:36:14]
Sierra Chart Engineering - Posts: 104368
It is not the memory use.

The way to speed this dramatically up is to use the s_UseTool::*Index members and not the DateTime members to specify the horizontal positioning.
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
[2016-03-25 01:26:19]
@sstfrederik - Posts: 403
Thanks for that. When the recalculations are done SC is fine and has good reaction so this definitely worked, however the study loading does put SC in "Not responding" for some time.

It takes minutes to load while SC does not respond.
Date Time Of Last Edit: 2016-03-25 01:58:01
[2016-03-25 02:25:58]
Sierra Chart Engineering - Posts: 104368
The question is what is causing all of that processing? Can you improve the performance of the study function?
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
[2016-03-25 02:57:35]
@sstfrederik - Posts: 403
There are no calculations that are inefficient. When I strip it down, the load is definitely coming from using s_UseTool. It is writing Bid and Ask for each bar at each pricelevel.

With s_UseTool::*DateTime members the loading is quicker. a tiny bit ...
Date Time Of Last Edit: 2016-03-25 03:08:23
[2016-03-25 03:03:30]
Sierra Chart Engineering - Posts: 104368
We do not see how we can really help with this at this time.

Using the sc.UseTool function to add all of those text drawings is not going to be efficient. ACSIL was not designed to be used to this extent.
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: 2016-03-25 03:04:30
[2016-03-25 03:05:10]
@sstfrederik - Posts: 403
Any other way of doing something like that?

I guess I could do:
if (sc.IsFullRecalculation || sc.DownloadingHistoricalData)
return;

And use the replay option if older bars need to be calculated.
Date Time Of Last Edit: 2016-03-25 03:17:35
[2016-03-25 03:16:27]
Sierra Chart Engineering - Posts: 104368
There is but it is not an interface which is fully available and supported for ACSIL for this purpose.

You have to put the data you want to display in: sc.VolumeAtPriceForBars.

However, other than some irrelevant examples, this is a largely undocumented object.

And Sierra Chart still has to support displaying that information from that object when the study is drawn. We do not know if that is easy for us to do or not.
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
[2016-03-25 03:20:24]
@sstfrederik - Posts: 403
I use this now:


int Count = sc.VolumeAtPriceForBars-> GetSizeAtBarIndex(sc.Index);
for (int ElementIndex = 0;ElementIndex < Count; ElementIndex ++){
sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, ElementIndex, &p_VolumeAtPriceAtIndex);
Bid = p_VolumeAtPriceAtIndex->BidVolume;
Ask = p_VolumeAtPriceAtIndex->AskVolume;

//useTool
}

Thanks for looking into this. Hope it can be supported at some point. For a few days of data its not a big issue.
Date Time Of Last Edit: 2016-03-25 03:22:25
[2016-03-25 03:34:45]
Sierra Chart Engineering - Posts: 104368
Actually what we have to provide is:
sc.VolumeAtPriceForStudy


This will be added to the next release but we make no promises as to whether we will get to a point near-term to document this object and to have the data in the object drawn by the 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
[2016-03-25 04:29:20]
@sstfrederik - Posts: 403
Thank you. Will,keep an eye out for that.
[2016-03-26 00:47:52]
Sierra Chart Engineering - Posts: 104368
We will try to have this supported in about two weeks, at least the basics.

Assuming there are no unexpected complications.

And we will put together a simple code example.
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
[2016-03-26 03:42:52]
@sstfrederik - Posts: 403
That is great news! Thanks for the efforts.
[2016-04-16 23:28:42]
@sstfrederik - Posts: 403
Do you have any news on creating scVolumeAtPriceForStudy? Thanks.
[2016-04-18 00:27:47]
Sierra Chart Engineering - Posts: 104368
This is going to take longer than expected and the implementation will be different.

We cannot comment on it right now.

However, there are some performance improvements when adding Chart Drawings from an Advanced Custom Study. These will be out in the next release.
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
[2016-04-19 23:04:21]
@sstfrederik - Posts: 403
Ok, thanks for the update. What would be an appropriate time period to check back in on this?
[2016-04-20 02:34:45]
Sierra Chart Engineering - Posts: 104368
Would be best to check back in about 60 days.

However, try the performance improvements in 1397.
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
[2016-11-13 18:18:12]
@sstfrederik - Posts: 403
It has been a while. Did sc.VolumeAtPriceForStudy get any attention?
[2016-11-13 19:35:15]
Sierra Chart Engineering - Posts: 104368
No. Please allow another 6 to 9 months.
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
[2021-02-07 20:11:39]
Nicolas Hervé - Posts: 14
Hi !
I know how to use the sc.VolumeAtPriceForBar but I would like to be able to read volume at price calculated by different instance of the VolumeAtPrice Study. I suppose this is the role of the sc.VolumeAtPriceForStudy, correct ?
Can you give some sample code how to use it, please ? Or just some hint ?

Thanks.
[2021-02-08 13:13:09]
Sierra Chart Engineering - Posts: 104368
No that is the Volume at Price Data for the study instance itself accessing that member. Not from another study.

There is not a way to do what you need to.
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: 2021-02-08 13:13:24

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account