以下是通达信四线擒牛主图指标源码
通达信四线擒牛主图指标源码:
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MM:=MIN(MA5,MA60);
MM2:=MIN(MA10,MA60);
SS:DRAWBAND(MM,RGB(250,0,250),MM2,0);
HM:=MAX(MA5,MA60);
HM2:=MAX(MA10,MA60);
{DRAWBAND(HM2,RGB(0,255,190),HM,0);}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
KK:=MIN(MA5,MA20);
KK2:=MIN(MA10,MA20);
DRAWBAND(KK,RGB(0,255,190),KK2,0);
MA(C,5);
MA(C,10);
MA(C,20);
MA(C,60);
当白线上穿黄线,同时灰线与红线相距较近时为买点
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORWHITE;
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORWHITE;
BB:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORWHITE;
年线:=EMA(C,250);
A:=BB-(EMA(C,3)-BB),COLORWHITE;
DIFF:EMA((年线-(EMA(C,3)-年线)),5),LINETHICK2;
IF(BB=FS,BB,BB),COLORWHITE,LINETHICK2;
追涨跌破止损:EMA(COST(81),10)COLORRED,LINETHICK2;
牛熊线:EMA(COST(27),120),CIRCLEDOT;
{大家要的选股公式,通达信飞狐可以使用。
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
BB:=IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17));
年线:=EMA(C,250);
DIFF:=EMA((年线-(EMA(C,3)-年线)),5);
AA:=IF(BB=FS,BB,BB);
XG:CROSS(AA,DIFF);};
MA$1:MA(CLOSE,5);
MA$2:MA(CLOSE,10);
MA$3:MA(CLOSE,20);
FILLRGN(MA$2,MIN(MA$1,MA$3),MA$3>MA$1ANDMA$1>MA$2ANDMA$3>MA$2,RGB(255,0,0),MA$1>MA$3ANDMA$3>MA$2ANDMA$1>MA$2,RGB(0,255,0));
A:=MA$1>MA$3ANDMA$3>MA$2ANDMA$1>MA$2;
B:=MA$1>MA$3ANDMA$2>MA$3ANDMA$1>MA$2;
VERLINE(REF(A,1)=1ANDB=1,1);
X_1:=REF(MA(CLOSE,10)>MA(CLOSE,20)ANDMA(CLOSE,60)>MA(CLOSE,120)ANDMA(CLOSE,20)>REF(MA(CLOSE,20),1)ANDMA(CLOSE,250)/REF(MA(CLOSE,250),1)>0.9995ANDMA(CLOSE,20)>MA(CLOSE,60)ANDREF(HHV(HIGH,2),1)/LOW>1.1,1)ANDOPEN/REF(CLOSE,1)<1.02ANDREF(COUNT(CLOSE/REF(CLOSE,1)>1.098,4)>0,1)ANDREF(CLOSE,1)/REF(OPEN,1)>0.92ANDREF(MA(CLOSE,5),1)/REF(MA(CLOSE,10),1)>0.98ANDREF(COUNT(REF(OPEN,1)=REF(CLOSE,1)ANDREF(CLOSE,1)/REF(CLOSE,2)>1.098ANDOPEN/REF(CLOSE,1)>1.015ANDOPEN/CLOSE>1.12ANDCLOSE/REF(CLOSE,1)<0.94,4)<1,1);
X_2:=NOT(REF(CLOSE,2)/REF(CLOSE,3)>1.03ANDREF(CLOSE,2)/REF(OPEN,2)>1.03ANDREF(CLOSE,1)/REF(CLOSE,2)<0.97ANDREF(CLOSE,1)<REF(LOW,2))ANDREF(CLOSE,1)/REF(CLOSE,2)<1.05ANDREF(CLOSE,1)/REF(CLOSE,3)<0.992ANDCLOSE/REF(CLOSE,1)>1.02ANDREF(COUNT(OPEN=HIGHANDCLOSE/OPEN<0.97ANDOPEN/REF(CLOSE,1)>0.993,4)<1,1)ANDREF(COUNT(OPEN/REF(CLOSE,1)<0.915ANDCLOSE/REF(CLOSE,1)<0.902,3)<1,1)ANDREF(COUNT(OPEN=CLOSEANDCLOSE=LOWANDCLOSE/REF(CLOSE,1)<0.902,4)<1,1);
X_3:=X_1ANDX_2;
X_4:=CAPITAL<10000000ANDREF(COUNT(HHV(HIGH,10)/REF(LLV(LOW,10),1)>1.6ANDCOUNT(CLOSE/REF(CLOSE,1)>1.098,10)>4,20)=0,1)ANDREF(CLOSE,1)/REF(MA(CLOSE,20),1)<1.18ANDNOT(REF(OPEN,2)/REF(CLOSE,3)>1.05ANDREF(CLOSE,2)<REF(OPEN,2)ANDREF(CLOSE,2)>REF(CLOSE,3)ANDREF(VOL,2)>REF(HHV(VOL,30),3))ANDREF(COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.05ANDOPEN>REF(CLOSE,1)ANDOPEN=HIGHANDCLOSE/OPEN<0.98,3)<1,1);
X_5:=FILTER(X_3ANDX_4,7);
X_6:=REF(CLOSE,3)/REF(CLOSE,4)>1.098ANDREF(CLOSE,1)/REF(MA(CLOSE,60),1)<1.1ANDREF(MA(CLOSE,60),1)>REF(MA(CLOSE,60),2)ANDREF(HIGH,1)>REF(MAX(CLOSE,OPEN),1)ANDREF(MA(CLOSE,5),1)>REF(MA(CLOSE,60),1)AND(REF(MIN(CLOSE,OPEN),1)-REF(LOW,1))/(REF(HIGH,1)-REF(MAX(CLOSE,OPEN),1))>1.7ANDREF(HIGH,2)/REF(LOW,1)>1.05ANDREF(CLOSE,1)<REF(MIN(CLOSE,OPEN),2)ANDREF(CLOSE,1)<REF(CLOSE,2)ANDREF(OPEN,1)/REF(CLOSE,2)<0.99ANDREF(MIN(CLOSE,OPEN),1)/REF(LOW,1)>1.01;
X_7:=REF(CLOSE,2)>REF(CLOSE,3)ANDREF(MIN(CLOSE,OPEN),2)/REF(LOW,2)>1.025AND(REF(MIN(CLOSE,OPEN),2)-REF(LOW,2))/(REF(HIGH,2)-REF(MAX(CLOSE,OPEN),2))>1.7ANDREF(MA(CLOSE,5),1)>REF(MA(CLOSE,5),2)ANDREF(MA(CLOSE,10),1)>REF(MA(CLOSE,10),2)ANDCLOSE/REF(CLOSE,1)>1.02;
X_8:=X_6ANDX_7;
X_9:=REF(CLOSE,2)/REF(LOW,1)>1.07ORREF(HIGH,1)/REF(LOW,1)>1.07ANDREF(CLOSE,2)/REF(CLOSE,13)<1.4ANDREF(MA(CLOSE,60),1)>REF(MA(CLOSE,60),2)ANDREF(CLOSE,1)/REF(MA(CLOSE,20),1)>0.9ANDREF(CLOSE,1)/REF(MA(CLOSE,20),1)<1.185AND(REF(CLOSE,1)/REF(CLOSE,2)<0.96ORREF(CLOSE,1)/REF(OPEN,1)<0.94)ANDREF(CLOSE,1)/REF(CLOSE,2)>0.906ANDREF(CLOSE,2)/REF(CLOSE,3)>1.098;
X_10:=REF(COUNT(COUNT(CLOSE/REF(CLOSE,1)>1.098,3)>1,5)=0,1)ANDREF(MA(CLOSE,20),1)>REF(MA(CLOSE,20),2)ANDREF(CLOSE,1)>REF(REF(LOW,BARSLAST(CLOSE/REF(CLOSE,1)>1.098)),1)ANDREF(CLOSE,1)/REF(CLOSE,2)<0.97ANDOPEN/REF(CLOSE,1)<1.006ANDREF(COUNT(CLOSE/REF(CLOSE,1)>1.098,4)>0,1)ANDCLOSE/REF(CLOSE,1)>1.03;
X_11:=X_9ANDX_10;
擒牛诀:X_5ORX_8ORX_11;
通达信四线擒牛主图指标截图
评论(0)