PublicFunctions has these methods:
PublicFunctions.ExtremeHigh( this ISeries<double> seria, this int length, this int offset, this ref int extremeBar) - The function calculates extremum high value.
and
PublicFunctions.Highest( this ISeries<double> seria, this int length, this int barsback) - The function calculates the highest series value.
What is a difference between the methods? And what do the parameters "offset" and "barsback" mean?
Thanks.
ExtremeHigh and Highest methods [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: ExtremeHigh and Highest methods [SOLVED]
Hello curiousMan,
"Highest" searches for the maximum value on [ BarsBack; BarsBack + length ) interval.
The result is "BarOffset" bars back from the "BarsBack" value.
"ExtremeHigh" searches for the maximum value on [ currentBar; currentBar + length ) interval.
"ExtremeBar" value is calculated as offset + num, where "offset" - value passed to function, "num" - identified offset of extremum relative to the current bar.
"Highest" searches for the maximum value on [ BarsBack; BarsBack + length ) interval.
The result is "BarOffset" bars back from the "BarsBack" value.
"ExtremeHigh" searches for the maximum value on [ currentBar; currentBar + length ) interval.
"ExtremeBar" value is calculated as offset + num, where "offset" - value passed to function, "num" - identified offset of extremum relative to the current bar.
-
- Posts: 5
- Joined: 12 Jan 2015
- Has thanked: 1 time
Re: ExtremeHigh and Highest methods
Thank you Henry! It would be great if such explanations appear in the Help instead of "calculates extremum high value"!