| m:=88;n1:=6;var0a:=ema(ema(ema(close,2),2),2);ma13:(ma(var0a,13)*0.99),coloryellow; (ma(var0a,13)*0.999),coloryellow; tlamsenr:=max(max((high-low),abs((ref(close,1)-high))),abs((ref(close,1)-low))); atr:=ma(tlamsenr,13);var1a:=(ref(close,1)-ref(atr,1)); 黄金线:(hhv(var1a,12)),linethick4,color0080ff;var1:=ema(amount/vol/100,3); 控盘成本:ema(var1,m),linethick2,colorred;低吸伏击:ema(var1,m)*0.85,colorcyan ,linethick2; 走势铁底:低吸伏击*0.87,linethick3,colorlimagenta;var2:=low<=走势铁底 and close>ref(close,1)*1.02; if(控盘成本<ref(控盘成本,1),控盘成本,drawnull),linethick2,colorgreen;drawicon(filter(var2,n1),l-0.55,5);
波谷值: const(trough(2,百分比,1)),nodraw; 波谷距离:=1+const(troughbars(2,百分比,1)),nodraw; 波峰值:= const(peak(1,百分比,右数峰序)); 允许误差:=0.024; xg:= abs(波峰值-波谷值)<=允许误差; 波峰距离:= 1+const(peakbars(1,百分比,右数峰序)),nodraw; 距离:=currbarscount; drawline(距离=波峰距离 and xg,波谷值,距离=1,波谷值,1),colormagenta; drawtext(距离=波谷距离 and xg,l*0.98,' 精准峰谷线'),colorwhite; drawicon(距离=波峰距离,h*1.01,2); drawicon(距离=波谷距离,l*0.985,1); 精准点:=(abs(h-波谷值)<=允许误差 or abs(l-波谷值)<=0.024); stickline(精准点,波谷值,波谷值,3,1),coloryellow; 波谷值2:= const(trough(2,百分比,2)); 波谷值3:= const(trough(2,百分比,3)); 波谷值4:= const(trough(2,百分比,4)); 波谷距离2:= 1+const(troughbars(2,百分比,2)); 波谷距离3:= 1+const(troughbars(2,百分比,3)); 波谷距离4:= 1+const(troughbars(2,百分比,4)); xg2:= abs(波谷值-波谷值2)<=允许误差; xg3:= abs(波谷值-波谷值3)<=允许误差; xg4:= abs(波谷值-波谷值4)<=允许误差; xgl:=(距离=波谷距离2 and xg2) or (距离=波谷距离3 and xg3) or (距离=波谷距离4 and xg4); drawline(xgl,波谷值,距离=1,波谷值,1),colorligreen; drawtext(xgl,l*0.98,' 精准谷底线'),colorwhite; | |