Searching for a function: A reaction or spike high

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Searching for a function: A reaction or spike high

Postby arjfca » 28 Jun 2012

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 :)

User avatar
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

Postby TJ » 28 Jun 2012

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 :)
don't recall such a function... but it is easy enough to write one.


ps. you cannot read the future, so the function must be reading the prev 2 bars.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Searching for a function: A reaction or spike high

Postby arjfca » 28 Jun 2012

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


Return to “MultiCharts”