Premium Only Content

Tutorial 194 | Drawing vertical lines to left and right of a clicked bar
A Gold Pass Member asked how he would go about drawing vertical lines, 26 bars left and 26 bars right from a bar chosen by a mouse click.
Such an analysis technique needs three elements:
1) To be able to detect when a bar is clicked on the chart
2) To clear vertical lines drawn when a previous bar was clicked
3) To create and draw vertical line drawing objects
In this tutorial, rather than hard-coding the number of bars before and after the bar clicked, the number is determined by a user input (Gap) as are the weight and thickness of the vertical lines.
The colors of the lines are hard-coded but could easily be changed (see the tutorial video).
Technical lessons include:
Using the ChartingHost class to determine when a bar is clicked
Creating BNPoints for the bars where we draw Vertical lines
Clearing and adding VerticalLines to the chart
Modifying the weight and style of the vertical lines
-
39:19
The Heidi St. John Podcast
3 days agoFirst Fan Mail Friday: From the White House to Your Questions
4.17K5 -
LIVE
BEK TV
23 hours agoTrent Loos in the Morning - 9/23/2025
172 watching -
24:12
Michael Feyrer Jr
23 hours agoWe Stream to TikTok! How we did it! Week 2 #Stream10k
3.89K2 -
35:33
Anthony Rogers
17 hours agoBourbon and Beyond (2025)
4.9K1 -
33:30
The Bryce Eddy Show
4 days ago $0.18 earnedMonty Bennett: HERO Model to Fight Crime
12.3K3 -
0:41
Living Your Wellness Life
3 days agoThe Prime-Years Transition
6.39K -
LIVE
The Bubba Army
22 hours agoJimmy Kimmel's Back - Bubba the Love Sponge® Show | 9/23/25
1,506 watching -
34:15
Actual Justice Warrior
2 days agoIlhan Omar CHEERS Charlie Kirk's Murder
53.8K81 -
12:13
itsSeanDaniel
1 day agoMAGA Senator STANDS UP for Charlie Kirk and Free Speech
37.9K22 -
30:39
Comedy Dynamics
1 month agoBest of Jim Breuer: And Laughter for All
132K4