tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),14);pdi:=dmp*100/tr;count(pdi>ref(pdi,1),n...
var1:=(close*2+high+low)/4;sk:=ema(var1,13)-ema(var1,21);sd:=ema(sk,2);多方能量:=2*(sk-sd)*3.8;空方能量:=(-2)*(sk-sd)*3.8;强弱分界:=0;cross(多方能量,空方能量) and (sk>sd and cross(sk,sd));{已测试,复制可直接引用,如果回答满意,请记得给采纳}