Login Page - Create Account

Support Board


Date/Time: Sun, 12 May 2024 23:06:27 +0000



Post From: Help - can't get my ACSIL code to draw Horizontal line

[2020-04-27 01:34:09]
Flipper - Posts: 65
Hi

You have set the region you want it drawn to.

Using Drawing Tools From an Advanced Custom Study: s_UseTool::Region

so if you want to set the region you have the study on.


Tool.Clear();
Tool.ChartNumber = sc.ChartNumber;
Tool.DrawingType = DRAWING_HORIZONTALLINE;
Tool.BeginValue = In_JOR_Buy_Line.GetFloat();
Tool.LineWidth = 1;
Tool.Region = sc.GraphRegion; /// <<<<<<<<<<<<<<< This will draw to the same region as the study is applied to
Tool.LineStyle = LINESTYLE_DASH;
Tool.Color = RGB(17, 255, 57);
Tool.AddMethod = UTAM_ADD_OR_ADJUST;

else its Tool.Region = 0 to always draw on main price graph
Date Time Of Last Edit: 2020-04-27 01:40:44