买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,(DYnaINFO(23)*(240/FROMOPEN)),(IF(ISLASTBAR AND C>300,((IF(H=L,1,((H+L+C)/3)-MIN(C,O))*(V/IF(H=L,4,H-L)))+(IF(H=L,1,MIN(O,C)-L)*(V/IF(H=L,4,H-L))))*(240/FROMOPEN),((IF(H=L,1,((H+L+C)/3)-MIN(C,O))*(V/IF(H=L,4,H-L)))+(IF(H=L,1,MIN(O,C)-L)*(V/IF(H=L,4,H-L)))))));
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,(DYNAINFO(22)*(240/FROMOPEN)),(IF(ISLASTBAR AND C>300,((IF(H=L,1,H-maX(O,C))*(V/IF(H=L,4,H-L)))+(IF(H=L,1,MAX(C,O)-((H+L+C)/3))*(V/IF(H=L,4,H-L))))*(240/FROMOPEN),((IF(H=L,1,H-MAX(O,C))*(V/IF(H=L,4,H-L)))+(IF(H=L,1,MAX(C,O)-((H+L+C)/3))*(V/IF(H=L,4,H-L)))))));
买盘线:=DYNAINFO(23)*(IF(V>=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,DYNAINFO(17)*REF(MA(V,5),1),DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT) AND PERIOD=5,V,IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,DYNAINFO(17)*REF(MA(V,5),1),DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT))/V);
卖盘线:=DYNAINFO(22)*(IF(V>=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,DYNAINFO(17)*REF(MA(V,5),1),DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT) AND PERIOD=5,V,IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,DYNAINFO(17)*REF(MA(V,5),1),DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT))/V);
M1:=SQRT(HHV(IF(C>REF(C,1),V,-V),1)*LLV(IF(C>REF(C,1),V,-V),1))<REF(SQRT(HHV(IF(C>REF(C,1),V,-V),1)*LLV(IF(C>REF(C,1),V,-V),1)),1) AND REF(IF(C>REF(C,1),V,-V),1)=REF(SQRT(HHV(IF(C>REF(C,1),V,-V),1)*LLV(IF(C>REF(C,1),V,-V),1)),1) AND SQRT(HHV(IF(C>REF(C,1),V,-V),1)*LLV(IF(C>REF(C,1),V,-V),1))>IF(C>REF(C,1),V,-V) AND C<REF(C,1) AND REF(C,1)>REF(C,2)*1.01;
M2:=crOSS(买盘,卖盘) AND 卖盘<REF(卖盘,1) AND REF(卖盘,1)>REF(买盘,1) AND 卖盘>卖盘线 AND REF(买盘,1)<REF(买盘,2);
负能量:=SUM(IF(O>C AND IF(SUM(V,5)/HHV(V,5)>0.3,1,0),V,0),3)*0.001;
正能量:=((SUM(IF(C>O AND IF(SUM(V,5)/HHV(V,5)>0.3,1,0),V,0),3)*0.001)-负能量);
基础:=(M1 AND REF(M2,1)) OR (M2 AND REF(M1,1));
卖1:基础 AND CROSS(负能量,正能量);
卖2:(基础 OR REF(基础,1)) AND REF(负能量,1)=0 AND 负能量>0;