Calculate bars since last high  [SOLVED]

Questions about MultiCharts and user contributed studies.
brunor
Posts: 65
Joined: 11 Feb 2013
Has thanked: 24 times
Been thanked: 6 times

Calculate bars since last high

Postby brunor » 29 Jan 2015

I am trying to calculate the number of bars since the last x-bar high occured using:

Code: Select all

Highest(H, Lookback)
.

I have looked at a few functions (Barnumber, Date, etc) but would appreciate
a hint on how to approach this.

Thank You.
Bruno

orion
Posts: 250
Joined: 01 Oct 2014
Has thanked: 65 times
Been thanked: 104 times

Re: Calculate bars since last high  [SOLVED]

Postby orion » 29 Jan 2015

See highestBar()

brunor
Posts: 65
Joined: 11 Feb 2013
Has thanked: 24 times
Been thanked: 6 times

Re: Calculate bars since last high

Postby brunor » 30 Jan 2015

Worked out perfectly.
Thanks Orion.


Return to “MultiCharts”