Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 00:14:34 +0000



Bug when using DRAWSTYLE_BACKGROUND_TRANSPARENT

View Count: 757

[2019-08-04 11:15:44]
User722856 - Posts: 78
Dear Sierra,

I think I Found a bug when using the Drawstyle “DRAWSTYLE_BACKGROUND_TRANSPARENT” on two subgraphs, please find an example and Screenshots bellow.

As soon as I set for the first SubGraph the Drawstyle from “DRAWSTYLE_COLOR_BAR” to “DRAWSTYLE_BACKGROUND_TRANSPARENT” the second Subgraph plotting (=display) is ignored.

Code Example for better understanding & Testing:

SCSFExport scsf_Test(SCStudyInterfaceRef sc)
{
  //================================================================================
  //Subgraph Definition
  //================================================================================
  SCSubgraphRef SuGr_A = sc.Subgraph[0];
  SCSubgraphRef SuGr_B = sc.Subgraph[1];

  //=====================================================================================================================
  // Section 1 - Set the configuration Variables and Default Values
  // This section is only run once. Refer to documentation for further details.
  //=====================================================================================================================
  if (sc.SetDefaults)
  {
    //================================================================================
    //Set the Defaults for Sierra
    //================================================================================
    sc.GraphName = "Test";
    sc.StudyDescription = "Test - Bug found for SC";
    sc.GraphRegion = 0; // Use the main price graph region (0 means Chart Region 1, 1 means Chart Region 2, maximum value can be 7=Region 8)

    // Setting sc.AutoLoop to 1 (true) means looping is performed automatically. This means that if there are 100 bars in your chart, this function is called 100 times initially.
    sc.AutoLoop = 1; // 1=true

    //During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance.
    sc.FreeDLL = 0;

    //================================================================================
    //SubGraph Properties
    //================================================================================
    SuGr_A.Name = "SuGr_A";
    //SuGr_A.DrawStyle = DRAWSTYLE_COLOR_BAR;
    SuGr_A.DrawStyle = DRAWSTYLE_BACKGROUND_TRANSPARENT;
    SuGr_A.LineWidth = 1;
    SuGr_A.PrimaryColor = RGB(255, 128, 0);  //Orange
    SuGr_A.DrawZeros = false;

    SuGr_B.Name = "SuGr_B";
    SuGr_B.DrawStyle = DRAWSTYLE_COLOR_BAR;
    SuGr_B.LineWidth = 1;
    SuGr_B.PrimaryColor = RGB(255, 255, 0);  //Yellow
    SuGr_B.DrawZeros = false;

    return;
  }

  //=====================================================================================================================
  //Section 2 - Do data processing here
  //=====================================================================================================================

  //================================================================================
  // Outside & Inside Bar Range Calculations
  //================================================================================

  if (sc.Index == 1)
    SuGr_A[sc.Index] = true;
  else if (sc.Index == 2)
    SuGr_B[sc.Index] = true;
  else
  {
    SuGr_A[sc.Index] = false;
    SuGr_B[sc.Index] = false;
  }
}

Date Time Of Last Edit: 2019-08-04 11:15:57
imageImage 001.png / V - Attached On 2019-08-04 11:14:42 UTC - Size: 4 KB - 218 views
imageImage 002.png / V - Attached On 2019-08-04 11:14:46 UTC - Size: 7.07 KB - 220 views
[2019-08-05 05:39:14]
Sierra Chart Engineering - Posts: 104368
This behavior is expected because that background style causes the study to be drawn behind other graphs in the chart but we will change it for this style because it is transparent.
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
[2019-08-05 15:07:33]
User722856 - Posts: 78
Thank you - keep me updated please.
[2019-08-05 15:54:18]
Sierra Chart Engineering - Posts: 104368
If you update to version 1969 the described change has been applied.
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
[2019-08-06 06:07:53]
User722856 - Posts: 78
Thank you, i confirm that it is working now!
[2019-09-24 14:25:23]
whats1thingnow - Posts: 407
just updated my sc from 1934 to 1999... and the way the 'Draw Style > Background Transparent' behavior has changed all my charts :(


setup
- on the same chart, i have 30 studies
- 10 of them are 'color bar based on alert condition' studies with 'color bar (SG1)' > 'Draw Style > Background Transparent'
- each of these 'color bar based on alert condition' studies are added immediately next to the referenced studies for logical organization


e.g.
- studyID1
- studyID2
- studyID3
- studyID4 ('color bar based on alert condition' comparing study id 1, 2, 3)
- studyID5
- studyID6
- studyID7
- studyID8 ('color bar based on alert condition' comparing study id 5, 6, 7)
- studyID9
- studyID10
- studyID11 ('color bar based on alert condition' comparing study id 9, 10)
- studyID12 ('color bar based on alert condition' comparing study id 9, 10)
- etc


problem
before the update, because of the 'Draw Style > Background Transparent', regardless of the study order they still show up behind the other studies

after the update, i need to rearrange all these studies to be at the top in order to get them to show behind the rest of the studies and things are getting really messy

e.g.
- studyID4 ('color bar based on alert condition' comparing study id 1, 2, 3)
- studyID8 ('color bar based on alert condition' comparing study id 5, 6, 7)
- studyID11 ('color bar based on alert condition' comparing study id 9, 10)
- studyID12 ('color bar based on alert condition' comparing study id 9, 10)
- studyID1
- studyID2
- studyID3
- studyID5
- studyID6
- studyID7
- studyID9
- studyID10
- etc


i'm guessing it has something to do this update on 1969?

please help
[2019-09-24 15:06:30]
Sierra Chart Engineering - Posts: 104368
In regards to post #6 we were implementing a solution for the user who started this thread and we see the change as reasonable. We are just trying to help, so we help one user, and then we get a long complaint from another user.

You can understand how this is very frustrating for us. And then on top of this we deal with all these damn CME market data rules.

We are not making any further changes here .
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: 2019-09-26 10:57:09
[2019-09-26 09:37:50]
Sierra Chart Engineering - Posts: 104368
Actually the basic solution to this is to enable this Study Settings option for those studies which use the Background Transparent Draw Style:
Chart Studies: Settings and Inputs Tab >> Draw Study Underneath Main Price Graph (in the same Chart Region)
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