if:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2; typ:=(high+low+close)/3;cci:=(typ-ma(typ,14))/(0.015***edev(typ,14));xg:cross(cci,100) and range(macd,-0.1,0.1); 20210311
神仙大趋势h1:=ema(close,6),colorwhite; h2:=ema(神仙大趋势h1,18),colorgreen; h3:=ema(close,108),coloryellow;cross(神仙大趋势h1,max(h2,h3)) or (神仙大趋势h1>max(h2,h3) and ref(c,1)<ref(c,2) and c>ref(max(c,o),1));
{主图}t1:=ma(c,15);if(c>=t1 and t1>=ref(t1,1),t1,draw**),colorred;if(c<t1 or t1<ref(t1,1),t1,draw**),colorgreen;stickline(c>=t1 and t1>=ref(t1,1),c,h,0,0),colorred;stickline(c>=t1 a...