Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 11:36:09 +0000



Post From: How to create Gann Grid drawing from study

[2015-09-11 22:05:01]
T29_Dev1 - Posts: 22
Hi,

I try to create a Gann Grid drawing from my study:



s_UseTool tool;

tool.ChartNumber = sc.ChartNumber;
tool.DrawingType = DRAWING_GANNGRID;

tool.BeginDateTime = sc.BaseDateTimeIn[sc.ArraySize - 40];
tool.EndDateTime = sc.BaseDateTimeIn[sc.ArraySize - 2];
//tool.BeginIndex = sc.ArraySize - 40;
//tool.EndIndex = sc.ArraySize - 2;
tool.BeginValue = sc.BaseDataIn[SC_LOW][sc.ArraySize - 40];
tool.EndValue = sc.BaseDataIn[SC_HIGH][sc.ArraySize - 2];

tool.UseToolConfigNum = 1;

tool.AddMethod = UTAM_ADD_OR_ADJUST;

int rr = sc.UseTool(tool);

but UseTool returns false (code works fine for DRAWING_RECTANGLEHIGHLIGHT).
Is it possible to create this drawing? or I do something wrong?

Thanks.