Is there an indicator (built by the community or otherwise) that shows the price range of a candle in dollars? I'm thinking ATR set to 1 but that shows in ticks(points) and I need it in dollars.
Thanks
I have an ATR indicator in thinkscript that displays values in dollars e.g. if /ES ATR = 1 point or 4 ticks, the indicator shows 50 (12.50 per tick time 4 ticks)..please help me to format the output to dollars with 2 decimal places ($50.00)
****************************************************************************************
declare lower;
input length = 1; input averageType = AverageType.SIMPLE;
def ATR = MovingAverage(averageType, TrueRange(high, close, low), length);
def TIX = ATR / TickSize();
plot ATRD = TIX * TickValue();
ATRD.SetDefaultColor(GetColor(8));
****************************************************************************************
Thanks
I have an ATR indicator in thinkscript that displays values in dollars e.g. if /ES ATR = 1 point or 4 ticks, the indicator shows 50 (12.50 per tick time 4 ticks)..please help me to format the output to dollars with 2 decimal places ($50.00)
****************************************************************************************
declare lower;
input length = 1; input averageType = AverageType.SIMPLE;
def ATR = MovingAverage(averageType, TrueRange(high, close, low), length);
def TIX = ATR / TickSize();
plot ATRD = TIX * TickValue();
ATRD.SetDefaultColor(GetColor(8));
****************************************************************************************
Last edited by a moderator: