源码
Var2:=IF(HIGH+LOW<=REF(HIGH,1)+REF(LOW,1),0,MAX(ABS(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));
Var3:=IF(HIGH+LOW>=REF(HIGH,1)+REF(LOW,1),0,MAX(ABS(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));
Var4:=SUM(Var2,13)/(SUM(Var2,13)+SUM(Var3,13));
Var5:=SUM(Var3,13)/(SUM(Var3,13)+SUM(Var2,13));
ADDI: (Var4-Var5)*100, COLORSTICK;
Var9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VarA:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VarB:=Var9<REF(VarA,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
Var1A:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
Var1B:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
Var1C:=SMA(Var1B,13,8);
Var1D:=SMA(Var1A,21,8);
趋势:SMA(Var1C,13,8),colorwhite;
盘整: STICKLINE(趋势-Var1D<-65,0,7,15,2),colorgreen;
Var1E:=WINNER((CLOSE+OPEN+HIGH+LOW)/4)*1000;
波段底部: IF(Var1E>180,0,-10),color0099ff,linethick2;
aa:=VarB AND COUNT(VarB,1)=1 AND 趋势<80 ;