zg:=FINANCE(1);{总股}
lta:=FINANCE(7);{流通A}
sy:=FINANCE(33);{收益}
sl:=DYNAINFO(39);{市盈率}
wf:=FINANCE(32);{未分}
gj:=FINANCE(18);{公积};
jz:=FINANCE(34);{净资}
cw:='总股:'+NUMTOSTR(zg,2)+' 流通A:'+NUMTOSTR(lta,2)+' 收益:'+NUMTOSTR(sy,2)+' 市盈率:'+NUMTOSTR(sl,2)+' 未分:'+NUMTOSTR(wf,2)+' 公积:'+NUMTOSTR(gj,2)+' 净资:'+NUMTOSTR(jz,2);
DRAWTEXTEX(C,1,20,800,BLKNAME),Coloryellow,LINETHICK2;
DRAWTEXTEX(C,1,20,860,cw),Coloryellow,LINETHICK2;
大盘指数T:=INDEXC;
大盘指数涨跌T:=(大盘指数T-REF(大盘指数T,1));
涨家数T:=INDEXADV;
跌家数T:=INDEXDEC;
DRAWTEXTEX(C,1,450,10,'涨:'+NUMTOSTR(涨家数T,0)+'家'+' 跌:'+NUMTOSTR(跌家数T,0)+'家'+' 平:'+NUMTOSTR(PINGPAN,0)+'家'),COLORwhite,LINETHICK2;
ma5:ma(close,5),colorff00ff;
ma10:ma(close,10),color00ff00;
STICKLINE(C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=O,C,O,4,0),COLOR7070ff;
STICKLINE(C>=O,C,O,2,0),COLORYELLOW;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,7,0),COLORFF2020;
STICKLINE(C<=O,C,O,4,0),COLORFF6600;
STICKLINE(C<=O,C,O,2,0),colorffcc66;
STICKLINE(C<=O,H,L,0,0),colorffcc66;
Var1:=IF(YEAR>2999 AND MONTH>5, 0, 1);
Var2:=IF(HIGH=CLOSE, 1.110*CLOSE, HIGH)*Var1;
Var3:=IF(HIGH=CLOSE, 0.890*CLOSE, LOW)*Var1;
Var4:=(REF(CLOSE, 1)+REF(LOW, 1)+REF(HIGH, 1)+REF(OPEN, 1))/4;
Var5:=IF(REF(LOW, 1)=REF(HIGH, 1), 1.100*REF(CLOSE, 1), Var4)-REF(LOW, 1);
Var6:=REF(CLOSE, 3)-Var5;
Var7:=REF(CLOSE, 1)+Var5;
短期值:MA((HIGH+LOW)/2, 5),COLORwhite;
顶部线:EMA(EMA(Var2, 6)*1.050, 8),colorffffcc,circledot;
底部线:EMA(EMA(Var3, 6)*0.970, 8),COLORffffcc,circledot;
Var8:=(HIGH+LOW+CLOSE)/3;
Var9:=MA(CLOSE, 5);
Var10:=MA(CLOSE, 10);
Var11:=MA(CLOSE, 20);
Var12:=MA(CLOSE, 30);
Var13:=(Var9+Var10+Var11+Var12)/4;
MA(Var13, 19), COLORFF0011;
MA(Var13, 20), COLORFF0033;
MA(Var13, 7), COLORFF2233;
MA(Var13, 8), COLORFF4433;
MA(Var13, 9), COLORFF6633;
MA(Var13, 10), COLORFF8833;
MA(Var13, 11), COLORFFAA33;
MA(Var13, 13), POINTDOT,LINETHICK2, COLORFFCC00;
MA(Var13, 15), COLORFFBB33;
MA(Var13, 16), COLORFF9933;
MA(Var13, 17), COLORFF7733;
MA(Var13, 18), COLORFF5533;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
支撑位:IF(CROSS(j,j24),L,REF(L,BARSLAST(CROSS(j,j24)))),COLORYELLOW,pointdot,linethick2;
压力位:IF(CROSS(j24,j),H,REF(H,BARSLAST(CROSS(j24,j)))),COLORred,pointdot,linethick2;
U2L:=IF(C>=MA(C,NN),80,50);
L2L:=IF(C>=MA(C,Nn),50,20);
RH1:=IF(j<U2L AND REF(j,1)>=U2L,HHV(REF(H,1),BARSLAST(j>=U2L AND REF(j,1)<U2L)-1),
REF(HHV(REF(H,1),BARSLAST(j>=U2L AND REF(j,1)<U2L)-1),BARSLAST(j<U2L AND REF(j,1))));
RH4:=IF(H>RH1,L,REF(L,BARSLAST(H>RH1)));
RH42:=IF(H>RH1,j,REF(j,BARSLAST(H>RH1)));
拦顶:IF(H>RH4 AND j<RH42 AND j<j24,H,REF(H,BARSLAST(H>RH4 AND j<RH42 AND j<j24))),COLORred;
RL1:=IF(j>L2L AND REF(j,1)<=L2L,LLV(REF(L,1),BARSLAST(j<=L2L AND REF(j,1)>L2L)-1),
REF(LLV(REF(L,1),BARSLAST(j<=L2L AND REF(j,1)>L2L)-1),BARSLAST(j>L2L AND REF(j,1))));
RL4:=IF(L<RL1,H,REF(H,BARSLAST(L<RL1)));
RL42:=IF(L<RL1,j,REF(j,BARSLAST(L<RL1)));
抄底:IF(L<RL4 AND j>RL42 AND j>j24,L,REF(L,BARSLAST(L<RL4 AND j>RL42 AND j>j24))),COLORyellow;
cb:=amount/v/100;
cd:=cb>h or cb<l;
STICKLINE(cd<1,cb-0.002,cb+0.002,8,1),COLORYELLOW;
小天导航:ma(c,3);
Var326:=IF(CLOSE>REF(CLOSE, 1),88,0);
Var327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND HIGH/CLOSE<1.010 AND Var326>0, 91,0);
STICKLINE(Var327>90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(Var327>90,LOW*0.95,'追涨'),COLORYELLOW;
|