Login Page - Create Account

Support Board


Date/Time: Thu, 26 Sep 2024 23:30:02 +0000



Post From: How to make MARKER_ARROWUP point to bottom of bar?

[2016-06-08 04:11:24]
skelcap - Posts: 139
I have similar code to the example scsf_UseToolExampleMarker:


Tool.DrawingType = DRAWING_MARKER;
Tool.MarkerType = MARKER_ARROWUP;
Tool.BeginValue = sc.Low[BarIndex];

I want the TIP of the arrow point exactly to the low of the bar. It seems that the default behavior is for the MIDDLE of the arrow shaft to lie on the BeginValue. I tried setting Tool.DrawFromEnd = 1 but that didn't seem to do anything. I tried to dynamically offset the BeginValue from the low as a multiple of the Tool.MarkerSize and TickSize but the result is not satisfactory since the placement varies according to the market and scale/barspacing. Wondering if there is an easier way I'm missing?