ABC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
ABC2:=IF(CLOSE>OPEN,CLOSE,OPEN);
ABC3:=IF(CLOSE>OPEN,OPEN,CLOSE);
ABC4:=LLV(ABC2,4);
ABC5:=HHV(ABC3,4);
ABC6:=ABC2>=ABC4 AND ABC3<=ABC4 AND ABC2>=ABC5 AND ABC3<=ABC5;
ABC7:=REF(ABC2,1)>=ABC4 AND REF(ABC3,1)<=ABC4 AND REF(ABC2,1)>=ABC5 AND REF(ABC3,1)<=ABC5;
ABC8:=REF(ABC2,2)>=ABC4 AND REF(ABC3,2)<=ABC4 AND REF(ABC2,2)>=ABC5 AND REF(ABC3,2)<=ABC5;
ABC9:=REF(ABC2,3)>=ABC4 AND REF(ABC3,3)<=ABC4 AND REF(ABC2,3)>=ABC5 AND REF(ABC3,3)<=ABC5;
ABC10:=ABC6 AND ABC7 AND ABC8 AND ABC9;
ABC11:=REF(ABC5,BARSLAST(ABC10));
ABC12:=ABC11=REF(ABC11,1);
ABC13:=BARSLAST(NOT(ABC12));
ABC14:=REF(ABC11,ABC13+2);
ABC15:=(REF(OPEN,5)+REF(CLOSE,5))/2;
ABC16:=(HIGH+LOW+CLOSE+OPEN)/4;
ABC17:=MAX(ABC15,MAX(ABC16,HHV(HIGH,5)));
ABC18:=MIN(ABC15,MIN(ABC16,LLV(LOW,5)));
ABC19:=ABC17=ABC15;
ABC20:=ABC19;
ABC21:=REF(ABC17,BARSLAST(ABC20));
ABC22:=ABC21=REF(ABC21,1);
ABC23:=BARSLAST(NOT(ABC22));
ABC24:=REF(ABC21,ABC23+2);
ABC25:=HHV(HIGH,120);
ABC26:=LLV(LOW,120);
ABC27:=(ABC25-ABC26)/2*189/100+ABC26/1.0618;
ABC28:=ABC27*0.8;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG:=MACD>0;
亮剑:=ABC18>=ABC26 AND ABC17>ABC11 AND ABC17>ABC14 AND ABC17>ABC24 AND ABC17>ABC28 AND ABC17>ABC21 AND CLOSE>MA(CLOSE,60) AND C>3;
亮剑出击:REF(亮剑< 1,1) AND 亮剑 AND XG LINETHICK2;