VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
VAR4:=LLV(LOW,10);
VAR5:=HHV(HIGH,10);
散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
主力线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
超短线:=(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25);
持股线:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,11);
新庄:=EMA(0.667*REF(持股线,1)+0.333*持股线,5) ;
佛:EMA((VAR1-VAR4)/(VAR5-VAR4)*100,13),LINETHICK1;
VJA:=EMA(0.667*REF(佛,1)+0.333*佛,2);
空:=EMA(0.382*REF(佛,2)+0.618*佛,12);
佛戒:=CROSS(佛,VJA);
佛追涨:=BARSLAST(佛戒)<4 ;
偏移:=XMA(H,13)*1.5;
观察:=MA(H,13)*1.5;
压缩:=观察-偏移;
五天涨幅:=(C/REF(C,5)-1)*100;
十天涨幅:=(C/REF(C,10)-1)*100;
五天势能:=IF(五天涨幅/5>0,五天涨幅/5,0);
十天势能:=IF(十天涨幅/10>0,十天涨幅/10,0);
前势能:=REF(五天势能,2);
VAR26:=(EMA(CLOSE,2) - EMA(CLOSE,150));
VAR27:=EMA(VAR26,100);
VAR28:=(2 * (VAR26 - VAR27));
VAR29:=((POW(VAR28,3) * 0.1) + POW(VAR28,1));
黑码:IF((VAR28 > 0.1),VAR29,0);
前黑码:=REF(黑码,2);
黑码警戒:=20*(黑码>0 AND 黑码>前黑码),COLORRED,LINETHICK1;
势能警戒:=15*(五天势能>0 AND 五天势能>前势能) ,COLORYELLOW,LINETHICK1;
实战鉄律:=IF(CROSS(持股线,新庄) AND 佛追涨>0 AND 持股线<50,90,0);
佛指路:=80*(CROSS(佛,空));
抄底:=IF(CROSS(主力线,13) AND 超短线>主力线 AND 超短线>23,70,0);
疯:=IF(CROSS(主力线,散户线) AND 佛追涨>0 AND (主力线<87) AND (主力线>55),60,0);
杀入:=IF(CROSS(超短线,85) AND 佛追涨>0 AND (主力线<40),50,0);
势:=IF(REF(五天势能,1)=0 AND 佛追涨>0 AND 五天势能>0 AND REF(十天势能,1)=0 AND 十天势能>0 ,40,0);
A:=(势能警戒 AND 抄底 AND 杀入 AND 压缩<=0);
B:=(势能警戒 AND 实战鉄律 AND 杀入 AND 压缩<=0);
D:=(势能警戒 AND 实战鉄律 AND 佛指路 AND 压缩<=0);
E:=(抄底 AND 实战鉄律 AND 杀入 AND 压缩<=0);
F:=(势能警戒 AND 佛指路 AND 杀入 AND 黑码警戒 AND 压缩<=0);
G:=(势 AND 佛指路 AND 压缩<=0);
I:=(势 AND 杀入 AND 势能警戒 AND 压缩<=0);
J:=(势能警戒 AND 抄底 AND 黑码警戒 AND 压缩<=0);
K:=(势能警戒 AND 疯 AND 黑码警戒 AND 压缩<=0);
XG:A OR B OR D OR E OR F OR G OR I OR J OR K;
DRAWICON(XG,0,1);