伯乐看盘主图通达信指标公式源码
通达信指标公式源码日线级别地量,大盘个股K线同框主图指标
通达信指标公式源码⽇线级别地量,⼤盘个股K线同框主图指标{妞妞地量⽇线看盘主图}N:=350;Y1:=C>O OR (C=O AND C>=REF(C,1)); Y2:=CL1:=IF(Y1,VOL,0);L2:=IF(Y2,VOL,9999999999);T1:=CONST(FINDHIGHBARS(L1,0,N,1)); T2:=CONST(FINDHIGHBARS(L1,0,N,2)); T3:=CONST(FINDHIGHBARS(L1,0,N,3)); T4:=CONST(FINDHIGHBARS(L1,0,N,4)); T5:=CONST(FINDHIGHBARS(L1,0,N,5)); T6:=CONST(FINDHIGHBARS(L1,0,N,6)); T7:=CONST(FINDHIGHBARS(L1,0,N,7)); T8:=CONST(FINDHIGHBARS(L1,0,N,8)); T9:=CONST(FINDHIGHBARS(L1,0,N,9)); T10:=CONST(FINDHIGHBARS(L1,0,N,10)); D1:=CONST(FINDLOWBARS(L2,0,N,1));D2:=CONST(FINDLOWBARS(L2,0,N,2));D3:=CONST(FINDLOWBARS(L2,0,N,3));D4:=CONST(FINDLOWBARS(L2,0,N,4));D5:=CONST(FINDLOWBARS(L2,0,N,5));D6:=CONST(FINDLOWBARS(L2,0,N,6));D7:=CONST(FINDLOWBARS(L2,0,N,7));D8:=CONST(FINDLOWBARS(L2,0,N,8));D9:=CONST(FINDLOWBARS(L2,0,N,9));D10:=CONST(FINDLOWBARS(L2,0,N,10));DRAWLINE(CURRBARSCOUNT=T1+1,C,ISLASTBAR,REF(C,T1),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T2+1,C,ISLASTBAR,REF(C,T2),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T3+1,C,ISLASTBAR,REF(C,T3),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T4+1 ,C,ISLASTBAR,REF(C,T4),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T5+1 ,C,ISLASTBAR,REF(C,T5),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T6+1 ,C,ISLASTBAR,REF(C,T6),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T7+1 ,C,ISLASTBAR,REF(C,T7),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T8+1 ,C,ISLASTBAR,REF(C,T8),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T9+1 ,C,ISLASTBAR,REF(C,T9),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T10+1 ,C,ISLASTBAR,REF(C,T10),0),COLORM AGENTA;E:DRAWLINE(CURRBARSCOUNT=D1+1 ,C,ISLASTBAR,REF(C,D1),0),COLORG REEN;E1:DRAWLINE(CURRBARSCOUNT=D2+1,C,ISLASTBAR,REF(C,D2),0),COLORG REEN;E2:DRAWLINE(CURRBARSCOUNT=D3+1,C,ISLASTBAR,REF(C,D3),0),COLORG REEN;E3:DRAWLINE(CURRBARSCOUNT=D4+1 ,C,ISLASTBAR,REF(C,D4),0),COLOR GREEN;E4:DRAWLINE(CURRBARSCOUNT=D5+1,C,ISLASTBAR,REF(C,D5),0),COLORG REEN;E5:DRAWLINE(CURRBARSCOUNT=D6+1 ,C,ISLASTBAR,REF(C,D6),0),COLOR GREEN;E6:DRAWLINE(CURRBARSCOUNT=D7+1,C,ISLASTBAR,REF(C,D7),0),COLORG REEN;E7:DRAWLINE(CURRBARSCOUNT=D8+1,C,ISLASTBAR,REF(C,D8),0),COLORG REEN;E8:DRAWLINE(CURRBARSCOUNT=D9+1 ,C,ISLASTBAR,REF(C,D9),0),COLOR GREEN;E9:DRAWLINE(CURRBARSCOUNT=D10+1 ,C,ISLASTBAR,REF(C,D10),0),COLO RGREEN;HH:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(E,E1),E2),E3),E4),E5),E6 ),E7),E8),E9);T:=BARSLAST(C=CONST(HH));DRAWLINE(CURRBARSCOUNT=CONST(T)+1,C,ISLASTBAR,REF(C,T),0),COLO RYELLOW,LINETHICK2;将⼤盘和个股的K线⾛势变通后,放在同⼀个主图⾥,当K线出现重合⼀般会有变盘时间窗⼝。
通达信指标公式源码 操盘手指标 主图源码
{山东操盘手主图}MA5:MA(C,5),COLORYELLOW;MA10:MA(CLOSE,10),COLORFF00FF;MA30:MA(C,30),COLORRED,LINETHICK2;跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),CO LORGREEN,LINETHICK2;MA60:MA(CLOSE,60),COLORFFCC66;GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'),COLORWHITE; HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黄金'),COLORYELLOW; XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'启动金三角'),COLORRED;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 ANDGJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 ANDREF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'短线追涨'),COLORFF00FF;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起涨首日'); AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波启前兆');以下是全部条件选股公式部分!请根据需要选择使用!(建议配合本人发布的黑牛均线全部信号选股,合并使用,效果更佳!即“山东操盘手全部信号”AND"黑牛均线全部信号选股",寻找到同时发出信号的股票,分析研究!选股方法:在条件选股中,同时加入这两个条件)白金星星点灯选股公式:(20T 10% 100%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;E:=GJTJ1>60 AND GJTJ4>70;ENTERLONG:A AND B AND E;黄金星星点灯选股公式:(20T 10% 94.05%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; ENTERLONG:A AND B;启动金三角选股公式: (捉中线牛股起涨点)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; ENTERLONG:COUNT(XG,3)=1 AND XG;阶段震仓启动点选股公式:(黄金坑)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;B:=BARSLAST(CROSS(GJTJ4,GJTJ2));D:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;E:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;F:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;ENTERLONG:A AND B AND D AND E AND F;短线追涨选股公式: (高位横盘突破)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;ENTERLONG: D1 OR D2 OR D3;起涨首日选股公式: (精确定位起涨第一日)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(95,GJTJ1))<=2;B:=BARSLAST(CROSS(95,GJTJ2))<=2;E:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;F:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;ENTERLONG:A AND B AND E AND F AND TX;波启前兆选股公式: (波段启动前兆)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=GJTJ3=100;B:=GJTJ4<90;ENTERLONG:COUNT(A,2) = 2 AND B;山东操盘手组合选股(黄金+启动金三角)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);操盘手: M1 OR M2 OR M3;操盘手全部信号选股公式:GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 ANDBARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 ANDBARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BA:=BARSLAST(CROSS(97,GJTJ2))<=2 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 ANDBARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 ANDBARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;AQ:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;BQ:=BARSLAST(CROSS(GJTJ4,GJTJ2));DQ:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;EQ:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 ANDBARSLAST(CROSS(GJTJ1,GJTJ4))<3;FQ:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100; AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;AE:=GJTJ3=100;BE:=GJTJ4<90;操盘手: M1 OR M2 OR M3 OR D1 OR D2 OR D3 OR (AQ AND BQ AND DQ AND EQ AND FQ) OR (AW AND BW AND EWAND FW AND TX) OR (COUNT(AE,2) = 2 AND BE);。
通达信指标公式源码高抛低吸主图,组合看盘副图
主图1:高抛低吸五日线:MA(CLOSE,5);月线:MA(CLOSE,30);半年线:MA(CLOSE,120);年线:MA(CLOSE,250);VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR3:=LLV(LOW,5);VAR4:=HHV(HIGH,4);散户:=EMA((VAR1-VAR3)/(VAR4-VAR3)*100,4)*VAR2;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR2;DRAWTEXT(CROSS(散户,庄家) AND 散户<47,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>60,H+0.05,'←高抛'),COLOR80FF00;DRAWICON(CROSS(散户,庄家) AND 散户<47,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>60,H+0.05,2);市场成本:DMA(AMOUNT/V/100,V/CAPITAL),NODRAW;操盘成本:(MA(C,30)+MA(C,72))/2,COLORRED;市盈率:DYNAINFO(39),COLORFF00FF,NODRAW;TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORFF00FF;量_价:=1;CTKG:=1;W:=量_价;EPSL:=0.0001;ZZ:=(C+H+L)/3;TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};TJ0:=TJA OR TJB;TJ1:=H=L AND C>REF(C,1);{一字涨停};TJ2:=H=L AND C<REF(C,1);{一字跌停};TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盘量,白色}EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;差:=(JGL_DX*量_价)/20000,COLOR13AADD,NODRAW;DX:=JGL_DX*100,NODRAW;买:=量_价*(1+JGL_DX)/20000,COLOR1133AA,NODRAW;卖:=量_价*(1-JGL_DX)/20000,COLORFFFF00,NODRAW;量差:=买-卖,NODRAW,COLORYELLOW;STICKLINE(量差<=0,CLOSE,OPEN,3,0),COLOR009900;STICKLINE(量差<=0,CLOSE,OPEN,2.2,0),COLOR00BB00;STICKLINE(量差<=0,CLOSE,OPEN,1.5,0),COLOR00DD00;STICKLINE(量差<=0,CLOSE,OPEN,0.5,0),COLOR00FF00;STICKLINE(量差>=0,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(量差>=0,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(量差>=0,CLOSE,OPEN,1.5,0),COLOR0000FF;STICKLINE(量差>=0,CLOSE,OPEN,0.5,0),COLORCC66FF;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);STICKLINE(V2V,OPEN,CLOSE,0.5,0),COLORYELLOW;ZT:=C/REF(C,1)>1.097;STICKLINE(ZT,OPEN,CLOSE,0.5,0),COLORYELLOW;V3V:=V/REF(V,1)>=1.9 AND C<REF(C,1);STICKLINE(V3V,OPEN,CLOSE,0.5,0),COLORBLUE;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'↖抄底'),COLORRED;N1:=5;N2:=7;N3:=11;EM1:EMA(C,N1),COLORWHITE;EM2:EMA(C,N2),COLORRED;EM3:EMA(C,N3),COLORGREEN;TJ11:=BETWEEN(EM2,EM1,EM3);DRAWICON(TJ11=0,L,14);Z:=MA(C,120);VAR31:=(MA(C,5)-Z)/Z;VAR41:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/10 0)/(MA(AMOUNT,5)/MA(VOL,5)/100);D1:DRAWTEXT(CLOSE>Z AND REF(VAR41,1)<30 AND VAR41>REF(VAR41,1) AND REF(VAR41,1)<REF(VAR41,2) ,LOW ,'★B'),COLORRED;D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) ANDREF(VAR5,1)<REF(VAR5,2) AND VAR31<-0.3,LOW ,'★B'),COLORGREEN;D3:DRAWTEXT(CROSS(VAR41,5) AND VAR31<-0.4,LOW ,'★B'),COLORBLUE; 组合看盘:STICKLINE(C>0,0,100,15,0),COLORAA9988;VAR21:=REF(LOW,1);VAR31:=SMA(ABS(LOW-VAR21),3,1)/SMA(MAX(LOW-VAR21,0),3,1)*100; VAR41:=EMA(IF(CLOSE*1.3,VAR31*10,VAR31/10),3);VAR51:=LLV(LOW,30);VAR61:=HHV(VAR41,30);VAR71:=IF(MA(CLOSE,58),1,0);VAR81:=EMA(IF(LOW<=VAR51,(VAR41+VAR61*2)/2,0),3)/618*VAR71; VAR91:=IF(VAR81>100,100,VAR81);吸筹:STICKLINE(VAR91>-120,0,VAR91,0.8,0),COLOR00FFFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,18,10,1),COLORYELLOW;兰卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(兰卖,100,82,10,1),COLORFFFF00;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,12,6,1),COLORRED;蓝卖:=FILTER(CROSS(89,RSI),7);STICKLINE(蓝卖,100,93,6,0),COLORFF0000;粉买:FILTER(CROSS(RSI,20),7),COLORFF00FF;STICKLINE(粉买,0,6,6,0),COLORFF00FF;绿卖:=FILTER(CROSS(88,RSI),7);STICKLINE(绿卖,100,88,6,0),COLOR00FF00;{★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;}ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLORFF00FF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限+ 下限)/2,COLORYELLOW,POINTDOT,LINETHICK1;60,LINETHICK1,POINTDOT,COLORYELLOW;10,LINETHICK1,POINTDOT,COLORFF00FF;VAR2001:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3001:=SMA(SMA(VAR2001,3,1),3,1)/28.57;VAR4001:=EMA(VAR3001,5);操盘1:=3*VAR3001-2*VAR4001;A11:=CROSS(操盘1,VAR3001) AND VAR3001<2.1 AND C>O; STICKLINE(A11,20,0,4,0),COLOR0000FF;DRAWTEXT(A11,23,'满仓'),COLORRED;VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100); VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股:((3 * VAR4) - (2 * VAR5)), LINETHICK2 , COLORRED;VAR6:=(红线在上持股> (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股- 0.01),23); DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),COLORRED;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,'短'),COLORRED ; STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,20,0,3,0),COLORRED;A8A:=(C+O+L+H)/4;B8B:=REF(CLOSE,A8A);处女线:=SMA(MAX(CLOSE-B8B,0),2,1)/SMA(ABS(CLOSE-B8B),2,1)*100; DZ1:=处女线>REF(处女线,1) AND 处女线>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI修正1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;DZ:=DZ1 AND DZ2 AND DZ4;STICKLINE(DZ,0,10,4,0),COLOR00FFFF;DRAWTEXT(DZ,10,'天牛'),COLOR00FFFF;ZLCM:=EMA(WINNER(CLOSE)*70,3);SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3); ZZLKP:=ZLCM/(ZLCM+SHCM)*100;ZZLJJ:=EMA(ZZLKP,55);选股:(ZZLJJ>REF(ZZLJJ,1) AND REF(ZZLJJ,1)<REF(ZZLJJ,2))*25; STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;。
通达信公式指标源码 通达信马到成功主图指标 源码
通达信马到成功主图指标源码VV:=(C+L+H)/3;Y311:=IFF(CURRBARSCOUNT=1,(XMA(VV,3)*3-MA(VV,2)+VV)/3,XMA(VV,3)); Y312:=IFF(CURRBARSCOUNT=1,(XMA(Y311,3)*3-MA(Y311,2)+Y311)/3,XMA( Y311,3));Y313:=IFF(CURRBARSCOUNT=1,(XMA(Y312,3)*3-MA(Y312,2)+Y312)/3,XMA( Y312,3));Y314:=IFF(CURRBARSCOUNT=1,(XMA(Y313,3)*3-MA(Y313,2)+Y313)/3,XMA( Y313,3));Y315:=IFF(CURRBARSCOUNT=1,(XMA(Y314,3)*3-MA(Y314,2)+Y314)/3,XMA( Y314,3));Y316:=IFF(CURRBARSCOUNT=1,(XMA(Y315,3)*3-MA(Y315,2)+Y315)/3,XMA( Y315,3));Y317:=IFF(CURRBARSCOUNT=1,(XMA(Y316,3)*3-MA(Y316,2)+Y316)/3,XMA( Y316,3));Y318:=IFF(CURRBARSCOUNT=1,(XMA(Y317,3)*3-MA(Y317,2)+Y317)/3,XMA( Y317,3));Y319:=IFF(CURRBARSCOUNT=1,(XMA(Y318,3)*3-MA(Y318,2)+Y318)/3,XMA( Y318,3));Y320:=IFF(CURRBARSCOUNT=1,(XMA(Y319,3)*3-MA(Y319,2)+Y319)/3,XMA( Y319,3));Y321:=IFF(CURRBARSCOUNT=1,(XMA(Y320,3)*3-MA(Y320,2)+Y320)/3,XMA( Y320,3));Y322:=IFF(CURRBARSCOUNT=1,(XMA(Y321,3)*3-MA(Y321,2)+Y321)/3,XMA( Y321,3));Y322,3));Y324:=IFF(CURRBARSCOUNT=1,(XMA(Y323,3)*3-MA(Y323,2)+Y323)/3,XMA( Y323,3));Y325:=IFF(CURRBARSCOUNT=1,(XMA(Y324,3)*3-MA(Y324,2)+Y324)/3,XMA( Y324,3));Y326:=IFF(CURRBARSCOUNT=1,(XMA(Y325,3)*3-MA(Y325,2)+Y325)/3,XMA( Y325,3));Y327:=IFF(CURRBARSCOUNT=1,(XMA(Y326,3)*3-MA(Y326,2)+Y326)/3,XMA( Y326,3));Y328:=IFF(CURRBARSCOUNT=1,(XMA(Y327,3)*3-MA(Y327,2)+Y327)/3,XMA( Y327,3));Y329:=IFF(CURRBARSCOUNT=1,(XMA(Y328,3)*3-MA(Y328,2)+Y328)/3,XMA( Y328,3));Y330:=IFF(CURRBARSCOUNT=1,(XMA(Y329,3)*3-MA(Y329,2)+Y329)/3,XMA( Y329,3));Y331:=IFF(CURRBARSCOUNT=1,(XMA(Y330,3)*3-MA(Y330,2)+Y330)/3,XMA( Y330,3));Y332:=IFF(CURRBARSCOUNT=1,(XMA(Y331,3)*3-MA(Y331,2)+Y331)/3,XMA( Y331,3));Y333:=IFF(CURRBARSCOUNT=1,(XMA(Y332,3)*3-MA(Y332,2)+Y332)/3,XMA( Y332,3));Y334:=IFF(CURRBARSCOUNT=1,(XMA(Y333,3)*3-MA(Y333,2)+Y333)/3,XMA( Y333,3));Y335:=IFF(CURRBARSCOUNT=1,(XMA(Y334,3)*3-MA(Y334,2)+Y334)/3,XMA( Y334,3));Y336:=IFF(CURRBARSCOUNT=1,(XMA(Y335,3)*3-MA(Y335,2)+Y335)/3,XMA( Y335,3));Y337:=IFF(CURRBARSCOUNT=1,(XMA(Y336,3)*3-MA(Y336,2)+Y336)/3,XMA( Y336,3));Y338:=IFF(CURRBARSCOUNT=1,(XMA(Y337,3)*3-MA(Y337,2)+Y337)/3,XMA( Y337,3));Y339:=IFF(CURRBARSCOUNT=1,(XMA(Y338,3)*3-MA(Y338,2)+Y338)/3,XMA( Y338,3));Y340:=IFF(CURRBARSCOUNT=1,(XMA(Y339,3)*3-MA(Y339,2)+Y339)/3,XMA( Y339,3));Y341:=IFF(CURRBARSCOUNT=1,(XMA(Y340,3)*3-MA(Y340,2)+Y340)/3,XMA( Y340,3));Y342:=IFF(CURRBARSCOUNT=1,(XMA(Y341,3)*3-MA(Y341,2)+Y341)/3,XMA( Y341,3));Y343:=IFF(CURRBARSCOUNT=1,(XMA(Y342,3)*3-MA(Y342,2)+Y342)/3,XMA( Y342,3));Y344:=IFF(CURRBARSCOUNT=1,(XMA(Y343,3)*3-MA(Y343,2)+Y343)/3,XMA( Y343,3));Y344,3));Y346:=IFF(CURRBARSCOUNT=1,(XMA(Y345,3)*3-MA(Y345,2)+Y345)/3,XMA( Y345,3));Y347:=IFF(CURRBARSCOUNT=1,(XMA(Y346,3)*3-MA(Y346,2)+Y346)/3,XMA( Y346,3));Y348:=IFF(CURRBARSCOUNT=1,(XMA(Y347,3)*3-MA(Y347,2)+Y347)/3,XMA( Y347,3));Y349:=IFF(CURRBARSCOUNT=1,(XMA(Y348,3)*3-MA(Y348,2)+Y348)/3,XMA( Y348,3));Y350:=IFF(CURRBARSCOUNT=1,(XMA(Y349,3)*3-MA(Y349,2)+Y349)/3,XMA( Y349,3));Y351:=IFF(CURRBARSCOUNT=1,(XMA(Y350,3)*3-MA(Y350,2)+Y350)/3,XMA( Y350,3));Y352:=IFF(CURRBARSCOUNT=1,(XMA(Y351,3)*3-MA(Y351,2)+Y351)/3,XMA( Y351,3));Y353:=IFF(CURRBARSCOUNT=1,(XMA(Y352,3)*3-MA(Y352,2)+Y352)/3,XMA( Y352,3));Y354:=IFF(CURRBARSCOUNT=1,(XMA(Y353,3)*3-MA(Y353,2)+Y353)/3,XMA( Y353,3));Y355:=IFF(CURRBARSCOUNT=1,(XMA(Y354,3)*3-MA(Y354,2)+Y354)/3,XMA( Y354,3));Y356:=IFF(CURRBARSCOUNT=1,(XMA(Y355,3)*3-MA(Y355,2)+Y355)/3,XMA( Y355,3));Y357:=IFF(CURRBARSCOUNT=1,(XMA(Y356,3)*3-MA(Y356,2)+Y356)/3,XMA( Y356,3));Y358:=IFF(CURRBARSCOUNT=1,(XMA(Y357,3)*3-MA(Y357,2)+Y357)/3,XMA( Y357,3));Y359:=IFF(CURRBARSCOUNT=1,(XMA(Y358,3)*3-MA(Y358,2)+Y358)/3,XMA( Y358,3));Y360:=IFF(CURRBARSCOUNT=1,(XMA(Y359,3)*3-MA(Y359,2)+Y359)/3,XMA( Y359,3));Y361:=IFF(CURRBARSCOUNT=1,(XMA(Y360,3)*3-MA(Y360,2)+Y360)/3,XMA( Y360,3));Y362:=IFF(CURRBARSCOUNT=1,(XMA(Y361,3)*3-MA(Y361,2)+Y361)/3,XMA( Y361,3));Y363:=IFF(CURRBARSCOUNT=1,(XMA(Y362,3)*3-MA(Y362,2)+Y362)/3,XMA( Y362,3));Y364:=IFF(CURRBARSCOUNT=1,(XMA(Y363,3)*3-MA(Y363,2)+Y363)/3,XMA( Y363,3));Y365:=IFF(CURRBARSCOUNT=1,(XMA(Y364,3)*3-MA(Y364,2)+Y364)/3,XMA( Y364,3));Y366:=IFF(CURRBARSCOUNT=1,(XMA(Y365,3)*3-MA(Y365,2)+Y365)/3,XMA( Y365,3));Y366,3));Y368:=IFF(CURRBARSCOUNT=1,(XMA(Y367,3)*3-MA(Y367,2)+Y367)/3,XMA( Y367,3));Y369:=IFF(CURRBARSCOUNT=1,(XMA(Y368,3)*3-MA(Y368,2)+Y368)/3,XMA( Y368,3));Y370:=IFF(CURRBARSCOUNT=1,(XMA(Y369,3)*3-MA(Y369,2)+Y369)/3,XMA( Y369,3));Y371:=IFF(CURRBARSCOUNT=1,(XMA(Y370,3)*3-MA(Y370,2)+Y370)/3,XMA( Y370,3));Y372:=IFF(CURRBARSCOUNT=1,(XMA(Y371,3)*3-MA(Y371,2)+Y371)/3,XMA( Y371,3));Y373:=IFF(CURRBARSCOUNT=1,(XMA(Y372,3)*3-MA(Y372,2)+Y372)/3,XMA( Y372,3));Y374:=IFF(CURRBARSCOUNT=1,(XMA(Y373,3)*3-MA(Y373,2)+Y373)/3,XMA( Y373,3));Y375:=IFF(CURRBARSCOUNT=1,(XMA(Y374,3)*3-MA(Y374,2)+Y374)/3,XMA( Y374,3));Y376:=IFF(CURRBARSCOUNT=1,(XMA(Y375,3)*3-MA(Y375,2)+Y375)/3,XMA( Y375,3));Y377:=IFF(CURRBARSCOUNT=1,(XMA(Y376,3)*3-MA(Y376,2)+Y376)/3,XMA( Y376,3));Y378:=IFF(CURRBARSCOUNT=1,(XMA(Y377,3)*3-MA(Y377,2)+Y377)/3,XMA( Y377,3));Y379:=IFF(CURRBARSCOUNT=1,(XMA(Y378,3)*3-MA(Y378,2)+Y378)/3,XMA( Y378,3));Y380:=IFF(CURRBARSCOUNT=1,(XMA(Y379,3)*3-MA(Y379,2)+Y379)/3,XMA( Y379,3));Y381:=IFF(CURRBARSCOUNT=1,(XMA(Y380,3)*3-MA(Y380,2)+Y380)/3,XMA( Y380,3));Y382:=IFF(CURRBARSCOUNT=1,(XMA(Y381,3)*3-MA(Y381,2)+Y381)/3,XMA( Y381,3));Y383:=IFF(CURRBARSCOUNT=1,(XMA(Y382,3)*3-MA(Y382,2)+Y382)/3,XMA( Y382,3));Y384:=IFF(CURRBARSCOUNT=1,(XMA(Y383,3)*3-MA(Y383,2)+Y383)/3,XMA( Y383,3));Y385:=IFF(CURRBARSCOUNT=1,(XMA(Y384,3)*3-MA(Y384,2)+Y384)/3,XMA( Y384,3));Y386:=IFF(CURRBARSCOUNT=1,(XMA(Y385,3)*3-MA(Y385,2)+Y385)/3,XMA( Y385,3));Y387:=IFF(CURRBARSCOUNT=1,(XMA(Y386,3)*3-MA(Y386,2)+Y386)/3,XMA( Y386,3));Y388:=IFF(CURRBARSCOUNT=1,(XMA(Y387,3)*3-MA(Y387,2)+Y387)/3,XMA( Y387,3));Y388,3));Y390:=IFF(CURRBARSCOUNT=1,(XMA(Y389,3)*3-MA(Y389,2)+Y389)/3,XMA( Y389,3));Y391:=IFF(CURRBARSCOUNT=1,(XMA(Y390,3)*3-MA(Y390,2)+Y390)/3,XMA( Y390,3));Y392:=IFF(CURRBARSCOUNT=1,(XMA(Y391,3)*3-MA(Y391,2)+Y391)/3,XMA( Y391,3));Y393:=IFF(CURRBARSCOUNT=1,(XMA(Y392,3)*3-MA(Y392,2)+Y392)/3,XMA( Y392,3));Y394:=IFF(CURRBARSCOUNT=1,(XMA(Y393,3)*3-MA(Y393,2)+Y393)/3,XMA( Y393,3));Y395:=IFF(CURRBARSCOUNT=1,(XMA(Y394,3)*3-MA(Y394,2)+Y394)/3,XMA( Y394,3));Y396:=IFF(CURRBARSCOUNT=1,(XMA(Y395,3)*3-MA(Y395,2)+Y395)/3,XMA( Y395,3));Y397:=IFF(CURRBARSCOUNT=1,(XMA(Y396,3)*3-MA(Y396,2)+Y396)/3,XMA( Y396,3));Y398:=IFF(CURRBARSCOUNT=1,(XMA(Y397,3)*3-MA(Y397,2)+Y397)/3,XMA( Y397,3));Y399:=IFF(CURRBARSCOUNT=1,(XMA(Y398,3)*3-MA(Y398,2)+Y398)/3,XMA( Y398,3));Y400:=IFF(CURRBARSCOUNT=1,(XMA(Y399,3)*3-MA(Y399,2)+Y399)/3,XMA( Y399,3));Y401:=IFF(CURRBARSCOUNT=1,(XMA(Y400,3)*3-MA(Y400,2)+Y400)/3,XMA( Y400,3));Y402:=IFF(CURRBARSCOUNT=1,(XMA(Y401,3)*3-MA(Y401,2)+Y401)/3,XMA( Y401,3));Y403:=IFF(CURRBARSCOUNT=1,(XMA(Y402,3)*3-MA(Y402,2)+Y402)/3,XMA( Y402,3));Y404:=IFF(CURRBARSCOUNT=1,(XMA(Y403,3)*3-MA(Y403,2)+Y403)/3,XMA( Y403,3));Y405:=IFF(CURRBARSCOUNT=1,(XMA(Y404,3)*3-MA(Y404,2)+Y404)/3,XMA( Y404,3));Y406:=IFF(CURRBARSCOUNT=1,(XMA(Y405,3)*3-MA(Y405,2)+Y405)/3,XMA( Y405,3));LL:=Y406;{日周期}{险1:=Y396*1.1,COLORRED,POINTDOT;}险2:=Y396*1.125,COLORYELLOW,POINTDOT;{险3:Y396*1.15,COLORRED,POINTDOT;}{良1:=Y396*0.9,COLORLIBLUE,POINTDOT;}良2:=Y396*0.875,COLORGREEN,POINTDOT;{良3:Y396*0.85,COLORLIBLUE,POINTDOT;}AA:=MA((2*CLOSE+HIGH+LOW)/4,5);通道1:=AA*102/100;通道2:=AA*(200-102)/30;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);通道3:=(1+7/100)*DD;通道4:=(1-7/100)*DD;股价:=C;股价运动:=股价,LINETHICK2,COLORBLUE;运动趋势:=Y406,LINETHICK1,COLORWHITE;风险区:运动趋势*1.1,COLORRED;高风险区2:=运动趋势*1.125,COLORRED;高风险区3:=运动趋势*1.15,COLORRED;良机区1:=运动趋势*0.9,COLORGREEN;良机区2:=运动趋势*0.875,COLORGREEN;良机区:运动趋势*0.85,COLORGREEN;T:=CLOSE/REF(CLOSE,1)*1000-1000;QS2:=XMA(XMA(XMA(T,2),2),2);QS4:=XMA(XMA(XMA(T,4),4),4);QS6:=XMA(XMA(XMA(T,6),6),6);高风险:=((C-运动趋势)/运动趋势*100>10 AND C>通道3) OR ((H-运动趋势)/运动趋势*100>10 AND H>通道3 ) OR ((O-运动趋势)/运动趋势*100>10 AND O>通道3);DRAWTEXT(高风险,H,'卖');独醉天下:=((C-运动趋势)/运动趋势*100<-10 AND C<通道4) OR ((O-运动趋势)/运动趋势*100<-10 AND O<通道4 ) OR((L-运动趋势)/运动趋势*100<-10 AND L<通道4);DRAWTEXT(独醉天下,良机区,'买');MA5:MA(CLOSE,M1),COLORWHITE;MA10:MA(CLOSE,M2),COLORYELLOW;MA20:=MA(CLOSE,M3),COLORMAGENTA;MA30:=MA(CLOSE,M7),COLORBLUE;MA60:=MA(CLOSE,M4),COLORBROWN;MA120:=MA(CLOSE,M5),COLORGRAY;MA250:=MA(CLOSE,M6),COLORLICYAN;DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;DRAWTEXT((ZIG(3,5)>REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.94,'千里马'),COLORBROWN; DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND(REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;DRAWTEXT(VARA=20,LOW*0.95,'世纪大底') COLORYELLOW;涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0); STICKLINE(涨停,O,C,3,0),COLORRED;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;TY:=H;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);阻力:=REF(H,BARSLAST(HD)),COLOR00FF00;{} DRAWTEXT(CROSS(C,阻力),LOW*0.93,'突破'),COLORFF00FF;最高位:=BARSLAST((HHV(C,76)=C AND WINNER(C)*100>90 ));最低位:=BARSLAST((LLV(L,最高位)=L));最高价:=REF(C,最高位);最低价:=LLV(L,最高位);振幅合理:=(最高价-最低价)/最低价>0.1;前高条件:=最高位<77 AND 最高位>10 AND 最高位>最低位AND 振幅合理; 三日振幅:=(HHV(MAX(C,O),3)-LLV(MIN(C,O),3))/LLV(MIN(C,O),3)*100<5;今日大阳:=C/REF(C,1)>1.055;上影长度1:= H-MAX(C,O);下影长度1:=MIN(C,O)-L;K线长度1:=ABS(C-O);纺锤:=(下影长度1 >K线长度1/5 AND 上影长度1>K线长度1/5 ) ;去影线1:=(下影长度1=0 OR 上影长度1=0);TY1:=C;SR11:=REF(TY1,10)=HHV(TY1,2*10+1);SR21:=FILTER(SR11,10);SR31:=BACKSET(SR21,10+1);HD1:=FILTER(SR31,10);前高11:=REF(C,BARSLAST(HD1));预判过前高:=C*1.115>前高11;买入8:=REF(三日振幅,1) AND 今日大阳AND REF(前高条件,1) AND 去影线1 AND 预判过前高;DRAWTEXT(买入8,L*0.99,'大牛股'),COLORYELLOW;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);BB:=(C-LB1)/(UB-LB)*100,NODRAW;MA6:=MA(BB,6),NODRAW;DRAWICON(CROSS(BB,100),BB,1),NODRAW;DRAWTEXT(CROSS(BB,100),L*0.96,'疾奔'),COLORCYAN;MAC5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);M5:=MA(MAC5,5);AA1:=PLOYLINE(CROSS(MAC5,M5),M5);AAB:=PLOYLINE(CROSS(M5,MAC5),MAC5);迈蹄疾奔:=COUNT(CROSS(MAC5,M5),AA1<REF(AA1,5) ANDAAB>REF(AAB,5));DRAWTEXT(迈蹄疾奔,L*0.97,'迈蹄'),COLORBLUE;MAA5:=MA(C,5);ZH:=ABS(MAA5-MA20)/MA20*100<=10;GG:=ABS(MAA5-MA30)/MA30*100<=10;HH:=MAA5>REF(MAA5,1);QS:=MA20>REF(MA20,1);ZZ:=MA30>REF(MA30,1);DTPL:=MA20>MA30 AND MA30>MA120;QQ:=DTPL AND QS AND ZZ AND COUNT(HH,4)<=1;HY:=C>MAA5 AND ((HH AND NOT(REF(HH,1))) OR C>REF(C,3));TT:=HY AND (ZH OR GG) AND QQ;RR:=CAPITAL>3000000;WW:=TT AND NOT(REF(TT,1));WW1:=CROSS(MACD.MACD,0) AND C>MA(C,5);DT:=MA(AMOUNT,6)>MA(AMOUNT,12) ANDMA(AMOUNT,12)>MA(AMOUNT,24);启动:=WW AND COUNT((MA10>MA20),5)=5 AND WW1 AND DT AND RR; DRAWTEXT(启动,LOW*0.99,'龙头'),COLORRED;DRAWTEXT_FIX(1,0,0.01,0,DYBLOCK)COLORGRAY;DRAWTEXT_FIX(1,0,0.08,0,HYBLOCK)COLORGRAY;AAA:= REF(CLOSE,13);BBB:=SMA(MAX(CLOSE-AAA,0),34,1)/SMA(ABS(CLOSE-AAA),34,1)*1000; HHH:=BBB-LLV(BBB,11);DQ:=(MA(HHH,21)*3+HHH*13)/16;DQ2:=REVERSE(DQ);PJZH:=(C+H+L)/3;DDD:=MA(PJZH,4);CZUO:=DDD;MMZL:=LLV(DDD,8);XG1:=(CZUO-MMZL)>0 AND REF((CZUO-MMZL),1)=0;BZHA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*10;BZHB:=SMA(BZHA,3,1);AAAA:=SMA(BZHB,3,1);ABB:=IF(AAAA>=REF(AAAA,1),AAAA,0);XG2:=AAAA=ABB AND AAAA<5.5 AND REF(ABB,1)=0 ANDAAAA>=REF(AAAA,1);XG:=XG2 AND XG1;FXH1:=(H-C-REF(C,1))/REF(C,1)*100;FXH2:=(H-REF(C,1)-REF(C,2))/REF(C,2)*100;FXH3:=(H-REF(C,2)-REF(C,3))/REF(C,3)*100;FXH4:=(H-REF(C,3)-REF(C,4))/REF(C,4)*100;FXH5:=(H-REF(C,4)-REF(C,5))/REF(C,5)*100;FXH6:=(H-REF(C,5)-REF(C,6))/REF(C,6)*100;FXH7:=(H-REF(C,6)-REF(C,7))/REF(C,7)*100;FXH8:=(H-REF(C,7)-REF(C,8))/REF(C,8)*100;FXH9:=(H-REF(C,8)-REF(C,9))/REF(C,9)*100;FXH10:=(H-REF(C,9)-REF(C,10))/REF(C,10)*100;FXD5:=(FXH1+FXH2+FXH3+FXH4+FXH5),;FXD10:=(FXH1+FXH2+FXH3+FXH4+FXH5+FXH6+FXH7+FXH8+FXH9+FXH1 0),;ZXFA5:=(((SUM(FXD5,3))*30)-MA(SUM(FXD5,3),45))/10,COLORYELLOW; ZXFA10:=(FXD10*30-(REF(SUM(FXD10,3),1)))/10,COLORMAGENTA;ZXFA2:=(FXD5*30-(REF(SUM(FXD5,3),1)))/10,COLORGREEN;ZXF:=(H-C-REF(C,1))/REF(C,1)*100;AAX1:=((SUM(ZXF,3))*30)-MA(SUM(ZXF,3),45),COLORWHITE;AAX3:=ZXF*30-(REF(SUM(ZXF,3),1)),COLORCYAN;XH:=MA((ZXFA10+ZXFA2+ZXFA5+AAX1+AAX3)/5000,13),COLORMAGENTA; FL1:=(L-O-REF(O,1))/REF(O,1)*100;FL2:=(L-REF(O,1)-REF(O,2))/REF(O,2)*100;FL3:=(L-REF(O,2)-REF(O,3))/REF(O,3)*100;FL4:=(L-REF(O,3)-REF(O,4))/REF(O,4)*100;FL5:=(L-REF(O,4)-REF(O,5))/REF(O,5)*100;FL6:=(L-REF(O,5)-REF(O,6))/REF(O,6)*100;FL7:=(L-REF(O,6)-REF(O,7))/REF(O,7)*100;FL8:=(L-REF(O,7)-REF(O,8))/REF(O,8)*100;FL9:=(L-REF(O,8)-REF(O,9))/REF(O,9)*100;FL10:=(L-REF(O,9)-REF(O,10))/REF(O,10)*100;FDK5:=(FL1+FL2+FL3+FL4+FL5),;FDK10:=(FL1+FL2+FL3+FL4+FL5+FL6+FL7+FL8+FL9+FL10),;ZFAK5:=(((SUM(FDK5,3))*30)-MA(SUM(FDK5,3),45))/10,COLORYELLOW; ZFAK10:=(FDK10*30-(REF(SUM(FDK10,3),1)))/10,COLORMAGENTA;ZFAK2:=(FDK5*30-(REF(SUM(FDK5,3),1)))/10,COLORGREEN;ZFK:=(L-O-REF(O,1))/REF(O,1)*100;AAK1:=((SUM(ZFK,3))*30)-MA(SUM(ZFK,3),45),COLORWHITE;AAK3:=ZFK*30-(REF(SUM(ZFK,3),1)),COLORCYAN;XL:=MA((ZFAK10+ZFAK2+ZFAK5+AAK1+AAK3)/5000,13),COLORCYAN; XHZ:=MA(XH-REF(XH,1),3)*100;XLZ:=-MA(XL-REF(XL,1),3)*100;波段高点:= HHV(HIGH,9);波段低点:= CLOSE;坑:=波段高点/波段低点;SS:=SUM(V/(60*4),FROMOPEN=1);YQ:=(XG=1 AND DQ<5&&XLZ<0.2&&XHZ>-0.3&&坑<1.08&&V<SS*1.05); DRAWTEXT(YQ,LOW*0.98,'跃起'),COLORYELLOW;趋线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD,NODRAW; ABA:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-30,趋线),1) AND CROSS(趋线,-30)) OR 趋线=-30;卖田:=IF(ABA,65,12),COLORYELLOW,LINETHICK2;BAB:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-20 AND 趋线>-25) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-20,趋线),1) AND CROSS(趋线,-20));见底:=IF(BAB,58,12),COLORRED,LINETHICK2;CAC:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-25 AND 趋线>-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-25,趋线),1) AND CROSS(趋线,-25));机会:=IF(CAC,40,12);STICKLINE(CROSS(-20,趋线),CLOSE,OPEN,3,0),COLORYELLOW; DRAWTEXT(CROSS(-20,趋线),LOW*0.92,'金马厩'),COLORYELLOW;TA:=BARSLAST(C>REF(C,1)*1.095 AND C=H);TJ:=V<=REF(V,TA)/8;TJ1:=MAX(C,O)/MIN(C,O)<1.005 AND H>MAX(C,O) AND L<MIN(C,O); XAG:=TJ AND COUNT(TJ,T)=1 AND L=LLV(L,10) AND TJ1;DRAWTEXT(XAG,L*0.91,'地量十字星'),COLORYELLOW;。
通达信指标公式源码 六线通道主图指标源码
估:=(2*CLOSE+LOW+HIGH)/4;界:=SLOPE(CLOSE,21)*20+CLOSE;文:=EMA(估,40)*0.85;卖线:=EMA(估,55)*1.3;捞钱线:=EMA(估,55);保本线:=(捞钱线+文)/2;STICKLINE(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,O,C,3,0),COLORRED;STICKLINE(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,L,H,0.2,0),COLORRED;STICKLINE(FILTER(C>=捞钱线AND L<捞钱线,2),O,C,3,0),COLORYELLOW; STICKLINE(FILTER(C>=捞钱线AND L<捞钱线,2),L,H,0.2,0),COLORYELLOW; STICKLINE(FILTER(CROSS(卖线,CLOSE),3),O,C,3,0),COLORGREEN; STICKLINE(FILTER(CROSS(卖线,CLOSE),3),L,H,0.2,0),COLORGREEN; DRAWICON(C>=保本线AND REF(C,1)<保本线AND REF(C,2)>保本线,L*0.96,9);DRAWICON(FILTER(C>=捞钱线AND L<捞钱线,2),L*0.98,1); DRAWICON(FILTER(CROSS(卖线,CLOSE),3),H*1.03,2);V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;VAR1:=IF(DATE>=10211201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;风险线:EMA(VAR4,45)*1.15,COLORFFFF00;必卖线:EMA(VAR4,55)*1.3,POINTDOT,LINETHICK4;底线:EMA(VAR4,40)*0.85,COLORFF00FF;铁底线:EMA(VAR4,88)*0.7,POINTDOT,LINETHICK4,COLORGREEN;成本线:EMA(VAR4,55),COLORYELLOW;价值中枢: (成本线+底线)/2,COLORWHITE;DRAWTEXT(ISLASTBAR,风险线,'风险'),COLORFFFF00;DRAWTEXT(ISLASTBAR,必卖线,'必卖'),COLORYELLOW;DRAWTEXT(ISLASTBAR,底线,'安全'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,铁底线,'铁底'),COLORYELLOW;DRAWTEXT(ISLASTBAR,成本线,'拉升'),COLORRED;DRAWTEXT(ISLASTBAR,价值中枢,'强弱'),COLORWHITE;AAPP:MA(MA(CLOSE,3),1),LINETHICK3,COLORGREEN;IF(AAPP>=REF(AAPP,1),AAPP,DRAWNULL),COLORFF00FF,LINETHICK3; XXS:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XXS,C),H*1.02,'开盘逃'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,2);MA15:=EMA(CLOSE,26);DRAWTEXT(CROSS(FF,MA15),(L OW * 0.999),'中继'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'逃顶'),COLOR1880FF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;XXS1:=MA(HIGH,5)*(1+5/100);DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,HIGH*1.02,'明走'),COLORYELLOW;多头线:=EMA(C,1.5),COLOR0000CC;空头线:=EMA(C,5),COLORMAGENTA;均衡线:=EMA(空头线,5),COLORGREEN;VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;ZAI:=FILTER(VARF1 AND VARF2,2);DRAWTEXT(ZAI,均衡线*0.99,'↖主力拉升'),COLOR00FF00;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120),COLORLIBLUE;MA250:=MA(CLOSE,250),COLORBLUE;DRAWTEXT(CROSS(MA20,MA30),L,'牛相关注20'),COLORMAGENTA;DRAWTEXT(CROSS(MA30,MA60),L,'初生牛犊30'),COLORGREEN; DRAWTEXT(CROSS(MA60,MA120),L,'霸占大牛60'),COLORBLUE; DRAWTEXT(CROSS(MA120,MA250),L,'牛气冲天120'),COLORYELLOW;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,1.5,0),COLORYELLOW,LINETHICK2;M1:=MA(CLOSE,13);A:=MA(C,5);DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "I">REF("I",1) AND CROSS("I",-100),L*0.99,'⊕底');DRAWTEXT(CROSS(A,M1),M1,'◣周加'),COLORWHITE;DRAWTEXT(A>=REF(A,1) AND REF(A,1)<REF(A,2),A,'◣周买'),COLORYELLOW;{周线上买入,中期持有,月线上更好};{PEAKBARS未来判断明日顶部,收市前指标不消失请逃顶}VAR3A:=PEAKBARS(3,15,1)<10;VAR5A:=IF(VAR3A=1,2,0);顶:= IF(VAR5A=2,2,0);顶A:=IF(顶>REF(顶,1),50,0);DRAWTEXT(顶A=50,H * 1.02,'逃命'),COLOR00FF00;T:=BARSLAST(L>REF(H,1));E:=COUNT(L<REF(H,T+1),T)<2;DRAWTEXT(L<REF(H,T+1 ) AND E,L*0.99,'缺口回补'),COLOR0099FF;Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,L*0.999,'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,H*1.01,'小心跌停'),COLORGREEN;B36:=MA(CLOSE,3) - MA(CLOSE,6);B612:=MA(CLOSE,6) - MA(CLOSE,12);J:=((B36)/(CLOSE))*(10);J1:=((B612)/(CLOSE))*(10);DRAWTEXT((J < (-0.2)) AND (J1 < (-0.2)) AND CROSS(J,J1),(LOW)*(0.999),'大牛'),COLORRED;。
【指标公式源码下载】通达信看盘极品主图指标公式【多线】
通达信看盘极品主图指标公式【多线】MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线: (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10) +9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*R EF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK1,COLORY ELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),CIRCLEDOT,COLORLIMAGENTA;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ;DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW;。
通达信 指标公式源码大全
【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2 .382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*RE F(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CL OSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT(上攻周期>3,5)>=3 AND SG,0,上攻周期,1.5,0),COLORRED; XG: COUNT(COUNT(上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VA R1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LL V(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=( LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;金叉:短线>中线 AND REF(短线,1)=REF(中线,1),NODRAW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKL INE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR000 0F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),CO LOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0) ,COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+ T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3 )+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE, T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETHICK2;【通达信】牛准反弹(快线、慢线)-指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);ELI空:=SMA(慢线,M2,1);ELI牛股:=IF(BARSLAST(CROSS(慢线,ELI空))<P AND CROSS(慢线,ELI空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹 OR ELI牛股;【通达信】启动提示(平台线、启动线)-指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF;平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线,启动线,平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线,启动线,平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线,强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0.35,'注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙-编著>75,AABB,AABB*0.99,15,1),COLOR0000FF; VARZT:=BARSLAST(平台启动);DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2,'平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)-指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED;牛线:3*M2-2*分水岭,LINETHICK2,COLORFF00FF ;熊线:4*分水岭-3*M2,LINETHICK2,COLORGREEN;IF (牛线<=熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1),熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;。
通达信指标公式源码 波段操盘主图指标 源码 无未来
指标用于波段操作!红线持股、绿线持币。
买、卖有提示,配合其他指标更准确简单实用,公式只是参考要灵活应用。
N1:=13;VAR1:=REF(C,1);VAR2:=SMA(MAX(C-VAR1,0),N1,1)/SMA(ABS(C-VAR1),N1,1)*1000;VAR3:=DRAWLINE(VAR2>=HHV(VAR2,N1),VAR2,VAR2<=LLV(VAR2,N1),VAR2,1); VAR4:=VAR2=VAR3;VAR5:=VAR2<REF(VAR2,1);RSV:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;K:=SMA(RSV,4,1);D:=SMA(K,4,1);J:=4*K-2*D;VAR6:=(2*C+H+L)/4;{可将3该为4,信号少点}VAR7:=EMA(EMA(EMA(VAR6,4),4),4);{可将3该为4,信号少点}VAR8:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;VAR9:=MA(VAR8,4)+0.03;VAR10:=MA(VAR8,1);KB:=EMA(C,4)-EMA(C,18);DB:=EMA(KB,4);AA:=BARSCOUNT(C);AH:=HHV(H,120);AL:=LLV(L,120);A0:=(AH-AL)/30;VAR2S:=(2*CLOSE+HIGH+LOW)/4;VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,3.2,0),COLOR004400; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.7,0),COLOR006600; STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,2.1,0),COLOR008800;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,1.5,0),COLOR00AA00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.9,0),COLOR00CC00;STICKLINE(KB<DB AND DB<REF(DB,1),C,OPEN,0.3,0),COLOR00EE00;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,3.2,0),COLOR000055;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.7,0),COLOR000077;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,2.1,0),COLOR000099;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,1.5,0),COLOR0000BB;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.9,0),COLOR0000DD;STICKLINE(KB>DB AND DB>REF(DB,1),C,OPEN,0.3,0),COLOR0000FF;STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,3.15,0),COLORAA1100; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,2.45,0),COLORAA3300; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.75,0),COLORAA5500; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,1.05,0),COLORAA7700; STICKLINE(CROSS(VAR9,VAR10) AND J>65,H,OPEN,0.35,0),COLORAA9900; STICKLINE(VAR4 AND VAR5,L,OPEN,3.15,0),COLOR1111FF;STICKLINE(VAR4 AND VAR5,L,OPEN,2.45,0),COLOR3333FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.75,0),COLOR5555FF;STICKLINE(VAR4 AND VAR5,L,OPEN,1.05,0),COLOR7777FF;STICKLINE(VAR4 AND VAR5,L,OPEN,0.35,0),COLOR9999FF;STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,3.15,0),COLOR770077; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,2.45,0),COLOR990099; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.75,0),COLORBB00BB; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,1.05,0),COLORDD00DD; STICKLINE(CROSS(散户,庄家) AND 散户<30,L,OPEN,0.35,0),COLORFF00FF; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,3.15,0),COLOR337777; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,2.45,0),COLOR339999; STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.75,0),COLOR33BBBB;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,1.05,0),COLOR33DDDD;STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L,OPEN,0.35,0),COLOR33FFFF; STICKLINE((AA+0)/34=FLOOR((AA+0)/34),L,OPEN,3.15,1),COLORFFFFFF; DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),L*1,'时间窗'),COLORFFFFFF; DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*1,'吸'),COLORFF00FF;DRAWICON(CROSS(VAR9,VAR10) AND J>65,H*1,15),COLORGREEN;DRAWTEXT(CROSS(VAR9,VAR10) AND J>65,H*1,' 卖'),COLORYELLOW;DRAWICON(VAR4 AND VAR5,L*1,9);DRAWTEXT(VAR4 AND VAR5,L*1,' 买')COLORFFFFFF;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量买点'),COLOR33FFFF;B1:=MA(C,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);SMA2:=MA(B2,3);停损下限:IF(LLV(MA(B2,8),3)<B2,LLV(MA(B2,8),3),B2);IF(B2>SMA2,B2,DRAWNULL),COLORRED,LINETHICK4;IF(B2<SMA2,B2,DRAWNULL),COLORGREEN,LINETHICK4;SNAKEA:HHV(MA(B2,1),13),COLORYELLOW;VAR1A:=(2*CLOSE+HIGH+LOW)/4;VAR2A:=MA(VAR1A,7);VAR3A:=VAR2A-MA(VAR1A,7/2)<0;VAR4A:=VAR2A-MA(VAR1A,7/2)>0;VAR5A:=BARSLAST(VAR3A);VAR6A:=0-BARSLAST(VAR4A);VAR7A:=IF(VAR3A<=0,VAR5A,VAR6A);STICKLINE(SNAKEA>SMA2 AND B2<SMA2,SNAKEA,SMA2,0,0),COLORBLUE;VAR11A:=(CLOSE*2+HIGH+LOW)/4;VAR21A:=EMA(VAR11A,13)-EMA(VAR11A,34);VAR31A:=EMA(VAR21A,5);VARA:=((REF(VAR9,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARB:=((REF(VARA,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARC:=((REF(VARB,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARD:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR1B:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);A13:=EMA(CLOSE,55);A14:=MA(CLOSE,75);A15:=EMA(A14,3);A16:=EMA(A15,3);A17:=(HIGH + LOW) / 5;A18:=(MA(A17,4)) - (MA(A17,34));A19:=CROSS(A18,0);A20:=CROSS(0,A18);A21:=BARSLAST(A19);A22:=BARSLAST(A20);A23:=REF(A19,1);A24:=REF(A20,1);A25:=BARSLAST(A23);A26:=BARSLAST(A24);A27:=IF((A25 < A26),(REF((HHV(HIGH,2)),A25)),(REF((LLV(LOW,2)),A26)));A28:=(((REF(CLOSE,1)) <= (REF(A27,1))) AND (CLOSE > A27)) AND (A21 < A22);A29:=(((REF(CLOSE,1)) >= (REF(A27,1))) AND (CLOSE < A27)) AND (A22 < A21);A30:=A28 AND ((COUNT(A28,A21)) = 1);A31:=A29 AND ((COUNT(A29,A22)) = 1);A32:=A30 AND ((REF(BARSLAST(A31),1)) < (REF(BARSLAST(A30),1)));A33:=A31 AND ((REF(BARSLAST(A31),1)) > (REF(BARSLAST(A30),1)));AC:=AMOUNT/(VOL);YY:=MA(AC,13);LLL:=(C-YY)/YY*100;MIDC := MA(CLOSE,22);UPPERC:= MIDC + 2*STD(C,22);LOWERC:= MIDC - 2*STD(C,22);BBA:=(C-LOWERC)/(UPPERC-LOWERC);BBC:=FORCAST(BBA,3);LIFENGCYC:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));VAR20:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); DRAWTEXT(VAR20 AND COUNT(VAR20,30)=1,LOW*0.95,'机构进场'),LINETHICK1,COLORFF00FF;。
通达信指标公式源码 解盘 副图源码
保护价:(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3,COLORYELLOW,LINETHICK0; 心理价:(CLOSE*14+OPEN*7+HIGH*2+LOW*2)/25,COLORRED,LINETHICK0; TYP:=(OPEN+CLOSE*2+HIGH+LOW)/5;突破:(TYP+HIGH-LOW),COLORYELLOW,LINETHICK0;阻力:TYP*2-LOW,COLORRED,LINETHICK0;支撑:TYP*2-HIGH,COLORCYAN,LINETHICK0;下降:TYP-HIGH+LOW,COLORMAGENTA,LINETHICK0;A001:=CLOSE-REF(CLOSE,6);A002:=MA(A001,6);A003:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100;A004:=SMA(A003,3,1);A005:=SMA(A004,3,1);A006:=EMA((3*A004-2*A005),2);A007:=(HIGH+LOW+CLOSE)/3;A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;A009:=(A008+(EMA(((0-(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(L OW,14))))+100)/100,3)*200-100))/2;A010:=A009-REF(A009,14);A011:=A009-REF(A009,26);A012:=(A009+A010+A011)/3;KKM:=EMA(A012,4);A013:=HHV(HIGH,34);A014:=(2*CLOSE+HIGH+LOW)/4;A015:=LLV(LOW,34);A016:=EMA(((A014-A015)/(A013-A015))*100,13);A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);KKMD:=A016-A017>1 AND A016<30 AND A017<30;KKML:=A016-A017<0 AND A016>80 AND A017>80 AND REF(A016-A017,1)>0; KKMQ:=COUNT(A016-A017>0,2)=2;KKAL:=(A016-A017)<0;生命线:MA(CLOSE,20),COLOR0000FF;取舍线:MA(CLOSE,10);DRAWTEXT(FILTER(KKMD,30),L*1.05,'最佳买入时机'),COLOR00FFFF; DRAWTEXT(FILTER(KKML,30),H*1.05,'最佳卖出时机'),COLORFFFF00; DRAWTEXT(FILTER(KKMQ,30),C*1.05,'持仓区'),COLOR00FF00; DRAWTEXT(FILTER(KKAL,30),H,'空仓区'),COLORFF8080;DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),30),L*0.9 5,'该股强于大盘'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.92,'可出手'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.08,'收手了'),COLORFF0000;DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM>REF(KKM,1),30),L*0.98,'快速介入');DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM<REF(KKM,1),30),H*1.02,'风险较大');DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM<REF(KKM,1),30),H,'休息观望~'),COLORAA8800;DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM>REF(KKM,1),30),L,'有防御能力'),COLORAA00AA;。
通达信指标公式源码 一个非常有用的操盘主图(操盘主图 四方力道 波段主图 先知主图)
趋势线:MA(C,30),DOTLINE COLORFF00CC;IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;回归斜率线A:EMA(SLOPE(C,21)*20+C,42);回归斜率线B:REF(回归斜率线A,2);IF(回归斜率线A>REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED; IF(回归斜率线A<REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORGREEN;IF(回归斜率线B>REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED; IF(回归斜率线B<REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORGREEN;经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L, 20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线A ANDMAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线A ANDMAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}{回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));}{C>昨C红K柱+C>O红K柱C>昨C红K柱C=昨C是跟白色24线C<昨C蓝K柱+C>O红K柱C<昨C蓝K柱}{STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED; STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;} {STICKLINE(CLOSE> REF(CLOSE,1) ANDC>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;} STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,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; {STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;}{经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;} DRAWICON(CROSS(经典K,经典D),L*0.96,26);{高亮红}回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;{高亮红}回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),{买};回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2)),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;{中绿} 卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2)),H*1.03,2);经典KDJ卖:IF(CROSS(经典D,经典K),(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;{中绿}; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);{DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,'★买'),COLORYELLOW; }DRAWICON(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,23); VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;AA:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.6 AND (MIN(O,C)-L)/(H-L)>0.6 AND VOL<REF(VOL,1);DRAWTEXT(AA,L*0.99,'揉搓'),COLORRED;C3:=REF(C,1);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;{DRAWTEXT(跌停,H+0.1,'跌停'),COLORGREEN;}涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;{DRAWTEXT(涨停,L-0.1,'板'),COLORYELLOW;}超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,122,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;M1:=EMA(EMA(C,21),3);M2:=EMA(EMA(C,34),3);TT2:=CROSS(C,M1)AND CROSS(C,M2);DRAWTEXT(TT2,L*0.96,'阳');四方力道{四方力道}V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);HY1:=REF(EMA(V1,3),1);实时线:MA(CLOSE,1),COLOR006400;神秘线:HY1,COLOR400080;DRAWTEXT(CROSS(CLOSE,HY1),LOW*0.95,'B'),LINETHICK2,COLORYELLOW; DRAWTEXT(CROSS(HY1,CLOSE),HIGH*1.08,'S'),LINETHICK3,COLORWHITE; APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));ZL:=IF((CLOSE > OPEN),(APP * (HIGH - LOW)),IF((CLOSE < OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));SF:=IF((CLOSE > OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));库存能量:=MA((ZL + SF),2);库存平均:=MA((ZL + SF),5);DRAWTEXT(CROSS(库存能量,库存平均),L*0.97,''),COLORFF00FF,LINETHICK4;{波段主图}工作线:=MA(CLOSE,1);趋势线:MA(CLOSE,18)COLORGREEN,LINETHICK2;强势线:MA(CLOSE,3)COLORRED,LINETHICK2;TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA144:EMA(CLOSE,144),POINTDOT,COLORWHITE;MA318:EMA(C,318);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(工作线,趋势线)AND J<55,LOW,'入')COLORWHITE; DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED; DRAWTEXT(CROSS(88,RSI),HIGH * 1.02,'顶'),COLOR00FFFF; DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;TT5:=5;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;GET:ZIG(3,TT5)COLORWHITE,LINETHICK3;{先知主图}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);STICKLINE(VAR9>-150,0,VAR9,0.1,0), COLORFF00FF;吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00; STICKLINE(CROSS(吸筹指标,-24),100,0,1,0), COLORFFFFFF;先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORFF00FF;放量拉升:IF(CROSS(吸筹指标,-24),1,0), COLORFFFFFF;获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,1,0),COLOR0000FF; VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; VARK2:=REVERSE(VARK1);VARK3:=SMA(VARK1,3,1);波段王:SMA(VARK3,3,1), COLORRED,LINETHICK2;波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK2;趋势线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),C OLORFF6666,LINETHICK2;RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:SMA(RSV9,3,1);DK1:K1-REF(K1,1),COLORSTICK;出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0), STICK,COLORYELLOW;DRAWICON(出手就赢>0,50 ,1);STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'底'),COLORWHITE ; DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'钱'),COLOR33FFCC; DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'买'),COLORRED ; DRAWTEXT(CROSS(吸筹指标,-24),80,'底'),COLORWHITE ;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VARB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARE:=(((VARB + (2 * VARC)) + (3 * VARD)) / 6);VARF:=MA(VARE,3);STICKLINE((CROSS(J,0) AND (VARF <= (0 - 7))),0,88,2,0),COLORBLUE; DRAWICON((CROSS(J,0) AND (VARF <= (0 - 7))),88,9);VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; VARO3:=SMA(SMA(VARO2,3,1),3,1);VARO4:=EMA(VARO3,5);VARO5:=LLV(LOW,26);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;STICKLINE(CROSS(VARO4,10) AND VARO4>10,25,0,1,0),COLORYELLOW; 建仓区: IF((VARO7<10),0,20),LINETHICK3 ,COLORRED;。
实用看盘主图指标 通达信指标公式源码
给大家分享自用主图,觉得好用就下载吧,用法是每一次调整后k线站上全部均线上或k 线实体一半在全部均线上,且收盘在全部均线上才可以操作,祝大家猴年大发财,哈哈。
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;B1:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;B2:=EMA(FORCAST(EMA(MID,8),8),9);B3:=EMA(FORCAST(EMA(MID,7),7),8);B4:=EMA(FORCAST(EMA(MID,6),6),7);B5:=EMA(FORCAST(EMA(MID,5),5),6);B6:=EMA(FORCAST(EMA(MID,4),4),5);B7:=EMA(FORCAST(EMA(MID,3),3),4);B8:=EMA(FORCAST(EMA(MID,2),2),3);MA5:EMA(FORCAST(MA(MID,4),4),2)COLORYELLOW,LINETHICK2;IF(C,REF(B2,8),DRAWNULL),COLORF0F000;IF(C,REF(B3,7),DRAWNULL),COLORF0F000;IF(C,REF(B4,6),DRAWNULL),COLORF0F000;IF(C,REF(B5,5),DRAWNULL),COLORF0F000;IF(C,REF(B6,4),DRAWNULL),COLORF0F000;IF(C,REF(B7,3),DRAWNULL),COLORF0F000;IF(C,REF(B8,2),DRAWNULL),COLORF0F000;涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)) AND C=H,1,0); STICKLINE(涨停,O,C,2.5,0),COLORFF00FF;STICKLINE(涨停,H,L,0,1),COLORFF00FF;跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)) AND C=L,1,0); STICKLINE(跌停,O,C,2.5,0),COLOR00FF00;STICKLINE(跌停,H,L,0,1),COLOR00FF00;。
通达信指标公式源码 牛马线操盘手
DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(LN(HI/LO)/10);LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;L4:=REFDATE(HHV(LH4,DA),DATE);L5:=REFDATE(HHV(LH5,DA),DATE);L6:=REFDATE(HHV(LH6,DA),DATE);L7:=REFDATE(HHV(LH7,DA),DATE);L8:=REFDATE(HHV(LH8,DA),DATE);L9:=REFDATE(HHV(LH9,DA),DATE);L10:=REFDATE(HHV(LH10,DA),DATE);SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW( GZ,2),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW( GZ,3),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW( GZ,4),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW( GZ,5),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW( GZ,6),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW( GZ,7),9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)* 99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)* 99/100,9,0)COLOR3C3C3A,LINETHICK3;STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0) COLOR3C3C3A,LINETHICK3;DRAWKLINE(H,O,L,C);MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;买线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF (MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6 *REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(买线>=REF(买线,1),买线,DRAWNULL),COLORRED,LINETHICK3;IF(买线<=REF(买线,1),买线,DRAWNULL),COLORGREEN,LINETHICK2;卖线:MA(买线,8),COLORGREEN;买:=CROSS(买线,卖线);卖:=CROSS(卖线,买线);DRAWICON(买,L*0.97,1);DRAWICON(CROSS(买线,卖线),LOW*0.98,7);DRAWICON(卖,H*1.03,2);DRAWICON(CROSS(卖线,买线),HIGH*1.02,8);STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORLIRED;STICKLINE(买线>=卖线,CLOSE,OPEN,3,2),COLORLIRED;STICKLINE(买线<卖线,LOW,HIGH,0,0),COLORCYAN;STICKLINE(买线<卖线,CLOSE,OPEN,3,2),COLORCYAN;STICKLINE(OPEN>CLOSE,CLOSE,OPEN,2.5,0),COLORCYAN;涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORWHITE;STICKLINE(跌停,H,L,0,1),COLORWHITE;STICKLINE(ISLASTBAR,HHV(C,5)*0.95,HHV(C,5)*0.95,20,2)LINETHICK4;止损点:=(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95);DRAWNUMBER(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)* 0.95);DRAWTEXT(ISLASTBAR ,止损点-0.01,' 止损点');止盈价:H*0.95,LINETHICK0.5,COLORRED;{止盈价价盘中破掉三十分钟不再站上来,立即止盈出局}A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*RE F(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3* REF(A,17)+2*REF(A,18)+REF(A,20))/210;主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;ZZ:=(O+H+L)/3;YC:=(H+L)/2;YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;明日买点:YCHJX,LINETHICK0;昨测今日买点:REF(YCHJX,1),LINETHICK0;MY:=EMA(EMA(MA(C,5),2),2);TTA:=REF(C,1)>REF(MY,1)AND C>MY;TTC:=TTA=1 AND REF(TTA,1)=0;DRAWTEXT(TTC,L,'←短进')COLORYELLOW;{只要牛线变红,短线进入准确率就能达到90%}XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04)); DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.2),'●买点');DRAWTEXT(CURRBARSCOUNT=98,LOW*0.88,'☆红线上持股,绿线下持币☆'),COLORYELLOW;MA05:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10);DRAWTEXT(加仓,LOW*0.98,'←加仓'),COLORYELLOW;X1:=EMA(EMA(CLOSE,9),9);X2:=(X1-REF(X1,1))/REF(X1,1);DRAWICON(CROSS(X2,0),L,1);。
通达信基本面主图公式源码
可以叠加在主图上的基本面公式源码{-----------------------------------------------------------------------------------------------------} {-------------------------------------------------基本面----------------------------------------------} {距形}DRAWRECTREL(0,0,288,348,RGB(68,52,75));{基本资料}品种类型:=FINANCE(3);所属板块:=HYBLOCK;上市天数:=FINANCE(42);股总市值:=ROUND(FINANCE(41)/100000000);流通市值:=ROUND(FINANCE(40)/100000000);股东人数:=FINANCE(8);人均持股:=ROUND(FINANCE(7)/FINANCE(8));{}DRAWTEXT_FIX(1,0.008,0.01,0,'基本资料:'),COLORFFCC99;DRAWTEXT_FIX(1,0.008,0.05,0,'品种类型:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.09,0,'行业板块:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.13,0,'上市天数:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.17,0,'股东人数:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.008,0.21,0,'人均持股:'),COLOR99CCFF;{}DRAWTEXT_FIX(品种类型=1,0.055,0.05,0,'沪深A 股'),COLORYELLOW; DRAWTEXT_FIX(品种类型=2,0.055,0.05,0,' 中小板'),COLORYELLOW; DRAWTEXT_FIX(品种类型=3,0.055,0.05,0,' 创业板'),COLORYELLOW; DRAWTEXT_FIX(1,0.055,0.09,0,HYBLOCK),COLORYELLOW;{行业板块}{数值}DRAWNUMBER_FIX(1,0.050,0.13,0,上市天数),COLORGREEN;DRAWNUMBER_FIX(1,0.050,0.17,0,股东人数),COLORGREEN; DRAWNUMBER_FIX(1,0.050,0.21,0,人均持股),COLORGREEN;{单位}DRAWTEXT_FIX(1,0.08,0.13,0,'天'),COLORWHITE;DRAWTEXT_FIX(1,0.08,0.17,0,'人'),COLORWHITE;DRAWTEXT_FIX(1,0.08,0.21,0,'股'),COLORWHITE;{所属板块}DRAWTEXT_FIX(1,0.008,0.25,0,'地区板块:')COLOR99CCFF; DRAWTEXT_FIX(1,0.048,0.25,0,DYBLOCK)COLORGREEN; DRAWTEXT_FIX(1,0.088,0.25,0,'概念板块:')COLOR99CCFF; DRAWTEXT_FIX(1,0.128,0.25,0,GNBLOCK)COLORGREEN; DRAWTEXT_FIX(1,0.008,0.29,0,'风格板块:')COLOR99CCFF; DRAWTEXT_FIX(1,0.048,0.29,0,FGBLOCK)COLORGREEN;{业绩指标}净资收益率:=(FINANCE(33)/FINANCE(34)*100);主营利润率:=(FINANCE(23)/FINANCE(20)*100);现金负债比:=(FINANCE(25)/FINANCE(15));收入同比:=FINANCE(44);{主营收入同比增长率}利润同比:=FINANCE(43);{净利润同比增长率}{}DRAWTEXT_FIX(1,0.108,0.01,0,'业绩资料:'),COLORFFCC99; DRAWTEXT_FIX(1,0.108,0.05,0,'净资产收益率:'),COLOR99CCFF; DRAWTEXT_FIX(1,0.108,0.09,0,'主营业务利润率:'),COLOR99CCFF; DRAWTEXT_FIX(1,0.108,0.13,0,'现金流动负债比:'),COLOR99CCFF; DRAWTEXT_FIX(1,0.092,0.17,0,'主营收入同比增长率:'),COLOR99CCFF; DRAWTEXT_FIX(1,0.099,0.21,0,'净利润同比增长率:'),COLOR99CCFF; {}DRAWNUMBER_FIX(1,0.173,0.05,0,净资收益率),COLORYELLOW; DRAWNUMBER_FIX(1,0.173,0.09,0,主营利润率),COLORGREEN; DRAWNUMBER_FIX(1,0.173,0.13,0,现金负债比),COLORGREEN; DRAWNUMBER_FIX(1,0.173,0.17,0,收入同比),COLORYELLOW; DRAWNUMBER_FIX(1,0.173,0.21,0,利润同比),COLORYELLOW;{财务指标}每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));每股收益年:=CONST(FINANCE(33));每股收益:=CONST(FINANCE(38));每股净资产:=CONST(FINANCE(34));每股现金流:=CONST((FINANCE(25)/FINANCE(1)));每股未分配:=CONST(FINANCE(32));每股公积金:=CONST(FINANCE(18));{}DRAWTEXT_FIX(1,0.207,0.01,0,'财务资料:'),COLORFFCC99;DRAWTEXT_FIX(1,0.207,0.05,0,'每股收益:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.207,0.09,0,'每股净资产:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.207,0.13,0,'每股现金流:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.207,0.17,0,'每股未分配:'),COLOR99CCFF;DRAWTEXT_FIX(1,0.207,0.21,0,'每股公积金:'),COLOR99CCFF;{}DRAWNUMBER_FIX(1,0.278,0.05,1,每股收益),COLORGREEN;DRAWNUMBER_FIX(1,0.278,0.09,1,每股净资产),COLORGREEN; DRAWNUMBER_FIX(1,0.278,0.13,1,每股现金流),COLORGREEN; DRAWNUMBER_FIX(1,0.278,0.17,1,每股未分配),COLORGREEN; DRAWNUMBER_FIX(1,0.278,0.21,1,每股公积金),COLORGREEN;{-----------------------------------------------------------------------------------------------------} {-----------------------------------------------------------------------------------------------------}{距形}DRAWRECTREL(0,0,288,348,RGB(10,10,10));RGB改为10,距形的背景为黑色。
通达信指标公式源码一个波段主升主图
(有未来函数,使用需谨慎)AAF:=LLV(LOW,34);BBF:=MA(AAF,4);TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1);CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2);CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3);CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4);CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5);CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1;中线:=VAR6;{FILLRGN(短线,中线,短线>中线, RGB(255,255,50),短线<中线, RGB(0,0,220));} 下跌:=IF(VAR1=VAR6,VAR6, VAR1);{PARTLINE(下跌,VAR1=VAR6),COLORGREEN;}TJ1:=CCI1>差值4;立桩量:=FILTER(TJ1,0);TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);TJ11:= CCI1<-差值4 ;立桩量2:=FILTER(TJ11,0);TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);立桩量3:=FILTER(TJ111,5);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWICON(条件成立AND 下跌= VAR6{ AND BB13>0},L*0.97,2);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWICON(CROSS(FF,MA15),LOW*0.97,1);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'R背'),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠'),COLORWHITE;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2; 超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2; 上:=EMA(C,3);中:=EMA(C,5);下:=EMA(中,5);QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5);MA13:=MA(CLOSE,13);VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) ORREF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11); {涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 ANDCLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{蓝}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF6600; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF8800; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFAA00; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.6,0),COLORFFCC00;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLOR0000FF;{绿}STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;{灰}STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF; STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000066;DRAWICON(VAR16,LOW-0.02,6);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM,LOW-0.05,6); DRAWICON(死叉OR CROSS(50,VAR09) AND QQ AND K>50,HIGH+0.01,2); TTJ:=CROSS(FF,MA15);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG:=XG0 OR XG1;DRAWTEXT(XG,LOW*0.93,'全'),COLORRED;DRAWTEXT(XG,LOW*0.93-0.3,'仓'),COLORRED;GET:ZIG(3,3),COLORYELLOW;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF; DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00; DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;{黄金买点}ZZ:=(O+H+L)/3;HJMD:EMA(ZZ,4),COLORYELLOW,LINETHICK1;XXB:=CLOSE*VOL;XXBYM:EMA((EMA(XXB,3)/EMA(VOL,3)+EMA(XXB,6)/EMA(VOL,6)+EMA(XXB,1 2)/EMA(VOL,12)+EMA(XXB,24)/EMA(VOL,24))/4,13),COLORFF00FF,LINETHIC K0;{爱心:=EMA(CLOSE,13)-EMA(CLOSE,55);无价:=EMA(爱心,3);PARTLINE(XXBYM,爱心>=无价,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2; DRAWTEXTREL(700,120,'今日买点:'+NUMTOSTRN(HJMD,2 )),LINETHICK2,COLORYELLOW; };。
通达信主图指标数字解盘(附源码)
通达信主图指标数字解盘(附源码)通达信主图指标数字解盘(附源码){数字解盘}AAA:=REFDATE(HHV(H,130),DATE);BBB:=REFDATE(LLV(L,130),DATE);{DRAWBAND(AAA,RGB(0,80,80),BBB,RGB(00,00,00))};{背景} MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3 )+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MI D,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MI D,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLOR0099FF;DKMA:MA(DKX,6),COLORD9D9F3;DRAWBAND(DKX,RGB(150,0,150),DKMA,RGB(150,150,150));{红}STICKLINE(C>O,C,O,3,0),COLOR000077;STICKLINE(C>O,C,O,2,0),COLOR000099;STICKLINE(C>O,C,O,1,0),COLOR0000BB;STICKLINE(C>O,H,L,0,0),COLOR0000FF;{绿}STICKLINE(C<O,C,O,3,0),COLOR007700;STICKLINE(C<O,C,O,2,0),COLOR009900;STICKLINE(C<O,C,O,1,0),COLOR00BB00;STICKLINE(C<O,H,L,0,0),COLOR00FF00;套牢盘%:=100*(1-WINNER(C));获利盘%:=100*WINNER(C);集中度90%:=(COST(95)-COST(5))/(COST(100))*100; 集中度70%:=(COST(85)-COST(15))/(COST(100))*100; 平均成本:=COST(50);主力成本:=COST(4);短期压力:=HHV(H,20);短期支撑:=LLV(L,20);PT:=REF(HIGH,1)-REF(LOW,1);中价:=(H+L+C)/3;近高:=2*中价-LOW;近低:=2*中价-HIGH;最高:=中价+PT;最低:=中价-PT;T1:=CONST(IF(获利盘%,1,0));T2:=CONST(IF(套牢盘%,1,0));T3:=CONST(IF(集中度90%,1,0));T4:=CONST(IF(集中度70%,1,0));T5:=CONST(IF(平均成本,1,0));T6:=CONST(IF(主力成本,1,0));T7:=CONST(IF(短期压力,1,0));T8:=CONST(IF(短期支撑,1,0));T9:=CONST(IF(中价,1,0));T10:=CONST(IF(近高,1,0));T11:=CONST(IF(近低,1,0));T12:=CONST(IF(最高,1,0));T13:=CONST(IF(最低,1,0));TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.03,TS1);TS3:=IF(T3=1,TS2+0.05,TS2);TS4:=IF(T4=1,TS3+0.03,TS3);TS5:=IF(T5=1,0+0.03,0);TS6:=IF(T6=1,TS5+0.03,TS5);TS7:=IF(T7=1,TS6+0.05,TS6);TS8:=IF(T8=1,TS7+0.03,TS7);TS9:=IF(T9=1,0+0.03,0);TS10:=IF(T10=1,TS9+0.05,TS9);TS11:=IF(T11=1,TS10+0.03,TS10);TS12:=IF(T12=1,TS11+0.05,TS11);TS13:=IF(T13=1,TS12+0.03,TS12);N1:=30;N2:=20;N3:=10;DRAWTEXT(T1=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS1),'【获利盘%】'),COLORRED;DRAWTEXT(T2=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS2),'【套牢盘%】'),COLOR00FF00;DRAWTEXT(T3=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS3),'【90%成本集中度】'),COLORYELLOW;DRAWTEXT(T4=1 AND CURRBARSCOUNT=N1 AND PERIOD=5,AAA-(AAA*TS4),'【70%成本集中度】'),COLOR008FFF;DRAWTEXT(T5=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS5),'【平均成本】'),COLORFF99FF;DRAWTEXT(T6=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS6),'【主力成本】'),COLORFF00FF;DRAWTEXT(T7=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS7),'【短期压力】'),COLORFFFFBF;DRAWTEXT(T8=1 AND CURRBARSCOUNT=N2 AND PERIOD=5,AAA-(AAA*TS8),'【短期支撑】'),COLORF0F000;DRAWTEXT(T9=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS9),'【中价】'),COLORWHITE;DRAWTEXT(T10=1 AND CURRBARSCOUNT=N3 ANDPERIOD=5,AAA-(AAA*TS10),'【近高】'),COLORFFFFBF;DRAWTEXT(T11=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS11),'【近低】'),COLORF0F000;DRAWTEXT(T12=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS12),'【最高】'),COLORFF99FF;DRAWTEXT(T13=1 AND CURRBARSCOUNT=N3 AND PERIOD=5,AAA-(AAA*TS13),'【最低】'),COLORFF00FF;DRAWNUMBER(T1=1 AND CURRBARSCOUNT=N1-6 AND PERIOD=5,AAA-(AAA*TS1),CONST(获利盘%)),COLORRED;DRAWNUMBER(T2=1 AND CURRBARSCOUNT=N1-6 AND PERIOD=5,AAA-(AAA*TS2),CONST(套牢盘%)),COLOR00FF00;DRAWNUMBER(T3=1 AND CURRBARSCOUNT=N1-7 AND PERIOD=5,AAA-(AAA*TS3),CONST(集中度90%)),COLORYELLOW;DRAWNUMBER(T4=1 AND CURRBARSCOUNT=N1-7 AND PERIOD=5,AAA-(AAA*TS4),CONST(集中度70%)),COLOR008FFF;DRAWNUMBER(T5=1 AND CURRBARSCOUNT=N2-6 AND PERIOD=5,AAA-(AAA*TS5),CONST(平均成本)),COLORFF99FF;DRAWNUMBER(T6=1 AND CURRBARSCOUNT=N2-6 AND PERIOD=5,AAA-(AAA*TS6),CONST(主力成本)),COLORFF00FF;DRAWNUMBER(T7=1 AND CURRBARSCOUNT=N2-6 AND PERIOD=5,AAA-(AAA*TS7),CONST(短期压力)),COLORFFFFBF;DRAWNUMBER(T8=1 AND CURRBARSCOUNT=N2-6 AND PERIOD=5,AAA-(AAA*TS8),CONST(短期支撑)),COLORF0F000;DRAWNUMBER(T9=1 AND CURRBARSCOUNT=N3-4 AND PERIOD=5,AAA-(AAA*TS9),CONST(中价)),COLOWHITE;DRAWNUMBER(T10=1 AND CURRBARSCOUNT=N3-4 AND PERIOD=5,AAA-(AAA*TS10),CONST(近高)),COLORFFFFBF;DRAWNUMBER(T11=1 AND CURRBARSCOUNT=N3-4 AND PERIOD=5,AAA-(AAA*TS11),CONST(近低)),COLORF0F000;DRAWNUMBER(T12=1 AND CURRBARSCOUNT=N3-4 ANDPERIOD=5,AAA-(AAA*TS12),CONST(最高)),COLRFF99FF;DRAWNUMBER(T13=1 AND CURRBARSCOUNT=N3-4 AND PERIOD=5,AAA-(AAA*TS13),CONST(最低)),COLORFF00FF;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
很准的伯乐看盘主图,有了这个其他不要看了!MA5:MA(CLOSE,5);短趋势:MA(CLOSE,13),COLORRED,LINETHICK2;MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);AA10:=MA(CLOSE,8);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:=LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR01,5);支撑:=HHV(短底,60);压力1:=HHV(LOW,20),COLORFAABEC;中线:=MA(CLOSE,3);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地- B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1);VAR2:=SMA(飞龙顶底线1,3,1);VAR3:=((3 * 飞龙顶底线1) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线1 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4); VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);UPPER:=(短线- (2 * STD(VAR2C,26)));XY:=MA(CLOSE,5);M80:=MA(CLOSE,80);短期底部:=(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))),COLORF FFFFF;U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);RH5:=IF(((D > U2L) AND (REF(D,1) <=U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D >D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));长期底部:=LLV(HIGH,30),COLORFF0000;DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'底成'),COLOR0EABFF;上:=(SMA(LOW,5,2) * 0.96);中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100); X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR001:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR001,20);VAR002:=CROSS(VAR001,飞龙顶底线);VAR003:=(VAR001 < MA(CLOSE,20));VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR005:=SMA(VAR004,5,1);VAR006:=SMA(VAR005,8,1);VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5));VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) ANDVAR007);VAR009:=IF((CLOSE > 1000),VAR007,VAR008);VAR00F:=CROSS(X1,X2);MA115:=VAR00F;低买:=(VAR002 AND VAR003);黑马起步:=VAR009;DRAWTEXT((黑马起步> 0),(HIGH * 1.04),'逃命'),COLORFF0000;逃遁:=(SMA(HIGH,21,2) * 1.05);阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT((((((低买> 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'黑马'),COLORRED; DRAWTEXT((((((CROSS(VAR2C,短线) AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线- REF(中线,1)) > 0)) AND (HIGH <= 压力1)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'关注'),COLOR00FF00;DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY - REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF; DRAWTEXT(FILTER(((((((LOW <= 天) AND (CLOSE >= MA20)) AND (HIGH < 压力1)) AND ((天- REF(天,1)) > 0)) AND (CLOSE < 压力1)) AND ((MA20 - REF(MA20,1)) > 0)),6),(LOW - 0.12),'全仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人-REF(人,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) > 1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF; DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄'),COLORA100FF;DRAWTEXT((((CROSS(D,0) AND (HIGH < 压力位)) AND (VAR5P <= (0 - 7))) AND (CLOSE < XY)),(LOW - 0.11),'半仓'),COLORFFFF00;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < M80)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'买'),COLOR00FF00;DRAWTEXT(((CROSS(阻挡,长期底部) AND (BB10 > 1)) AND (HIGH < 支撑)),LOW,'出击'),COLORRED;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >=REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2 <= MA80)),8),LOW,'底'),COLORFFFF00; DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 -REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORAFA0AF; DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLORBLUE;DRAWTEXT(CROSS(MA(CLOSE,13),C) AND INDEXC>MA(INDEXC,13) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L*0.9,'买'),COLORRED,LINETHICK2;VAR011:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24)) /MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;VAR012:=HHV(VAR011>20,10);DRAWTEXT(FILTER(VAR011<-9 AND VAR011>REF(VAR011,1),18),L*0.9,'反弹'),COLORRED,LINETHICK2;DRAWTEXT(VAR011<-20 AND INDEXC<MA(INDEXC,13) ANDFILTER(VAR011> REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;DRAWTEXT(VAR012 ANDCROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H* 1.1,'危险'),COLORYELLOW;B36:=MA(CLOSE,3) - MA(CLOSE,6);B612:=MA(CLOSE,6) - MA(CLOSE,12);W:=((B36)/(CLOSE))*(10);J1:=((B612)/(CLOSE))*(10);DRAWTEXT((W < (-0.2)) AND (J1 < (-0.2)) AND CROSS(W,J1),(LOW)*0.93,'庄影'),COLORBROWN;EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);EMA120:=EMA(C,120);AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.04),'清仓'),COLORGREEN; LOCK:=1;M8:=EMA(CLOSE,8);VARP21:=EMA(短趋势,62);VARP22:=(CLOSE+HIGH+LOW)/3;VARP23:=EMA(VARP22,10)*LOCK;VARP24:=REF(VAR23,1)*LOCK;DRAWTEXT(AR6,L-0.25,'杏'),COLOR00CCFF;量价背离:=VAR15*40,STICK,COLORF5CCEB,LINETHICK2;DRAWTEXT(量价背离,HIGH * 1.02,'离'),COLORYELLOW;VAR60:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1),15,1);VAR61:=VARF<REF(VAR60,1) AND VOL>REF(VOL,1) ANDCLOSE>REF(CLOSE,1);大资金:=(VAR61 AND COUNT(VAR61,30)=1);DRAWTEXT(大资金,LOW*0.85,'▲大资金');{做空}RSV11:=(C - LLV(LOW,27))/(HHV(HIGH,3) - LLV(LOW,27)) * 100;F := SMA(RSV11, 3, 1);K11 := SMA(F,3, 1);D11 := SMA(K11,3, 1);WAV:=3*K11-2*D11;A41:=IF(1,C,IF(C<REF(O,1) AND L<REF(L,1),L,C));A42:=IF(C<REF(L,1),L,A41);A43:=IF(H<REF(O,1),L,A42);A44:=IF(O<=REF(C,1) AND C<REF(O,1),L,A43);A:=IF(C<O AND O<REF(O,1) AND L<REF(L,1),L,A44);AJ1:=ATAN((A/REF(A,1)-1)*100)*180/3.1416;LJIAO:=ATAN((VOL/REF(VOL,1)-1)*100)*180/3.1416;DSLJ:=LJIAO>0 AND ABS(LJIAO-AJ1)<30;JIA5:=WAV-REF(WAV,4)>50;DSALE:=DSLJ AND (JIA5 OR WAV>90);涨幅:=(C-LLV(C,10))/LLV(C,10)*100;DING2:=涨幅>20;DING:=DSALE OR DING2;QSA:=(MA(C,60)-REF(MA(C,60),10))/REF(MA(C,60),10)*100;QS:=SMA(QSA,10,1);DS:=QS<-3 OR MA(C,60)<REF(MA(C,60),1);QC:=DS AND DING AND DING!=REF(DING,1);DRAWTEXT(QC,H*1.08,'◇做空'),COLORRED;{抢钱买入}RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K1:=SMA(RSV1,3,1);D1:=SMA(K1,3,1);J11:=3*K1-2*D1;X:=LLV(J11,2)=LLV(J11,8);VARR1:=LLV(LOW,10);VARR2:=HHV(HIGH,25);VARR3:=100*EMA((CLOSE-VARR1)/(VARR2-VARR1),4);DRAWTEXT(CROSS(J11,REF(J11+0.01,1)) AND X AND J11<20,LOW*0.95,'抢钱'),COLORRED;{加仓}MA10:=MA(CLOSE,10);五日乖离率:=(C-MA5)/MA5*100;BB05:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;SSR:=(C-MA30)/MA30*100,NODRAW;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA5>REF(MA5,1) AND SSR>REF(SSR,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;DRAWTEXT(加仓,LOW*0.98,'◆加仓'),COLORYELLOW;{时间窗,变盘}AA:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);A0:=(AH-AL)/40;B11:=L-A0;STICKLINE((AA+0)/34=FLOOR((AA+0)/34),B11,B11-1.5*A0,2,0),COLORF00F F0;DRAWTEXT((AA+0)/34=FLOOR((AA+0)/34),B11-1*A0,'时间窗,变盘'),COLORF00FF0;{出货}LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'●离开'),COLORRED;VARE1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR121:=(HIGH+LOW+CLOSE)/3;VAR131:=(VAR121-MA(VAR121,14))/(0.015*AVEDEV(VAR121,14));VAR141:=(VAR121-MA(VAR121,70))/(0.015*AVEDEV(VAR121,70));VAR171:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR181:=100-ABS(VAR171);VAR191:=IF(VAR181<90,VAR181,100);VAR1A1:=IF(VARE1>0,VARE1,0);VAR1B1:=IF(VAR141>=200 AND VAR131>=150,15,IF(VAR141<=-200 AND VAR131<=-150,-15,VAR16))+60;VAR1C1:=VAR1A1>48 AND VAR1B1>60 AND VAR191<100;DRAWTEXT(VAR1C1 AND COUNT(VAR1C1,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;XXS:=MA(HIGH,5)*(1+5/100);DRAWTEXT(CROSS(XXS,C),H,'开盘逃'),COLORLIGREEN;。