1、51个优秀公式指标源码51个优秀公式指标源码 短线套利主图ma6:ma(c,6),colorwhite,linethick2;ma18:ma(c,18),color0099ff,linethick2;ma55:ma(c,55),colorff00FF;ma125:ma(c,125),colorffcc66;ma250:ma(c,250),colorblue;TY:=C;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*1
2、0+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD); B:=REF(C,BARSLAST(LD);t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波峰:IF(t1,A,A),ColorFF00FF,POINTDOT;STICKLINE(t1,A,A,9,0),ColorFF00FF;波谷:IF(t2,B,B),Color80FF00,POINT
3、DOT;STICKLINE(t2,B,B,9,0),Color80FF00;买进价:=(c-ref(ma6,1)/6+ma6)*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);白K买进:IF(买进条件,l,h),COLORWHITE,POINTDOT;STICKLINE(买进条件,h,l,0,1),colorwhite,linethick2;STICKLINE(买进条件,o,c,4,1),colorwhite,linethick2;加码价:=(c-ref(ma18,1)/18+ma18)*1.004;加码条件:=cross(c,加码价) and 加
4、码价>ref(加码价,1);黄K加码:IF(加码条件,l,h),coloryellow,POINTDOT;STICKLINE(加码条件,h,l,0,1),coloryellow,linethick2;STICKLINE(加码条件,o,c,4,1),coloryellow,linethick2; 通达信开发人自称价值万的设置为主图多:EMA(C,3),COLORYELLOW;空:EMA(C,5),COLOR00FF00;均衡:EMA(空,5),COLORWHITE,;VARF1:=COUNT(CROSS(多,均衡),2)=1;VARF2:=COUNT(CROSS(空,均衡),2)=1;ZA
5、I:=FILTER(VARF1 AND VARF2,2);DRAWTEXT(ZAI,均衡,主升),COLORFF00FF;VV2:=REF(CLOSE,1);VV3:=SMA(CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);DRAWTEXT(REF(VV3,1)>81 ANDVV3<80,HIGH*1.03,沽空),COLORYELLOW;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<
6、VF1 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>=REF(CLOSE,1)*1.08 ANDCLOSE<MA(CLOSE,13)*1.3,1,0),LOW,),COLORRED;VARA:=(CLOSE-REF(OPEN,29)/REF(OPEN,29)*100;VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB ANDVARA<-17,3) AND REF(LOW,1)=LLV(LOW,120
7、),1,0),LOW,注意买入);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1),6,1)*100;DRAWICON(CROSS(82,VARR1),HIGH,2);DRAWTEXT(CROSS(82,VARR1),HIGH,短空),COLORYELLOW;VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR2:=REF(VAR1,1);VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;HY3:=IF(COUNT(VAR3<
8、20,5)>=1 ANDCOUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 ANDVOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(HY3,LOW,注意买入),COLORRED;S:=MA(VOL,5)/MA(VOL,60),COLORRED,LINETHICK2;A:=MA(S,5),COLORGREEN,LINETHICK2;BIAS:=(CLOSE-MA(CLOSE,5)/MA(CLOSE,5)*100;F:=MA(S,121);RSV:=(CLOSE-LLV(LOW,45)/(HHV(HIGH,
9、45)-LLV(LOW,45)*100;K:=SMA(RSV,15,1);D:=SMA(K,15,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(84,RSI) , HIGH*1.06,逃顶!),COLORYELLOW ;S1:=IF(J<11 AND BIAS>-11 AND CROSS( S,F) AND(S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;DRAWTEXT(S1
10、=2,LOW,关注), COLORGREEN;中轨:HHV(MA(H,13),13),COLORRED,LINETHICK2;趋势:LLV(MA(H,13),1),COLORGREEN,LINETHICK2; 买卖指标SAT:=IF(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)*100);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=(ATAN(AA10- REF(AA10,1) *
11、 3.1416) * 10);BB12:=(ATAN(AA12 - REF(AA12,1) * 3.1416) *10);MA13:=MA(CLOSE,13);STICKLINE(AA12 <= AA10) AND (BB12 >= 1) AND (BB10 >=1),AA10,AA12,4,0),COLOR0080FF;STICKLINE(AA12 >= AA10) AND (BB10 <= 1) AND (BB10 <=1),AA10,AA12,4,0),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-RE
12、F(EMA(X1,13),1)*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,45上升),COLORWHITE;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1)/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:
13、=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW*0.99),老鼠仓),COLOR4080FF;A51:=3*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1)-2*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1);黑马线:=EMA(A51,5);A54:=(C-LLV(L,21)/(HHV(H,21)-LLV(L,21)*100;趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),
14、2);DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH*0.97),大黑马),COLORYELLOW;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);DRAWTEXT(CROSS(FF,MA15),(LOW* 0.99),底背离),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),顶背离),COLOR1880FF;VAR2:
15、=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA(CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意买:=IF(VAR4<10),80,100);RSV:=(C-LLV(L,9)/(HHV(H,9)-LLV(L,9)*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0);BDDD:=LLV(J,2)=LLV(J,8);买入:=IF(CROSS(J,REF(J+0.01,1) AND BDDD AND J<20,30,0);DRAWTEXT(买入 AND 注
16、意买=100 AND 超跌=0,LOW,短线),COLOR8000FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2),1,0); 天机均线EMA250:MA(C,250),COLORRED;EMA6:MA(C,6),COLORRED LINETHICK2;EMA18:MA(C,18),COLORYELLOW;EMA55:MA(C,55),COLORFF00FF;EMA144:M
17、A(C,144),COLORGREEN;EMA288:MA(C,288),COLORBLUE;中线【买入】:=COUNT(CLOSE<EMA18,5)=4 ANDCLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=REF(EMA18,1),LINETHICK,COLORRED;DRAWTEXT(中线【买入】,LOW*0.95, 中线【买入】),COLORRED;VL:=REF(LOW,1);VAR12:=(SMA(ABS(LOW-VL),13,1)/(SMA(MAX(LOW-VL,0),13,1)*100;VAR14:=MA
18、(VAR12,13);VAR15:=LLV(LOW,34);VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);VAR110:=SMA(SMA(CLOSE-LLV(LOW,54)/(HHV(HIGH,54)-LLV(LOW,54)*100,7,1),5,1);VAR111:=SMA(CLOSE-LLV(LOW,54)/(HHV(HIGH,54)-LLV(LOW,54)*100,7,1)*16.18-VAR110*10.9;T:=FILTER(IF(VAR111<=VAR110 ANDVAR18>REF(VAR18,1),VAR18*8,0),20);DR
19、AWTEXT(T,LOW-0.4,洗盘结束),COLORFF00FF;DRAWTEXT(T,LOW-0.2,|),COLORFF00FF;VAR21:=(CLOSE-LLV(LOW,36)/(HHV(HIGH,36)-LLV(LOW,36)*100;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=SMA(VAR23,3,1);VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,抄底),COLORRED;DRAWTEXT(FILTER(VA
20、R25,10)=1,LOW-0.2,|),COLORRED;VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,逃顶),COLORBLUE;DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,|),COLORBLUE; (使用说明:天机均线1.该指标有明确的抄底,逃顶,洗盘结束信号及中线买入信号;2.均线设置周期为250,6,18,55,144,288;3.如果144线向上,出现洗盘结束+抄底为低吸的好机会;4.超短线用5分钟周期,短线用60分钟周期;股市无对错,只有赢和
21、赔! 指标无好坏,操作在个人!在此特别感谢一发千钧大师,本指标沿用了大师的部分理念截图三个,一个跨度较长,一个跨度较短,另一个为60分钟周期,其他自行验证; 操作要领1.有时间盯盘的按15分钟短线波段操作,只做吃鱼身子的上升行情,2.没时间看盘的按60分钟做波段操作,也能将鱼吃干净.3.长线爱好者用周线选股可免盯,看盘之苦,安然做投资4.中线爱好者用日线选股可安然做波段,避免坐电梯.5.短线爱好者用30分钟线看盘可享受冲浪的快乐,安全做投机.6.超短线(头天进、二天出)的用5分钟看盘永不套牢.7.高手中的高手用1分钟线盯盘可享受权证的盛宴,痛并快乐着.操盘要点1.定位:量身定做一套发挥自身条件
22、的操作方案,严守买卖纪律.2.定势:趋势方向的判定,信自己的感觉,顺势者心自顺.3.定量:针对不同(个股)行情阶段,严控投入资金比例,进退自如,先立于不败之地.4.定律:破底莫入、破顶莫追 高胜算系统操盘线:MA(C,4),COLORRED,LINETHICK3;安全线:MA(C,19),COLORGRAY,LINESTICK,LINETHICK1;牛熊分界线:MA(C,200),COLORYELLOW,CIRCLEDOT,LINETHICK1;DRAWTEXT(CROSS(安全线,操盘线),H*1.01,S卖出),Color00FF00;DRAWTEXT(CROSS(操盘线,安全线),L*0
23、.99,B买入),Color00FFFF;STICKLINE(CROSS(操盘线,安全线) AND BACKSET(CLOSE>操盘线,2) AND (操盘线>安全线) AND (CLOSE>安全线),OPEN,CLOSE,2,1),COLORYELLOW; STICKLINE(CROSS(安全线,操盘线) AND BACKSET(CLOSE<操盘线,2) AND (操盘线<安全线),OPEN,CLOSE,2,1);DRAWICON(CROSS(操盘线,安全线),L*0.98,1);DRAWICON(CROSS(安全线,操盘线),H*1,2); 通达信主图公式:垂
24、帘听股MA5:=MA(C,5);A:=(3*C+L+O+H)/6;垂帘:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(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,COLORRED,POINTDOT;听股:MA(垂帘,
25、13),COLORFFCCCC,CIRCLEDOT;ZAR1:=SLOPE(EMA(CLOSE,2),5)*15+C;ZAR2:=EMA(ZAR1,5);ZARA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(ZAR2,5),5),5),5),5),5),5),5);ZARB:=BARSLAST(CROSS(CLOSE,ZARA);ZARC:=BARSLAST(CROSS(ZARA,CLOSE);STICKLINE(CLOSE<ZARA,REF(CLOSE,ZARC),REF(CLOSE,ZARC),12,0),LINETHICK2,COLORFFCCCC;STICK
26、LINE(CLOSE>ZARA ANDCLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),垂帘,0.2,0),COLORFFC8FF;STICKLINE(CLOSE>ZARA ANDCLOSE>REF(CLOSE,ZARB),REF(CLOSE,ZARB),REF(CLOSE,ZARB),12,0),COLORFFC8FF,LINETHICK2;上涨:=0,COLORFFC8FF;STICKLINE(CLOSE<ZARA ANDCLOSE<REF(CLOSE,ZARC),REF(CLOSE,ZARC),垂帘,0.2,0),COLOR0
27、0FF00;止盈止损:0,COLOR00FF00;VAR41:=EMA(100*(CLOSE-LLV(LOW,34)/(HHV(HIGH,34)-LLV(LOW,34),3);VAR42:=EMA(100*(INDEXC-LLV(INDEXL,34)/(HHV(INDEXH,34)-LLV(INDEXL,34),3);VAR4A:=REF(VAR41,1)>92 AND VAR41<92;DRAWTEXT(VAR4A,H+0.12,短卖),COLOR00FF00; STICKLINE(C>=O,H,L,0,0),COLORRED;STICKLINE(C<O,H,L,0,
28、0),COLORFFFF52;STICKLINE(C>=O,C,O,4,1),COLORRED;STICKLINE(C<O,C,O,4,0),COLORFFFF52;MA13:MA(C,13),COLORWHITE,LINETHICK2;MA55:=MA(C,55),COLORFF00FF;MA125:=MA(C,125),COLORFFCC66;MA250:=MA(C,250),COLORBLUE;STICKLINE(CROSS(MA5,听股) AND MA5>听股 ANDC>O,MA13,MA13-0.09,4,0),COLORYELLOW;DRAWTEXT(CRO
29、SS(MA5,听股) AND MA5>听股 ANDC>O,MA13-0.12,垂帘听股),COLORWHITE;T:=BARSLAST(L>REF(H,1);E:=COUNT(L<REF(H,T+1),T)<2;STICKLINE(L<REF(H,T+1 ) AND E,L,L-0.09,4,0),COLOR0099FF;DRAWTEXT(L<REF(H,T+1 ) AND E,L-0.12,缺口回补),COLOR0099FF;VLL:=CROSS(MA(C,13),MA(C,21);DRAWTEXT(VLL,MA13,圆弧底),COLORYELLOW
30、; 精品均线战法主图公式集短线套利主图ma6:ma(c,6),colorwhite,linethick2;ma18:ma(c,18),color0099ff,linethick2;ma55:ma(c,55),colorff00FF;ma125:ma(c,125),colorffcc66;ma250:ma(c,250),colorblue;TY:=C;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);A:=REF(C,BARSLAST(HD);B:=REF(C,BARSLAST(LD);t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD);t2:=BARSLAST(HD)>BARSLAST(LD) ANDNOT(LD);波峰:IF(t1,A,A),ColorFF00FF,POINTDOT;STICKLINE(t1,A,A,9,0),ColorFF00FF;波谷:IF(t2,B,B),Color80FF00,POINTDOT;
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1