以下是通达信战略家全部指标源码和使用说明
通达信战略家全部指标源码:
N:=IF(BARSCOUNT(C) =10,10,BARSCOUNT(C));
stICKLINE(C =ma(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORYELLOW;
STICKLINE(C MA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORBLUE;
DRAWTEXT(C =MA(C,N)ANDCURRBARSCOUNT=1ANDPERIOD=5,MA(C,N),'黄色持股()'),COLORYELLOW;
DRAWTEXT(C MA(C,N)ANDCURRBARSCOUNT=1ANDPERIOD=5,MA(C,N),'蓝色持币(短线)'),COLORFF9933;
M:=IF(BARSCOUNT(C) =45,45,BARSCOUNT(C));
STICKLINE(C =MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORYELLOW;
STICKLINE(C MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORBLUE;
DRAWTEXT(C =MA(C,M)ANDCURRBARSCOUNT=1ANDPERIOD=5,MA(C,M),'黄色持股()'),COLORYELLOW;
DRAWTEXT(C MA(C,M)ANDCURRBARSCOUNT=1ANDPERIOD=5,MA(C,M),'蓝色持币(中线)'),COLORFF9933;
DRAWKLINE(H,O,L,C);
MA5:MA(C,5),COLORMAGENTA;
MA10:MA(C,N),COLORLIRED;
MA25:MA(C,25),LINETHICK2,COLORRED;
MA45:MA(C,M),COLORGREEN;
MA120:MA(C,120),COLORBROWN;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=Ema(JJ,10);
B:=REF(A,1);
stICKLINE(A B,A,B,5,0),COLORYELLOW;
STICKLINE(A B,A,B,5,0),COLORBLUE;
MA5:MA(C,5),COLORRED,LINETHICK2;
M13:EMA(CLOSE,13);
M34:EMA(M13,34);
M55:EMA(M13,55);
VAR1:=EMA(M34,55);
M105:EMA(M55,105);
M240:EMA(VAR1,240),COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,N)+2*STD(CLOSE,N);
{DRAWICON(crOSS(VAR2,VAR3),HIGH*1.035,2);}
{DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'),COLORGREEN;}
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),N1,1)/SMA(Abs(CLOSE-VAR4),N1,1)*100;
VAR6:=CROSS(N2,VAR5);
VAR7:=FILTER(VAR6,4);
{DRAWICON(VAR7,HIGH*1.035,2);}
{DRAWTEXT(VAR7,HIGH*1.02,'卖出'),COLORGREEN;}
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 6/10AND =1.5*MA(VOL,5)AND
COUNT(SK =SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'),COLORRED;
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND
COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND
REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND
OPEN REF(CLOSE,1),1,0),LOW,'●买进'),COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE DANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08
ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW,'●'),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR000033;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000066;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000CC;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000FF;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCC66FF;
STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR990000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;
KU1:=IF(HIGH=HHV(HIGH,3),1,0);
kd1:=IF(LOW=LLV(LOW,3),1,0);
UL:=IF(REF(KU1,2)=1ANDREF(KU1,1)=0
ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BArslAST(REF(KU1,2)=1
ANDREF(KU1,1)=0ANDKU1=0)));
DL:=IF(REF(KD1,2)=1ANDREF(KD1,1)=0
ANDKD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1
ANDREF(KD1,1)=0ANDKD1=0)));
HV:=H ULANDH REF(H,1);
LV:=L DLANDL REF(L,1);
GP:=BARSLAST(HV);
DP:=BARSLAST(LV);
IP:=IF(GP=0,DP,GP)
HV1:=HVANDIPANDH =HHV(H,BARSLAST(LV));
LV1:=LVANDIPANDL =LLV(L,BARSLAST(HV));
{DRAWLINE(LV1,LOW,HV1,HIGH,0),COLORGRAY;
DRAWLINE(HV1,HIGH,LV1,LOW,0),COLORGRAY;}
DRAWLINE(LV1,LOW,HV1,HIGH,0),COLORWHITE,LINETHICK2;
DRAWLINE(HV1,HIGH,LV1,LOW,0),COLORWHITE,LINETHICK2;
通达信战略家全部指标截图