Hello
I'm looking for the name of a function that return true if a bar is the highest price of the two bars on each side of it
I think I had used it few years ago, but just can't find it. If i remember, it was possible to specify the number of bar on each side.
Martin
Searching for a function: A reaction or spike high
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Searching for a function: A reaction or spike high
don't recall such a function... but it is easy enough to write one.Hello
I'm looking for the name of a function that return true if a bar is the highest price of the two bars on each side of it
I think I had used it few years ago, but just can't find it. If i remember, it was possible to specify the number of bar on each side.
Martin
ps. you cannot read the future, so the function must be reading the prev 2 bars.
Re: Searching for a function: A reaction or spike high
I just found it. The function is "Pivot". It does not return true or false, but the value of the bar that has a higher high than the bars on each side
Understand for the future reading. Actually, I'm I want to mimic an MT4 indicator called Fractal to show on a chart the Spike low and Spike high
Have a good day
Martin
Understand for the future reading. Actually, I'm I want to mimic an MT4 indicator called Fractal to show on a chart the Spike low and Spike high
Have a good day
Martin