源码
及时均价:=(CLOSE+HIGH+LOW+LOW)/4;
p:=EMA(及时均价,9);
q:=EMA(REF(p,1),3);
STICKLINE(p>q,p,q,8,1),COLOR990000;
STICKLINE(p
换手:=1000*vol/capital;
Var1:=CLOSE>REF(CLOSE,2) AND CLOSE>REF(CLOSE,3);
Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
aaa:=close>=ref(close,3);
bbb:=close>=ref(close,5);
ccc:=close>=ref(close,7);
ddd:=close>=ref(close,8);
eee:=close>=ref(close,13);
fff:=close>=ref(close,21);
aaaa:=v>=ref(v,3);
bbbb:=v>=ref(v,5);
cccc:=v>=ref(v,7);
dddd:=v>=ref(v,8);
eeee:=v>=ref(v,13);
ffff:=v>=ref(v,21);
价涨吧:=aaa+bbb+ccc+ddd+eee+fff>=4;
量涨吧:=aaaa+bbbb+cccc+dddd+eeee+ffff>=5;
aa:=Var1 OR Var2 OR Var3 OR Var4 OR Var5 OR Var6 OR Var7 OR Var8 OR Var9 OR VarA OR VarB OR VarC;
选股1:aa and 价涨吧 and 量涨吧,COLORWHITE,LINETHICK0;
选股2:aa and 价涨吧 and 量涨吧 and c>MA(c,30)and MA(v,30)>ref(MA(v,30),1) and MA(c,30)>ref(MA(c,30),1),COLORWHITE,LINETHICK0;
选股3:aa and 价涨吧 and 量涨吧 and c>MA(c,30)and MA(v,30)>ref(MA(v,30),1) and ref(c,5)>REF(MA(c,30),5) and ((c-MA(c,30))/MA(c,30))<=0.819
and ref(MA(c,5),8)MA(v,30)*2.618 and ((REF(c,1)-MA(REF(c,1),30))/MA(REF(c,1),30))<0.0618 and c>o
and ref(MA(c,20),1)>ref(MA(c,20),2) and (c-llv(l,10))/llv(l,10)<0.1328 and (h-c)<(c-o),COLORWHITE,LINETHICK0;
可能转强:STICKLINE(价涨吧 and p>q,p,q,换手,0),COLORBLUE;
量能跟上:STICKLINE(价涨吧 and 量涨吧 and p>q,p,q,换手,0),COLORGREEN;
可以持有:STICKLINE(选股1 and p>q,p,q,换手,0),COLORYELLOW;
可能拉升:STICKLINE(选股2 and p>q,p,q,换手,0),COLORRED;
VarD:=CLOSE < REF(CLOSE,2) AND CLOSE < REF(CLOSE,2);
VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,2) AND CLOSE>=REF(CLOSE,3);
Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,2) AND CLOSE<=REF(CLOSE,3);
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;
ma(c,2);
ma(c,6),colorccff00;