Label showing how many pips between bands


Category:
0
0

Is there a way to show a label or bubble with the amount of pips between both bands?

#Code:
input displace = 0;
input length = 20;

plot LowerBand = Lowest(low[-displace + 1], length);

plot UpperBand = Highest(high[-displace + 1], length);

RESOLVED
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on June 22, 2020 1:05 pm
32 views
0
Private answer

The name of the function we need for this is TickSize(). Details here:

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Others/TickSize

AddLabel(yes, (upperBand - lowerBand) * TickSize(), Color.WHITE);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 22, 2020 3:54 pm