script for ATH/ATR % levels

Hi Everyone

do anybody knows how to script all % levels of ATH/ATR.

so far I could only managed to create 50% ATH/ATR

Codes are as followed

50% All time Range

P1 = LOWESTLOW(RANGE=All Time) ; P2 = HIGHESTHIGH(RANGE=All Time) ; (P1 + P2) / 2

50% All time high

HIGHESTHIGH(RANGE=All Time)*0.50

I would like to create a script that would have multiple levels in one. such as 16.6%, 25%, 33.3%, 38.2%, 50% and so on.

TIA

Hi Abasaheb,

It really helps us help you if you post the script and screenshot that you have created thus far. Then we can see what you are trying to achieve and add from there.

Cheers

Trevor