Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 13:44:17 +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;
    }