Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 19:27:47 +0000



VolumeAtPriceThresholdAlertV2 why use it all AVAILABLE Subgraphs?

View Count: 700

[2018-06-11 22:28:11]
TedMar - Posts: 189
Hi, im not undersatnd why is all Subgraphs use needed ? What is the reson?
Example: Studie8.cpp
scsf_VolumeAtPriceThresholdAlertV2


if (sc.SetDefaults)
.....
.....
for (int SubgraphIndex = 0; SubgraphIndex < SC_SUBGRAPHS_AVAILABLE - 13; ++SubgraphIndex)
    {
      SCString SubgraphName;
      SubgraphName.Format("Trigger %d", SubgraphIndex);

      sc.Subgraph[SubgraphIndex].Name = SubgraphName;
      sc.Subgraph[SubgraphIndex].PrimaryColor = RGB(255, 128, 0);
      sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_FOR_CANDLESTICK;
      sc.Subgraph[SubgraphIndex].LineWidth = 8;
      sc.Subgraph[SubgraphIndex].DrawZeros = 0;
      sc.Subgraph[SubgraphIndex].DisplayNameValueInWindowsFlags = 0;
    }

in fact when a Bar have more as 60 Price Levels with ThresholdAlert (true) , then all Allerts over 60 Subgraphs no displayed on BAR.

I tryed output over one graph only , but i get only 1 Price level alert.
[2018-06-12 00:15:50]
Sierra Chart Engineering - Posts: 104368
A study subgraph can only draw one line/object at each chart bar. So if we want to highlight multiple price levels where the condition is true, we need to use a separate subgraph for each price level.
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
[2018-06-12 06:39:24]
TedMar - Posts: 189
Any way or idea to resize Subgraph Array ?
[2018-06-12 18:31:23]
Sierra Chart Engineering - Posts: 104368
The resizing of a Study Subgraph array, when it comes to the number of elements timewise along the horizontal axis, is automatically resized as needed to match the main price bars.

Also refer to:
ACSIL Interface Members - Variables and Arrays: sc.IsCustomChart
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: 2018-06-12 18:31:42

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

Login

Login Page - Create Account