源码
Var1:=(CLOSE+REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4))/5;
Var2:=EMA(Var1,3);
Var3:=EMA(Var1,10);
Var4:=EMA(Var1,20);
Var5:=EMA(Var1,30);
Var6:=EMA(Var1,60);
Var7:=EMA(Var1,120);
Var8:=BARSCOUNT(CLOSE);
Var9:=Var2>REF(Var2,1) AND REF(Var2,1)>REF(Var2,2) AND Var3>REF(Var3,1) AND REF(Var3,1)>REF(Var3,2);
VarA:=(VOL+REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4))/(CAPITAL*6000);
VarB:=Var1+VarA;
VarC:=EMA(WINNER(VarB),7)*100;
VarD:=EMA(WINNER(VarB),14)*100;
VarE:=EMA(WINNER(VarB),21)*100;
VarF:=EMA(WINNER(VarB),28)*100;
Var10:=BARSLAST(REF(CROSS(VarC,VarD),1));
八路军: VarC;
鬼子: VarD;
交锋线: VarE;
战局研判: VarF;
Var11:=VarC>REF(VarC,1) AND REF(VarC,1)>REF(VarC,2) AND VarD>REF(VarD,1) AND REF(VarD,1)>REF(VarD,2) AND VarE>REF(VarE,1) AND REF(VarE,1)>REF(VarE,2) AND Var10<8 AND (CLOSE-REF(CLOSE,Var10))/REF(CLOSE,Var10)*100<20 AND Var9 AND (REF(VarC,1)<10 OR REF(VarC,1)>10 AND REF(VarC,1)<35);
Var12:=Var11=1 AND Var11+REF(Var11,1)+REF(Var11,2)+REF(Var11,3)+REF(Var11,4)+REF(Var11,5)+REF(Var11,6)+REF(Var11,7)+REF(Var11,8)+REF(Var11,9)<=4 AND (REF(Var11,1)=1 OR REF(Var11,2)=1 OR REF(Var11,3)=1);
荡魔除寇: IF(Var12,20,0), ;
C14: DRAWTEXT(CROSS(VarC,VarD) AND (REF(VarC,1)<10 OR REF(VarC,1)>10 AND REF(VarC,1)<35),VarC,'发现鬼子,密切注意');
C15: DRAWTEXT(CROSS(VarC,VarD) AND REF(VarC,1)>40,VarC,'鬼子扫荡撤,进退择机');
C16: DRAWICON(CROSS(VarC,VarD) AND (REF(VarC,1)<10 OR REF(VarC,1)>10 AND REF(VarC,1)<35),VarD,1);
C17: DRAWICON(CROSS(VarC,VarD) AND REF(VarC,1)>45,VarD,2);
10;
20;
30;
40;
50;
60;
70;