Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 10:16:31 +0000



Post From: ACSIL Pitchfork code not working as expected

[2015-07-27 16:43:52]
swandro - Posts: 11
I am trying to draw a Pitchfork from ACSIL but it is not drawing the upper and lower lines, as shown in the chart image.

http://www.sierrachart.com/image.php?l=1438015103896.png

Here is the code I have written. Can you tell me what's wrong?

  s_UseTool Tool ;        
  Tool.Clear() ;
  Tool.ChartNumber = sc.ChartNumber ;
  Tool.DrawingType = DRAWING_PITCHFORK;
  Tool.LineNumber = 1039404905 ;
  Tool.BeginIndex = sc.Index-30;
  Tool.EndIndex = sc.Index-10 ;
  Tool.ThirdIndex = sc.Index-8 ;
  Tool.BeginValue = sc.High[sc.Index-30] ;
  Tool.EndValue = sc.High[sc.Index-10] ;
  Tool.ThirdValue = sc.Low[sc.Index-8] ;
  Tool.LineStyle = LINESTYLE_SOLID ;
  Tool.Color = CYAN;
  Tool.AddMethod = UTAM_ADD_OR_ADJUST ;
  sc.UseTool(Tool) ;