中:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100;
中短:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40))+100;
操作区:=中短>=REF(中短,2) OR 中>=REF(中,2);
比:=(SUM(AMOUNT,3)/3)/(SUM(AMOUNT,60)/60);
量:=MA((比-LLV(比,9))/(HHV(比,9)-LLV(比,9)),5)*1.2*比;
量3:=EMA(量,3);
量5:=EMA(量,5);
进:=量3 >= 量5;
MA5:=MA(比,5);
场:=MA5>REF(MA5,2);
资金进场:=进 OR 场;
乖离率:=EMA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,3);
高压率:=HHV(乖离率,3);
乖离线:=MA((CLOSE-MA(CLOSE,5)),3)+MA(CLOSE,5);
趋势:=MA(乖离线,5)-MA(MA(乖离线,5),2);
JCSJ2:=BARSLAST(CROSS(0,趋势))+1;
压:=REF(MA(乖离线,5),JCSJ2);
选资金进场 AND 操作区 AND (乖离线>=MA(乖离线,5) OR 乖离率=高压率))*IF(MA(乖离线,5)<=压 OR CROSS(MA(乖离线,5),压),1,BARSLAST(CROSS(MA(乖离线,5),压))+1); |