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
-
26:49
Alexis Wilkins
9 hours agoBetween the Headlines with Alexis Wilkins: Michael Cohen on Tik Tok, Free Speech, AR Lectern, FDNY
11.7K14 -
1:53:34
Fresh and Fit
21 hours agoSulaiman Ahmed And Destiny Debate Israel Palestine Conflict!
138K256 -
1:35:13
Roseanne Barr
7 hours agoGuns And Chardonnay | The Roseanne Barr Podcast #46
45.2K95 -
58:25
The StoneZONE with Roger Stone
5 hours agoWill America’s Population Die? Is America Caught In A Death Spiral? Kevin Dolan Enters The StoneZONE
27.4K22 -
1:21:14
Glenn Greenwald
7 hours agoPost-9/11 "Terrorism" Hysteria Returns With a Vengeance | SYSTEM UPDATE #266
56.8K198 -
1:09:36
Tucker Carlson
5 hours agoAdvice to Men: Reject Sex, Parties, and Fame. Embrace God Instead.
101K103 -
2:39:51
ZeroHedge
6 hours agoThe Great Crypto Vs Gold Debate
31.7K17 -
2:14:33
The Quartering
12 hours agoThe Heartbreaking State Of Men! w/ Better Bachelor
62.4K53 -
1:07:48
Edge of Wonder
7 hours agoCIA Docs About Vampires, Alien Encounters, Antarctica & More Weird News
34.5K17 -
1:37:39
2 MIKES LIVE
9 hours ago#61 2ML Open Mike Friday with special guest Glenn Curry!
28.4K1