Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 22:46:28 +0000



Post From: Subgraph display bug?

[2017-07-25 14:45:59]
User540518 - Posts: 6
Hi,

Is there a known display bug when .DrawZeros is set to false?

I've written a study that draws Harmonic Gartley patterns using Subgraphs. So the subgraph settings look something like this:

 
    BuyGartleyLine.Name = "Buy Gartley";      //stores the main Bullish Gartley M pattern, drawn using solid lines 
    BuyGartleyLine.DrawStyle = DRAWSTYLE_LINE; 
    BuyGartleyLine.LineStyle = LINESTYLE_SOLID; 
    BuyGartleyLine.LineWidth = 2; 
    BuyGartleyLine.DrawZeros = false; 
    BuyGartleyLine.PrimaryColor = RGB(0, 255, 255);    //Light blue 
 
    BuyGartleyBofXAandDofBC.Name = "Buy Gartley BofXA and DofBC";//stores the BofXA and DofBC fib lines, drawn using dashed lines 
    BuyGartleyBofXAandDofBC.DrawStyle = DRAWSTYLE_LINE; 
    BuyGartleyBofXAandDofBC.LineStyle = LINESTYLE_DASH; 
    BuyGartleyBofXAandDofBC.LineWidth = 1; 
    BuyGartleyBofXAandDofBC.DrawZeros = false; 
    BuyGartleyBofXAandDofBC.PrimaryColor = RGB(0, 255, 255);//Light blue 

When there is only one drawn pattern visible on the screen, it displays correctly and the ".Drawzeros = false" takes effect. See attached "CorrectWithOneDrawing.JPG"

When there are two patterns visible on the screen, Sierrachart is drawing a connecting line. See attached "IncorrectWithTwoDrawings.jpg".

You can clearly see that in the Chart Values window, the subgraph .Data[] indexes are clearly zero, as intended by ".Drawzeros = false". However, SierraChart is still drawing a connecting line between the two patterns.

I've already tried to manuall set the .Data[] indexes to zero both before and after the subgraph array indexes that have values, still doesnt work.

Is this a bug? if so how do I work around it?

Thanks,

Mike
Date Time Of Last Edit: 2017-07-25 14:49:02
imageCorrectwithOneDrawing.JPG / V - Attached On 2017-07-25 14:45:40 UTC - Size: 172.83 KB - 343 views
imageincorrectwithtwodrawings.JPG / V - Attached On 2017-07-25 14:45:46 UTC - Size: 214.12 KB - 358 views