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
-
8:09
DropItLikeItsScott
14 hours ago $0.36 earnedHi Point HP-15 AR Pistol / Accuracy Test
2.17K1 -
52:59
CharLee Simons presents DO NOT TALK
5 days agoWTH is a BAD BUNNY?! Sam Anthony vs. Leftist Lunacy
3.16K11 -
14:00
Actual Justice Warrior
1 day agoBody Cam DESTROYS BLM Hoax
5.61K18 -
34:34
Steph & Kayls
19 hours ago $0.33 earnedHow We Separate Intimate Time : Personal Vs Adult Work | Ep.14
2.85K1 -
5:42
Buddy Brown
16 hours ago $1.65 earnedMessage to Chicago PD Taking Orders of TREASON Against ICE! | Buddy Brown
8.42K6 -
8:43
Michael Knowles
14 hours agoBad Bunny Demands You Learn Spanish Before Watching His Super Bowl Performance
13.6K34 -
15:23
Professor Nez
14 hours ago🚨VISIBLY SHAKING! Maxine Waters Just CONFESSED the Truth About the Shutdown
11K10 -
3:03:00
Side Scrollers Podcast
20 hours agoXbox is IN SHAMBLES + Player BANNED for MAGA Hat + H3H3 Lawsuit COOKS Reddit + More | Side Scrollers
49.1K8 -
1:09:08
MattMorseTV
19 hours ago $16.14 earned🔴Trump's MASSIVE Monday UPDATE.🔴
17.6K108 -
19:54
Forrest Galante
1 day agoPrivate Tour Of America's Best Marine Animal Facility
63.5K7