Premium Only Content

Tutorial 182 | Highest pivot within user input number of bars
Tutorial 182 demonstrates a EasyLanguage Show-me study that calculates the pivot with the highest value WITHIN a user input number of bars of the current bar (user input: LookbackBars). (N.B. This is different from finding the highest pivot value on the chart.) Each time a pivot is found it is plotted. The bar number and the price level are stored in a dictionary.
At the end of each bar the dictionary is traversed and index/values pairs where the pivot occurred more than user input LookBackBars ago are deleted. The dictionary values are then copied into a vector (named Values) which is sorted to find the highest value using the Markplex _VectorQuickSort function. This value is plotted.
More information about the _VectorQuickSort function, which uses a recursive method can be found at: https://markplex.com/free-tutorials/t...
The tutorial program and the _VectorQuickSort function are available for download at no cost to Gold Pass members.
This tutorial does not work with MultiCharts.
-
LIVE
Nikko Ortiz
1 hour agoLIVE - Trying Rumble Studio!
238 watching -
9:30
Sugar Spun Run
4 hours agoBlack and White Cookies
701 -
2:45
SLS - Street League Skateboarding
4 days agoManny Santiago's 'THIS IS 40' Part
2.14K1 -
6:40
Homesteading Family
5 days agoNever Make Pie Crust From Scratch Again (Do THIS Instead)
1.3K1 -
44:20
Melissa K Norris
3 days ago $0.20 earnedThe Most Overlooked Way to Preserve Food for Months (No Freezer Needed) w/ Sam Knapp
5851 -
23:00
Tony Jeffries
6 days agoThe Best & Worst Boxing Training Methods (Ranked by Olympic Boxer)
218 -
44:44
Scammer Payback
17 days agoCrazy Confrontation with Hacked Scammer Group
29.5K19 -
1:15:13
Steven Crowder
3 hours agoIt Isn't Both Sides: They Crossed The Rubicon When They Killed Charlie
147K244 -
LIVE
The Rubin Report
1 hour ago'Real Time' Crowd Goes Quiet as Bill Maher & Ben Shapiro Have a Tense Exchange About Charlie Kirk
2,906 watching -
1:49:25
Benny Johnson
2 hours agoTrump Launches 'Major Investigation' of Leftist Plot in Charlie Kirk Murder, FBI New Evidence…
32K61