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
-
33:29
GameLeap RAID Shadow Legends
15 hours agoBEST ARTIFACT SETS TIER LIST (2024) - Farm This Gear! - Raid: Shadow Legends Guide
17.7K3 -
3:41
Hack
8 hours agoHow to make a mini lathe in 3 Minutes
15.5K1 -
21:27
barstoolsports
1 day agoJersey Jerry Forces Dave Portnoy into Impromptu Contract Negotiation
34.7K7 -
50:56
The Osbournes
12 days ago $1.56 earnedBEST OF OZZY: Iconic Ozzy Osbourne Moments
59.5K22 -
6:43
Vigilant News Network
1 day agoTrump Shooter's Body GONE, FBI Cleans up Biological Evidence | Beyond the Headlines
34.6K59 -
46:00
Spinnin Backfist
10 hours agoDDP SUBMITS IZZY TO RETAIN HIS BELT....FULL UFC 305 RECAP!
50.9K21 -
2:23:52
The Kirk Minihane Show
18 hours agoThe 420 Show- August 17, 2024
51K9 -
33:03
Man in America
20 hours agoTOTAL CHAOS: America’s Next Step Toward Communist Takeover w/ James Lindsay
111K145 -
LIVE
Right Side Broadcasting Network
5 days agoLIVE REPLAY: President Trump to Hold a Rally in Wilkes-Barre, PA - 8/17/24
5,104 watching -
6:33:09
SNEAKO
1 day agoNIGHTLIFE IN ALBANIA WITH ZHERKA - UFC WATCH PARTY
246K120