VAR64:=(HIGH+LOW+CLOSE)/3;
VAR65:=(VAR64-MA(VAR64,14))/(0.015*AVEDEV(VAR64,14));
VAR66:=(VAR64-MA(VAR64,70))/(0.015*AVEDEV(VAR64,70));
VAR67:=IF(VAR65>=150&&VAR65< 200&&VAR66>=150&&VAR66< 200,10,0);
VAR68:=IF(VAR65<=-150&&VAR65>-200&&VAR66<=-150&&VAR66>-200,-10,VAR67);
VAR69:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR70:=IF(VAR69>0,VAR69,0);
VAR71:=IF(VAR66>=200&&VAR65>=150,15,IF(VAR66<=-200&&VAR65<=-150,-15,VAR68));
抄底:REF(VAR71=-15,1)&&VAR71>-15;
趋势顶部:=27;
趋势底部:=55;
多方力度:=(3*SMA((CLOSE-LLV(LOW,趋势顶部))/(HHV(HIGH,趋势顶部)-LLV(LOW,趋势顶部))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,趋势顶部))/(HHV(HIGH,27)-LLV(LOW,趋势顶部))*100,5,1),3,1)),COLOR00FFFF,LINETHICK2;
空方力度:=100*(HHV(HIGH,趋势底部)-CLOSE)/(HHV(HIGH,趋势底部)-LLV(LOW,趋势底部)),COLOR00EC00,LINETHICK1;
量比:=V/REF(MA(V,1),1);
红钻石:C/REF(C,1)>1.03&&量比>1.1&&crOSS(多方力度,空方力度)*1;

