- Topics: 5
- Replies: 317
- Posts: 322
I’m not sure if this is 100% what you are after, but it may help point you to the right direction.
//Set the All Time High
ATH = HIGHESTHIGH(RANGE=All Time) ;
//Set the All Time Low
ATL = LOWESTLOW(RANGE=All Time) ;
//Display as a percentage value the position of the close within the Range of the ATH and ATL
((CLOSE() - ATL) * 100) / (ATH - ATL)
This is how it looks on a chart (Show View):
So the ATH value would equal 100 and the ATL would equal 0. The close position of each bar is represented as a percentage within the range of those two prices.