Support and Resistance Cloud Indicator for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
This indicator is to help with your Support and Resistance point.



thinkScript Code
Rich (BB code):
#VM_Drummond_61_Channel  

declare upper;  

input Agg = AggregationPeriod.DAY;  

input pldotlength = 3;  

input pldotdisplace = -1;  

def o = open(period = agg);  

def h = high(period = agg);  

def l = low(period = agg);  

def c = close(period = agg);  

def ma = simpleMovingAvg(hlc3(period = agg),pldotlength,pldotdisplace);  

#====1-1Channel====  

def y = ma - absvalue(h[1] - ma);  

def x = ma + absvalue(ma - l[1]);  

plot res = x;  

plot sup = y;  

addcloud(x,y,color.GRAY);
Shareable Link
http://tos.mx/yHe1rL

 
Last edited:

Top