Hello everybody,
While using the function "Highest" in Easy Language, is it possible to get the BarNumber of the specific bar that contains the "highest" price, of the N bars ago I select in this function?
My goal is to take the Bar ID of that bar, which has the highest price...
Thank you very much!
"Highest" Function / BarNumber
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: "Highest" Function / BarNumber
Look up the functionHello everybody,
While using the function "Highest" in Easy Language, is it possible to get the BarNumber of the specific bar that contains the "highest" price, of the N bars ago I select in this function?
My goal is to take the Bar ID of that bar, which has the highest price...
Thank you very much!
MRO
- ABC
- Posts: 718
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 408 times
- Contact:
Re: "Highest" Function / BarNumber
When you take a look at the Highest function code, you'll see that it just calls another function called Extremes. The latter returns both the value and the bar number of the occurrence (in bars back from the current bar!).
You can implement the function in your code exactly like the highest function does and get both values you are looking for.
Regards,
ABC
You can implement the function in your code exactly like the highest function does and get both values you are looking for.
Regards,
ABC