Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 11:27:45 +0000



Post From: How to set ChartRegion of study correctly?

[2023-03-20 11:01:36]
User92573 - Posts: 483
Dear Support

My ascil default code sets the sc.GraphRegion as described but when the study is added it's placement is still the last study region + 1 as
opposed to over the existing study.


  if (sc.SetDefaults)
  {
    // Set the configuration and defaults

    sc.GraphName = "My_Study";

    sc.ValueFormat = VALUEFORMAT_INHERITED;
    sc.AutoLoop = 1;
    sc.GraphRegion = 1; // if there is already a study in region 1 or 2 etc the study is still being placed in last study + 1?
    sc.CalculationPrecedence = LOW_PREC_LEVEL;

Any thoughts as to why this might be?

Many thanks.