{金牛短线副图源码如下}
N1:=3;
N2:=5;
N3:=9;
N4:=13;
N5:=21;
N6:=34;
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
AAC1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,N1,1);
D:=SMA(K,N1,1);
AAC2:=K>D;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
AAC3:=RSI1>RSI2;
RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
LWR1:=SMA(RSV,N1,1);
LWR2:=SMA(LWR1,N1,1);
AAC4:=LWR1>LWR2;
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
AAC5:=CLOSE>BBI;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
AAC6:=MMS>MMM;
BIAS:=(C-MA(C,N2))/MA(C,N2);
DIF:=(BIAS-REF(BIAS,16));
DBCD:=SMA(DIF,76,1);
MM:=MA(DBCD,5);
AAC7:=DBCD>MM;
持股:=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),LINETHICK0,COLORRED;
下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;
AAC8:=持股>下跌;
MT:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);
MAZL:=MA(ZLGJ,5);
AAC9:=ZLGJ>MAZL;
PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE< OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJL:=LLJX,LINETHICK0,COLOR0000FF;
AAC10:=ZJL>0;
JCS:=(AAC1+AAC2+AAC3+AAC4+AAC5+AAC6+AAC7+AAC8+AAC9);
PP:=IF(JCS>5,1,0);
ACB1:=(CLOSE*2+HIGH+LOW)/4;
ACB2:=EMA(ACB1,13)-EMA(ACB1,21);
ACB3:=EMA(ACB2,2);
多头:=2*(ACB2-ACB3)*3.8;
DIF1:=EMA(CLOSE,9)-EMA(CLOSE,23);
DEAAC1:=EMA(DIF1,6);
MACD:=(DIF1-DEAAC1)*2;
XG:=MACD>0;
金牛:=IF((CROSS(PP,0.99)),13,0);
强势:IF(金牛,1,0) AND 多头>0 AND XG COLORYELLOW ;
DRAWICON(强势,1,9);
{金牛涨停主图源码如下}
所属地区:DRAWTEXT_FIX(1,0,0.05,0,1948),COLORCD7F32;
DRAWTEXT_FIX(1,0.05,0.05,0,DYBLOCK),COLORCYAN;
所属行业:DRAWTEXT_FIX(1,0,0.1,0,1949),COLORCD7F32;
DRAWTEXT_FIX(1,0.05,0.1,0,HYBLOCK),COLORCYAN;
所属概念:DRAWTEXT_FIX(1,0,0.15,0,1950),COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.15,0,GNBLOCK),COLORCYAN;
所属风格:DRAWTEXT_FIX(1,0,0.2,0,1951),COLORCYAN;
DRAWTEXT_FIX(1,0.05,0.2,0,FGBLOCK),COLORCYAN;
ABC1:=CONST(DAYTODATE(DATETODAY(DATE)- (42)))+19000000;
DRAWTEXT_FIX(1,0,0.25,0,1952),COLORCYAN;
DRAWNUMBER_FIX(1,0.05,0.25,0,ABC1),COLORCYAN;
ABC2:=CLOSE/REF(CLOSE,1)>=1.095 AND CLOSE/REF(CLOSE,1)<=1.105 OR (CLOSE/REF(CLOSE,1)>=1.195 AND CLOSE/REF(CLOSE,1)<=1.205) OR (CLOSE/REF(CLOSE,1)>=1.295 AND CLOSE/REF(CLOSE,1)<=1.305) AND CLOSE=HIGH;
STICKLINE(ABC2,OPEN,CLOSE,1,0),COLORMAGENTA;
DRAWTEXT(ABC2,L*0.999,'★涨停'),COLORMAGENTA;
MA5:MA(CLOSE,5)DOTLINE COLORYELLOW;
ABC3:=AMOUNT*(OPEN+CLOSE)/2;
ABC4:=SUM(ABC3,21)/SUM(AMOUNT,21);
ABC5:=SUM(ABC3,55)/SUM(AMOUNT,55);
ABC6:=SUM(ABC3,144)/SUM(AMOUNT,144);
ABC7:=SUM(ABC3,377)/SUM(AMOUNT,377);
ABC8:=SUM(ABC3,34)/SUM(AMOUNT,34);
ABC9:=SUM(ABC3,89)/SUM(AMOUNT,89);
ABC10:=SUM(ABC3,233)/SUM(AMOUNT,233);
ABC11:=(ABC4+ABC5+ABC6+ABC7+ABC8+ABC9+ABC10)/7;
强势线:1.06*ABC11,COLORRED;
多空线:ABC11*0.8,COLORLIGREEN;
N1:=3;
N2:=5;
N3:=9;
N4:=13;
N5:=21;
N6:=34;
DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
DEA:=EMA(DIFF,N2);
AAC1:=DIFF>DEA;
RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K:=SMA(RSV1,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CLOSE< OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE< OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
HSL:=(XVL/20)/1.15;
GJLL:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
GJJ:=EMA(GJLL,8);
LLJX:=EMA(GJLL,3);
ZJL:=LLJX,LINETHICK0,COLOR0000FF;
AAC10:=ZJL>0;
JCS:=(AAC1+AAC2+AAC3+AAC4+AAC5+AAC6+AAC7+AAC8+AAC9);
PP:=IF(JCS>5,1,0);
ACB1:=(CLOSE*2+HIGH+LOW)/4;
ACB2:=EMA(ACB1,13)-EMA(ACB1,21);
ACB3:=EMA(ACB2,2);
多头:=2*(ACB2-ACB3)*3.8;
DIF1:=EMA(CLOSE,9)-EMA(CLOSE,23);
DEAAC1:=EMA(DIF1,6);
MACD:=(DIF1-DEAAC1)*2;
XG:=MACD>0;
金牛:=IF((CROSS(PP,0.99)),13,0);
强势:=IF(金牛,1,0) AND 多头>0 AND XG;
DRAWICON(强势,L,9);
STICKLINE(强势,OPEN,CLOSE,1,0),COLORYELLOW;
{金牛MACD副图源码如下}
SHORT:=12;
LONG:=26;
MID:=9;
WEEKAJC:="MACD.DIF"(SHORT,LONG,MID)>"MACD.DEA"(SHORT,LONG,MID);
WEEKASC:="MACD.DIF"(SHORT,LONG,MID)< "MACD.DEA"(SHORT,LONG,MID);
MONTHAJC:="MACD.DIF"(SHORT,LONG,MID)>"MACD.DEA"(SHORT,LONG,MID);
MONTHASC:="MACD.DIF"(SHORT,LONG,MID)< "MACD.DEA"(SHORT,LONG,MID);
银:WEEKAJC,NODRAW;
金:MONTHAJC,NODRAW;
ABC1:=EMA(EMA(CLOSE,9),9);
主力:=(ABC1-REF(ABC1,1))/REF(ABC1,1)*1000,COLORRED,LINETHICK2;
ABC2:=100*WINNER(CLOSE*0.95);
加速:ABC2>50 AND COST(85)< CLOSE AND 主力>0,COLORRED,NODRAW;
ADIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE,LINETHICK1;
ADEA:=EMA(ADIF,9),COLORYELLOW,LINETHICK1;
AMACD:=(ADIF-ADEA)*2,COLORWHITE,COLORSTICK;
A1:=AMACD< REF(AMACD,1) AND AMACD>0;
A2:=AMACD< REF(AMACD,1)/2 AND AMACD< 0;
AWIDTH:=-1;
STICKLINE((AMACD>=0) AND (WEEKAJC),AMACD,0,AWIDTH,0),COLORRED;
STICKLINE((AMACD>=0) AND (WEEKAJC) AND 加速,AMACD,0,AWIDTH,0),COLORMAGENTA;
STICKLINE((AMACD>=0) AND (WEEKASC),AMACD,0,AWIDTH,1),COLORRED;
STICKLINE((AMACD>=0) AND (MONTHAJC),AMACD/2,0,AWIDTH,0),COLORYELLOW;
STICKLINE((AMACD>=0) AND (MONTHASC AND WEEKAJC),AMACD/2,0,AWIDTH,0),COLORGREEN;
STICKLINE((AMACD< 0) AND (WEEKAJC),AMACD,0,AWIDTH,0),COLORGREEN;
STICKLINE((AMACD< 0) AND (WEEKASC),AMACD,0,AWIDTH,1),COLORLIGREEN;
STICKLINE((AMACD< 0) AND (MONTHAJC),AMACD/2,0,AWIDTH,0),COLORYELLOW;
STICKLINE((AMACD< 0) AND (MONTHASC AND WEEKAJC),AMACD/2,0,AWIDTH,0),COLORGREEN;
强弱分界:0,COLORWHITE,LINETHICK1;
值:AMACD,COLORRED,NODRAW;
白:ADIF,COLORWHITE;
黄:ADEA,COLORYELLOW;
{金牛MACD副图源码如下}