# Price axis custom interval by ATR?

#### yamin2000

##### New member
Is it possible price axis custom interval by atr? Mobius made this for me he miss understand me, I think this the atr levels in the indictor I post it in case some one need it.

Code:
``````# ATR Price Scale
# Mobius
# Push this lower study to the upper price chart with Left Axis Enabled

declare lower;

input length = 14;

def atr = Average(TrueRange(high, close, low), length);
plot atr1 = highestAll(if isNaN(close[-1]) then atr else double.nan);
plot atr2 = highestAll(if isNaN(close[-1]) then atr*2 else double.nan);
plot atr3 = highestAll(if isNaN(close[-1]) then atr*3 else double.nan);
plot atr4 = highestAll(if isNaN(close[-1]) then atr*4 else double.nan);
plot atr5 = highestAll(if isNaN(close[-1]) then atr*5 else double.nan);
plot atr6 = highestAll(if isNaN(close[-1]) then atr*6 else double.nan);
plot atr7 = highestAll(if isNaN(close[-1]) then atr*7 else double.nan);
plot atr8 = highestAll(if isNaN(close[-1]) then atr*8 else double.nan);
plot atr9 = highestAll(if isNaN(close[-1]) then atr*9 else double.nan);
plot atr10 = highestAll(if isNaN(close[-1]) then atr*10 else double.nan);``````