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
-
4:19
PistonPop-TV
6 days ago $2.34 earnedThe 4E-FTE: Toyota’s Smallest Turbo Monster
11.2K -
43:07
WanderingWithWine
6 days ago $1.29 earned5 Dreamy Italian Houses You Can Own Now! Homes for Sale in Italy
9.84K2 -
LIVE
Spartan
21 hours agoFirst playthrough of First Berserker Khazan
246 watching -
28:01
Living Your Wellness Life
2 days agoTrain Your Hormones
12.5K -
43:28
The Heidi St. John Podcast
1 day agoFan Mail Friday: Faith Over Fear and Finding Strength in Every Season
6.79K -
1:05:30
SGT Report
1 day agoTHE HORRIBLE TRUTH ABOUT EVERYTHING -- Harley Schlanger
48.7K91 -
11:04
Blackstone Griddles
17 hours agoCountry Fried Steaks on the Blackstone Griddle
92.7K14 -
49:47
Brad Owen Poker
1 day agoI Get My First BIIGGG Win! $25,000+ Buy-in! HORSE Championship! Don’t Miss! Poker Vlog Ep 324
17K1 -
9:53
Rethinking the Dollar
1 day agoWhen Detroit Bleeds, America Suffer! Layoffs Have Begun
20.8K32 -
18:36
Clownfish TV
1 day agoYouTube Just NERFED YouTube Gaming... | Clownfish TV
23.3K32