Login Page - Create Account

Support Board


Date/Time: Sat, 18 Apr 2026 17:53:26 +0000



Drawing routines fail in latest Sierra Chart version

View Count: 29

[2026-04-18 10:00:04]
User787032 - Posts: 38
I have several indicators that use the same routines that allow users to select a drawstyle when placing signals on the chart. These routines were working correctly up to and including release 2895, but now they no longer plot on the chart.
The routines are coded as follows:

void markIt3(SCStudyGraphRef sc, int y)
{              
            sc.Subgraph[y].Name        = "MomData";            
            sc.Subgraph[y].LineWidth      = sc.Input[5].GetInt();
            sc.Subgraph[y].PrimaryColor    = sc.Input[8].GetColor();
            return;
}
void mStyle(SCStudyGraphRef sc, int jj, int k)
{  
  switch ( jj )
  {
    case 0:  sc.Subgraph[k].DrawStyle = DRAWSTYLE_DASH; break;
    case 1:  sc.Subgraph[k].DrawStyle = DRAWSTYLE_RIGHTHASH; break;
    case 2:  sc.Subgraph[k].DrawStyle = DRAWSTYLE_LEFTHASH; break;    
    case 3: sc.Subgraph[k].DrawStyle = DRAWSTYLE_POINT; break;
    case 4: sc.Subgraph[k].DrawStyle = DRAWSTYLE_TRANSPARENT_CIRCLE_VARIABLE_SIZE; break;
    case 5: sc.Subgraph[k].DrawStyle = DRAWSTYLE_CIRCLE_HOLLOW_VARIABLE_SIZE; break;    
    case 6: sc.Subgraph[k].DrawStyle = DRAWSTYLE_SQUARE; break;
    case 7: sc.Subgraph[k].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_FOR_CANDLESTICK; break;
    case 8: sc.Subgraph[k].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_RIGHT_FOR_CANDLESTICK; break;
    case 9: sc.Subgraph[k].DrawStyle = DRAWSTYLE_TRIANGLEUP; break;
    case 10: sc.Subgraph[k].DrawStyle = DRAWSTYLE_TRIANGLEDOWN; break;
    case 11: sc.Subgraph[k].DrawStyle = DRAWSTYLE_TRIANGLEDOWN; break;
    default: sc.Subgraph[k].DrawStyle = DRAWSTYLE_DASH;
  }
  return;  
How do these have to be modified in order to work in release 2899?

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

Login

Login Page - Create Account