Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 02:29:55 +0000



Post From: Unable to use drawing tool on custom chart with Bars displayed as main price

[2013-09-03 03:50:09]
maxpi - Posts: 181
I have a study that works fine, it displays bars that are greater in duration than the underlying [1T] chart. I can apply a study to the chart and it displays the study based on the bars I build as it should. I cannot apply a drawing to the chart with the mouse though. Should that be the case? The defaults are:

if (sc.SetDefaults)
  {
    // Set the defaults
    
    sc.GraphName ="ACodeThingyToTestRxCode";
    
    // This member indicates that this is a custom chart study.
    //  This can only be set when SetDefaults is true.
    sc.IsCustomChart       =1;    
    sc.GraphRegion         =0;    
    sc.DrawZeros         =0;    
    sc.GraphDrawType       =GDT_CANDLESTICK;
    sc.DisplayAsMainPriceGraph  =1;
    sc.FreeDLL           =1;
    sc.AutoLoop         =0;
    sc.ValueFormat         =VALUEFORMAT_INHERITED;
    sc.StandardChartHeader     =1;
    
    
    // Subgraphs

    Open.Name ="Open";
    Open.DrawStyle =DRAWSTYLE_LINE;

    High.Name ="High";
    High.DrawStyle =DRAWSTYLE_LINE;

    Low.Name ="Low";
    Low.DrawStyle =DRAWSTYLE_LINE;

    Last.Name ="Last";
    Last.DrawStyle =DRAWSTYLE_LINE;

    

    return;
  }


Edit: I did a little more checking, I can indeed draw a line, cannot draw a linear regression channel. Maybe if there is a problem it's just with that one tool...
Date Time Of Last Edit: 2013-09-03 03:56:41