ziongotoptions
Active member
I love this indicator,
https://usethinkscript.com/threads/...tance-indicator-for-thinkorswim.158/#post-878
I was wonder would it be possible to add chart labels that display the slope/angle of the resistance trendline above the current pivot high and the support trendline below the current pivot low?
Heres what ive come up with so far for the support trendline , only issue is the chart bubble is blacked out
def srun = if pivotlow then 1 else srun[1] +1;
def srise = if pivotlow then low - getvalue(low,srun[1]) else double.NaN;
def sslope2 = srise/srun[1];
addchartBubble(pivotlow,low,sslope2, if sslope2 >0 then color.GREEN else color.PINK);
https://usethinkscript.com/threads/...tance-indicator-for-thinkorswim.158/#post-878
I was wonder would it be possible to add chart labels that display the slope/angle of the resistance trendline above the current pivot high and the support trendline below the current pivot low?
Heres what ive come up with so far for the support trendline , only issue is the chart bubble is blacked out
def srun = if pivotlow then 1 else srun[1] +1;
def srise = if pivotlow then low - getvalue(low,srun[1]) else double.NaN;
def sslope2 = srise/srun[1];
addchartBubble(pivotlow,low,sslope2, if sslope2 >0 then color.GREEN else color.PINK);
Last edited by a moderator: