Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 08:38:34 +0000



Post From: Custom scale for each instrument

[2014-08-06 17:44:41]
vegasfoster - Posts: 444
Ok, I tried this but crashing SierraChart every time, hmmmm


int i=0;
  while(i<20)
    {
      SCString sym1 = sc.Input[i].GetString();
      SCString sym2 = "*";
      SCString sym3 = sym1 + sym2;
    
      if(match(sym3, sc.Symbol))    
      {
        sc.BaseGraphScaleIncrement = sc.Input[i+1].GetInt()*sc.TickSize;
        break;    
      }  
    i+2;
    }