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
-
28:46
DeVory Darkins
14 hours ago $14.75 earnedPritzker HUMILIATED after brutal fact check as Democrat candidate calls for political assassination
24.4K96 -
19:54
Forrest Galante
11 hours agoPrivate Tour Of America's Best Marine Animal Facility
37.7K7 -
9:25
MattMorseTV
1 day ago $18.58 earnedSupreme Court just DROPPED a NUKE.
32.3K69 -
13:25
Nikko Ortiz
1 day agoWorst Karen TikTok Fails
32.9K10 -
40:24
The Connect: With Johnny Mitchell
2 days ago $22.21 earnedInside The WORST Drug-Infested Slums Of Medellin, Colombia
72.9K30 -
4:14
GritsGG
17 hours ago2 Warzone Easter Eggs! How to Find Them EASILY!
24.4K2 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
366 watching -
1:45:43
Man in America
17 hours agoThe DISTURBING Truth About Parasites — Live Q&A w/ Dr. Jason Dean
91.4K42 -
7:13:47
SpartakusLIVE
13 hours ago#1 Mountain of Muscle with HUGE Legs saves your weekend from complete BOREDOMNight HYPE
52.8K1 -
47:42
Sarah Westall
14 hours agoFreedom or Slavery? AI will Change Everything w/ Trump Senior Advisor Marc Beckman
71.1K18