精准抄底大黑马通达信指标公式源码
通达信指标公式源码 抄底王源码
V1:=MA(C,3)=HHV(MA(C,3),7);V2:=MA(C,3)>MA(C,5);LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100; STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;VAR3A:=3;VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 加仓:IF(FILTER(YXF=1,5),20,-10),STICK,LINETHICK3;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);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR2:=TROUGHBARS(3,15,1)<10;VAR3:=PEAKBARS(3,15,1)<5;VAR4:=IF(VAR2=1,50,0);VAR5:=IF(VAR3=1,50,0);底部:=IF(VAR4=50,10,0);头部:=IF(VAR5=50,20,60);未来买入:IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,50,0),COLOR0000CC,LINETHICK2;未来卖出:IF(头部=20 AND REF(头部,1)=20 AND REF(头部,2)=60,20,60),COLORGREEN,LINETHICK2;参考买入延迟线:底部,LINETHICK1 ,COLORMAGENTA;LT:=100;LU:=0;LV:=38.2;LA:=REF(CLOSE,1);LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100);LC:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),10);LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),10);LH:=((LF * 100) / LE);LI:=((LG * 100) / LE);LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5);AV:=(LB + LJ);LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));LL:=(LB - LK);LM:=(AV + LL);LO:=((((2 * CLOSE) + HIGH) + LOW) / 4);LP:=LLV(LOW,34);LQ:=HHV(HIGH,34);LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13);LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2);向导线:=LLV(LM,1);STICKLINE((向导线>225),95,90,4,1),COLORFFCC00;STICKLINE((向导线>235),100,95,4,1),COLORRED;STICKLINE(CROSS(235,向导线),100,90,4,1),COLOR00FF00;STICKLINE((LM<(0-1)),0,5,4,1),COLOR00FF00;STICKLINE((LM<(0-5)),5,10,4,1),COLORYELLOW;STICKLINE(CROSS(向导线,(0-3)),0,10,4,1),COLORRED;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);底一:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1;STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;STICKLINE(乖离<-6,5,3,2,1),COLORRED;底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;买:=(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));卖:=(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));STICKLINE((买=1),(-10),0,1,0),COLOR0000FF;DRAWTEXT((买=1),(-12),'买'),COLOR0000FF;STICKLINE((卖=1),10,0,1,0),COLOR00FF00;DRAWTEXT((卖=1),19,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66; STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;P1:=5;P2:=4;VARA:=LLV(LOW,P1);VARB:=HHV(HIGH,P1);K: EMA((CLOSE-VARA)/(VARB-VARA)*100,P2),COLORLIMAGENTA; D: EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;。
通达信黑马精准线主图指标通达信指标公式源码
通达信黑马精准线主图指标{黑马精准线参数顶底开关0 1 0 点位差0 1 0 指定点0 1000 0} DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0);{标缺口}LL:=REF(L,1);HH:=REF(H,1);上跳:=L>HH;下跳:=H<LL; STICKLINE(L>REF(H,1),L,REF(H,1),3.1,-1),COLORRED; STICKLINE(REF(L,1)>H,REF(L,1),H,3.1,-1),COLORGREEN;{灰色}STICKLINE(O>=C,H,L,0,0),COLOR909090;STICKLINE(O>=C,C,O,3.1,0),COLOR606060;STICKLINE(O>=C,C,O,2.1,0),COLOR707070;STICKLINE(O>=C,C,O,1.2,0),COLOR808080;STICKLINE(O>=C,C,O,0.2,0),COLOR909090;STICKLINE(O<=C,H,L,0,0),COLOR666B6F;STICKLINE(C>O,C,O,3.1,1),COLOR666B6F;V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);{金黄色}STICKLINE(V2V,H,L,0,0),COLORYELLOW;STICKLINE(V2V,O,C,3.1,0),COLOR0033FF;STICKLINE(V2V,O,C,2.1,0),COLOR0077FF;STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF;STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF;{涨停粉}ZT:=C/REF(C,1)>1.097;ZT数:COUNT(ZT,BARSSINCE(ZT)),NODRAW;{涨停红色}ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF>9.5,C,O,3.1,0),COLOR0000CC;STICKLINE(ZDF>9.5,C,O,2.1,0),COLOR0000DD;STICKLINE(ZDF>9.5,C,O,1.2,0),COLOR0000EE;STICKLINE(ZDF>9.5,C,O,0.2,0),COLOR0000FF;STICKLINE(ZDF>9.5,H,L,0,0),COLOR0000FF;{跌停绿色}STICKLINE(ZDF<-9.9,O,C,3.1,0),COLOR66CC66;STICKLINE(ZDF<-9.9,O,C,2.1,0),COLOR77DD77;STICKLINE(ZDF<-9.9,O,C,1.2,0),COLOR88EE88;STICKLINE(ZDF<-9.9,O,C,0.2,0),COLOR99FF99;STICKLINE(ZDF<-9.5,H,L,0,0),COLOR99FF99;均价:=AMO/VOL/100;假阴真阳:=C<O AND C>=REF(MIN(C,O),1) AND 均价>REF(均价,1); {蓝}DT:=假阴真阳;STICKLINE(DT,H,L,0,0),COLORFFAA00;STICKLINE(DT,O,C,3,0),COLORFF3300;STICKLINE(DT,O,C,2,0),COLORFF7700;STICKLINE(DT,O,C,1,0),COLORFFAA00;STICKLINE(DT,O,C,0.1,0),COLORFFFF00;YX:=REF(O,BARSLAST(假阴真阳));假阴实顶:YX,COLORFF7700,NODRAW;STICKLINE(V,YX,YX,1,0),COLORFF7700;L0:=点位差/100;前极点精准线:IF(顶底开关=0,CONST(REF(L,指定点)),CONST(REF(H,指定点))),COLOR178448;DRAWICON(ABS(L-前极点精准线)<=L0,前极点精准线*0.99,38); DRAWICON(ABS(H-前极点精准线)<=L0,前极点精准线*1.01,39);{H极点精准线:CONST(REF(H,指定点)),COLOR7777FF;DRAWICON(ABS(H极点精准线-H)<=L0,H极点精准线*1.01,35); DRAWICON(ABS(H极点精准线-L)<=L0,H极点精准线*0.99,34);}{极点精准线:CONST(L),COLOR0077FF;DRAWICON(ABS(L-极点精准线)<=L0,极点精准线*0.99,1); DRAWICON(ABS(H-极点精准线)<=L0,极点精准线*1.01,2);同向极点精准数:COUNT(ABS(L-极点精准线)<=L0,60)-1,COLOR0077FF,NODRAW;异向极点精准数:COUNT(ABS(H-极点精准线)<=L0,60),COLOR0077FF,NODRAW;XG:=同向极点精准数>0 AND 异向极点精准数>0;}{DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);量缩价涨:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O;阴KDAY:=BARSLAST(量缩价涨)+1;STICKLINE(V,REF(O,阴KDAY),REF(O,阴KDAY),3.5,0),COLORMAGENTA; DRAWICON(CROSS(C,REF(O,阴KDAY)),L,1);}DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK);。
精准抄底大黑马通达信指标公式源码
信号出现时高点低点一目了然,好不好直接上图VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势:IF(VAR6>45,VAR6-45,0);0,COLOR00FFFF;20,POINTDOT,COLORFFAA66,LINETHICK1;80,POINTDOT,COLORFFAA66,LINETHICK1;100,COLORFFFF33;V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=EMA((C-V1)/(V2-V1)*4,4);DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),COLORGREEN;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(VAR9Q>-120,0,VAR9Q,6.1,0),COLOR0000AA;STICKLINE(VAR9Q>-120,0,VAR9Q,4.9,0),COLOR0000BB;STICKLINE(VAR9Q>-120,0,VAR9Q,3.8,0),COLOR0000CC;STICKLINE(VAR9Q>-120,0,VAR9Q,2.7,0),COLOR0000DD;STICKLINE(VAR9Q>-120,0,VAR9Q,1.6,0),COLOR0000EE;STICKLINE(VAR9Q>-120,0,VAR9Q,0.4,0),COLOR4444FF;STICKLINE(趋势,(REF(趋势,1)),趋势,3.2,0) ,COLOR0044FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.7,0) ,COLOR0066FF;STICKLINE(趋势,(REF(趋势,1)),趋势,2.1,0) ,COLOR0088FF;STICKLINE(趋势,(REF(趋势,1)),趋势,1.5,0) ,COLOR00AAFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.9,0) ,COLOR00CCFF;STICKLINE(趋势,(REF(趋势,1)),趋势,0.2,0) ,COLOR00FFFF;粉红持有:=REF(趋势>REF(趋势,1),1);STICKLINE(粉红持有,(REF(趋势,1)),趋势,3.2,0),COLOR770077; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.7,0),COLOR990099; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.1,0),COLORBB00BB; STICKLINE(粉红持有,(REF(趋势,1)),趋势,1.5,0),COLORDD00DD; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.9,0),COLORFF00FF; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.2,0),COLORFF66FF;绿色减仓:=趋势<REF(趋势,1);STICKLINE(绿色减仓,(REF(趋势,1)),趋势,3.2,0 ),COLOR003300; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.7,0 ),COLOR006600; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.1,0 ),COLOR009900; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,1.5,0 ),COLOR00CC00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.9,0 ),COLOR00FF00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.2,0 ),COLORCCFF66;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2; N:=21;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE( E,E,55,2.7,0),COLORFF6600;STICKLINE( E,E,55,2.1,0),COLORFF8800;STICKLINE( E,E,55,1.5,0),COLORFFAA00;STICKLINE( E,E,55,0.9,0),COLORFFCC00;STICKLINE( E,E,55,0.2,0),COLORFFFF00;DRAWTEXT(E,50,' 逃顶'),COLORFF9966;TYP:=(HIGH+LOW+CLOSE)/3;VAR11:=3;VAR21:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;主力线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHIC K1,POINTDOT;超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK0,COLORLIRED;轴:0,COLORFFFFFF;。
黑马必抓通达信指标公式源码
{黑马}AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EX PMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);通道:=1.0668*AHC22;起爆:=CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;RRF:=起爆;A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);金线王:=EMA(A2,200)*1.118;金线王2:=EMA(A2,200)*1.118;条件:=(C-REF(C,1))/REF(C,1)*100>8;金K线:=CROSS(C,金线王) AND 条件;AA05:=MA(C,5);AA30:=MA(C,30);MA05:=MA(C,5);MA10:=MA(C,13);MA30:=MA(C,34);速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);五日乖离率:=(C-AA05)/AA05*100;三拾日乖离率:=(C-MA30)/MA30*100;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;买入:=FILTER(MR,10);STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLOR000088;STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLOR0000AA; STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLOR0000CC; STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLOR0000EE; STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLOR0000EE; STICKLINE(IF(RRF,-120,0),+12,0,5,0),COLORLIMAGENTA; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLOR770077; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLOR990099; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLORBB00BB; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLORDD00DD; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLORFF00FF; STICKLINE(IF(RRF,-120,0),+9,0,5,0),COLORDD00DD; STICKLINE(IF(RRF,-120,0),+6,0,5,0),COLOR003300; STICKLINE(IF(RRF,-120,0),+6,0,5,0),COLOR005500; STICKLINE(IF(RRF,-120,0),+6,0,5,0),COLOR007700; STICKLINE(IF(RRF,-120,0),+6,0,5,0),COLOR009900; STICKLINE(IF(RRF,-120,0),+6,0,5,0),COLOR00CC00; STICKLINE(RRF,0,3,5,0),COLOR008888;STICKLINE(RRF,0,3,5,0),COLOR00AAAA;STICKLINE(RRF,0,3,5,0),COLOR00CCCC;STICKLINE(RRF,0,3,5,0),COLOR00FFFF;STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLOR000088; STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLOR0000AA; STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLOR0000CC; STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLOR0000EE; STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLOR0000EE; STICKLINE(IF(金K线,-120,0),+12,0,4,0),COLORLIMAGENTA; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLOR770077; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLOR990099; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLORBB00BB; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLORDD00DD; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLORFF00FF; STICKLINE(IF(金K线,-120,0),+9,0,4,0),COLORDD00DD; STICKLINE(IF(金K线,-120,0),+6,0,4,0),COLOR003300; STICKLINE(IF(金K线,-120,0),+6,0,4,0),COLOR005500; STICKLINE(IF(金K线,-120,0),+6,0,4,0),COLOR007700; STICKLINE(IF(金K线,-120,0),+6,0,4,0),COLOR009900; STICKLINE(IF(金K线,-120,0),+6,0,4,0),COLOR00CC00; STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLOR666666; STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLOR777777; STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLOR888888; STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLOR999999; STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLORDDDDDD;STICKLINE(IF(金K线,-120,0),+3,0,4,0),COLORFFFFFF; DRAWTEXT(RRF,10.5,'黑马一号'),COLORYELLOW; {DRAWTEXT(RRF,8.5,'黑'),COLORYELLOW;} DRAWTEXT(金K线,6,'黑马启动'),COLORYELLOW; {DRAWTEXT(RRF,3.5,'启'),COLORRED; DRAWTEXT(RRF,1,'动'),COLORRED;}STICKLINE(买入,10,0,3,0),COLORRED; {DRAWTEXT(买入,10.5,'黑'),COLORYELLOW; DRAWTEXT(买入,7.5,'马'),COLORYELLOW; DRAWTEXT(买入,4.5,'必'),COLOR00FFFF;} DRAWTEXT(买入,1.5,'黑马必抓'),COLOR00FFFF;。
通达信主图指标黑马(附源码)
通达信主图指标黑马(附源码)通达信主图指标黑马(附源码){获利盘:WINNER(CLOSE)*100,NODRAW;DRAWBAND(MA(CLOSE,20),RGB(33,0,0),MA(CLOSE,60),RGB( 0,0,0));DRAWBAND(MA(CLOSE,5),RGB(150,150,0),MA(CLOSE,10),R GB(0,0,150));DRAWKLINE(H,O,L,C);}上:=(SMA(HIGH,21,2) * 1.05);DRAWTEXT(FILTER(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)),5),HIGH*1.02,'减仓'),COLORFFFFFF;下轨道:(SMA(LOW,21,2) * 0.969),POINTDOT,COLOR00FFFF;BMA:=MA(CLOSE,118);阻挡:=(SMA(HIGH,21,2) * 1.05);RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));RSV12:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=((3 * K12) - (2 * D12));RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=((3 * K24) - (2 * D24));支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),CO LOR00FF00;CB:=((AMOUNT / VOL) / 100);CD:=((CB > HIGH) OR (CB < LOW));黑马趋势:=MA(CLOSE,3);MA8:MA(CLOSE,8),COLORWHITE;MA13:MA(CLOSE,13),COLORRED;BB8:=((ATAN((MA8 - REF(MA8,1))) * 3.1416) * 10);DRAWTEXT(FILTER(((((((CLOSE / OPEN) > 1.04) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (CLOSE > 下轨道)) AND ((MA8 - REF(MA8,1)) > 0)) AND (CLOSE < 上)),3),LOW*0.98,'追击'),COLORD1E768;VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);支撑:=EMA(VARD,5);短期底部0:=LLV(OPEN,30);X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X2:=EMA(X1,10);X3:=REF(X2,1);X4:=((REF(HIGH,1) + REF(LOW,1)) / 2);X5:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);MAP1:=MA(CLOSE,60);均线30:=MA(CLOSE,30);均线89:=MA(CLOSE,89);均线:=MA(CLOSE,16);均线34:=MA(CLOSE,34);均线55:=MA(CLOSE,55);VAR1:=EMA(CLOSE,8);VAR2:=EMA(VAR1,20);VAR3:=CROSS(VAR1,VAR2);VAR4:=(VAR1 < MA(CLOSE,60));VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR6:=SMA(VAR5,5,1);VAR7:=SMA(VAR6,8,1);VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 16));VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR8);VARA:=IF((CLOSE > 1000),VAR8,VAR9);黑马起步:=(VAR3 AND VAR4);逃遁:=VARA;均线20:=MA(CLOSE,20);均线120:=MA(CLOSE,120);牛熊线:=MA(CLOSE,250);VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));VB:=(MA(CLOSE,20) > MA(CLOSE,120));VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));VD:=(MA(CLOSE,20) < MA(CLOSE,120));VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));VF:=(MA(CLOSE,20) > MA(CLOSE,250));VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));DRAWTEXT((((((均线 - REF(均线,1)) > 0) AND CROSS(均线20,均线120)) AND (LOW <= 均线120)) AND (CLOSE >= 均线120)),LOW,'三线开花'),COLORFFFFFF;短期底部:LLV(HIGH,30),COLOR0000FF;上轨:(SMA(HIGH,21,2) * 1.092),POINTDOT,COLORFFFFFF;中轨道:(SMA(HIGH,21,2) * 1.017),POINTDOT,COLORFFFFFF;DRAWTEXT(FILTER(((((LOW < 下轨道) AND (CLOSE > MA(CLOSE,15))) AND (CLOSE > 短期底部)) AND (HIGH < 压力位)),10),LOW,'★短线5%'),COLOR9DC522;DRAWTEXT(((((((HIGH >= 均线120) AND (CLOSE < REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 上)) AND (CLOSE < 上)) AND (CLOSE < 均线120)),HIGH*1.02,'减仓'),COLOR00FF00;DRAWTEXT(FILTER(((HIGH > 阻挡) AND (CLOSE < 阻挡)),5),HIGH*1.02,'逃命');DRAWTEXT(((VE > VG) AND (HIGH < 阻挡)),LOW*0.96,'★短线'),COLOR00FFFF;DRAWTEXT(FILTER(((((((((((OPEN < X2) AND (CLOSE > X2)) AND ((支撑- REF(支撑,1)) > 0)) AND ((支撑- REF(支撑,1)) > 0)) AND (CLOSE < 阻挡)) AND ((均线- REF(均线,1)) > 0)) AND (CLOSE >= 均线)) AND (HIGH < 阻挡)) AND ((MA8 - REF(MA8,1)) > 0)) AND ((阻挡- REF(阻挡,2)) > 0)),11),LOW*0.98,'★快马加鞭'),COLOR0000FF;DRAWTEXT(FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < 阻挡)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4),LOW*0.98,'★狂奔'),COLORD18073;DRAWTEXT((((((((CROSS(支撑,均线) AND (HIGH < 中轨道)) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= X2)) AND (CLOSE >= X2)) AND CROSS(支撑,X2)),LOW,'★起步'),COLOR00FFFF;DRAWTEXT(CROSS(X4,X5),HIGH,'●减仓'),COLOR00B4FF;DRAWTEXT(X9,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((((黑马起步 > 0) AND (LOW <= X2)) AND ((均线 - REF(均线,1)) > 0)),(LOW*0.98),'★黑马起步'),COLOR00FF00;DRAWTEXT((逃遁 > 0),(HIGH * 1.03),'●逃命'),COLOR0000FF;RDV:=SMA(LO,8,1);DRAWTEXT(((((CROSS(K,D) AND (CLOSE >= OPEN)) AND ((X2 - REF(X2,1)) > 0)) AND ((RDV - REF(RDV,1)) > 0)) AND (K <= 33)),(LOW *0.98),'★黑马初现'),COLOR8500DE;DRAWTEXT(FILTER((((((((LOW <= 短期底部0) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE < 牛熊线)) AND (HIGH < 阻挡)) AND ((X2 - REF(X2,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH >= X3)),5),LOW*0.98,'筑底'),COLOR85B256;RCK:=(SMA(LO,21,2) * 0.95);趋势线:=SMA(LOW,5,1);大胆买入:DRAWTEXT(((CROSS(趋势线,RCK) AND (LOW <= X2)) AND ((X2 - REF(X2,1)) > 0)),LOW,'★大胆买入'),COLORE50000;B1:=(((HIGH + LOW) + CLOSE) / 3);B6:=HHV(B1,(4 * 15));B7:=LLV(B1,(4 * 15));B8:=(B6 - B7);飞龙顶底线:=(MA(((B1 -B7) / B8),2) * 80);DRAWTEXT(FILTER(((((((飞龙顶底线<= 1) AND (WINNER(CLOSE) < 0.02)) AND (HIGH < 趋势线)) AND (CLOSE > OPEN)) AND (LOW <= 短期底部0)) AND (CLOSE > 短期底部0)),8),LOW*0.99,'黑马寻底'),COLORE7DD1F;DRAWTEXT(FILTER((((((((LOW <= 短期底部0) AND (WINNER(CLOSE) < 0.015)) AND ((OPEN / CLOSE) > 0.99)) AND ((J - REF(J,1)) > 0)) AND (CLOSE > OPEN)) AND (HIGH < 支撑位)) AND (CLOSE > 短期底部0)),25),LOW*0.98,'开始建仓'),COLOR00FFFF;DRAWTEXT(FILTER((((((((LOW <= 均线30) AND ((MA8 - REF(MA8,1)) > 0)) AND ((均线 - REF(均线20,1)) > 0)) AND ((趋势线- REF(趋势线,1)) > 0)) AND (CLOSE >= 均线30)) AND (WINNER(CLOSE) < 0.15)) ND ((CLOSE / OPEN) > 1.01)),3),LOW,'★天马奔月'),COLOR76B0FC;DRAWTEXT((((((OPEN <= 均线) AND ((均线30 - REF(均线30,1)) > 0)) AND (CLOSE > 均线89)) AND (BB8 > 1)) AND ((CLOSE / OPEN) > 1.04)),LOW,'★天马过桥'),COLORCC99FF;VAR001:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR001,13)-EMA(VAR001,73);SD:= EMA(SK,2);DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,LOW,'黑马短线'),COLORGREEN;注:平台目前更新的有关公式源码,部分可直接导入使用(全部支持电脑手机),有些提示编码错误的,可以及时联系我们这边,帮忙处理(捡漏勿扰,会有收费)喜欢加关注,感谢点赞支持,后市若有可期,希望越来越好!。
黑马起爆通达信指标公式源码
CA:=MA(CLOSE,5);CJ5:=CA*102/100;HA:=MA(H,5);HJ5:=HA*102/100;TGH1:=IF(C>O AND H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); TGH2:=IF(C>O AND H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); TGH3:=IF(C>O AND H=REF(C,1),0,0);LGH1:=IF(C<O AND H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); LGH2:=IF(C<O AND H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); LGH3:=IF(C<O AND H=REF(C,1),0,0);GGH:=(TGH1+TGH2+TGH3+LGH1+LGH2+LGH3);强弱线:MA(REF(GGH,1),26),LINETHICK2,COLORFF00FF; AA:=MA((2*CLOSE+HIGH+LOW)/4,9);通道1:=AA*102/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(C,26))/MA(C,26);DD:=DMA(CLOSE,CC);通道2:=(1+7/100)*DD;中线:MA(ATAN((通道2-REF(通道2,1))),3),LINETHICK2,COLORBLUE;T1:=ATAN((通道1-REF(通道1,1)));T2:=ATAN((通道1-REF(通道1,2)));T3:=ATAN((通道1-REF(通道1,3)));T4:=ATAN((通道1-REF(通道1,4)));T5:=ATAN((通道1-REF(通道1,5)));T6:=ATAN((通道1-REF(通道1,6)));T7:=ATAN((通道1-REF(通道1,7)));T8:=ATAN((通道1-REF(通道1,8)));T9:=ATAN((通道1-REF(通道1,9)));T10:=ATAN((通道1-REF(通道1,10)));强度:=MA((((T1+T2+T3+T4+T5+T6+T7+T8+T9+T10)/10)),3),LINETHICK1,COLOR00FF0 0;TT1:=ATAN((通道2-REF(通道2,1)));TT2:=(ATAN((通道2-REF(通道2,2))));TT3:=(ATAN((通道2-REF(通道2,3))));TT4:=(ATAN((通道2-REF(通道2,4))));TT5:=(ATAN((通道2-REF(通道2,5))));TT6:=(ATAN((通道2-REF(通道2,6))));TT7:=(ATAN((通道2-REF(通道2,7))));TT8:=(ATAN((通道2-REF(通道2,8))));TT9:=(ATAN((通道2-REF(通道2,9))));TT10:=(ATAN((通道2-REF(通道2,10))));短线:=MA((((TT1+TT2+TT3+TT4+TT5+TT6+TT7+TT8+TT9+TT10)/10)),3),COLORRED;。
通达信精准抄底指标,抄底能量柱出现即为庄家拉升前奏——附源码
通达信精准抄底指标,抄底能量柱出现即为庄家拉升前奏——附源码今天跟大家聊聊如何进行抄底,主力资金入场方面的知识。
技术指标,大资金提前入场,抄底都是重中之重,所以一套抄底指标对我们来说意义非常重。
极地拉升大盘前期震荡,拉升不起来。
好多人心灰意冷准备离场,其实不然这只是庄家的一种套路。
极地拉升副图与庄家博弈,抓住机会。
源码E:=CROSS(83,RSI);STICKLINE( E,E,55,1,0),COLORFFFF00;DRAWTEXT(E,50,' 减'),COLORFFFF00;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(IN DEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3, 1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE(EMA(B1,5),EMA(B1,5),B1 +1,B1);领先:EMA(B1,5),COLORCYAN;生命线:EMA(VARD,1),COLORYELLOW;V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);底部监测底部监测是一个专门抓信号进行抄底的技术指标,当底部柱状监测信号出现,就是我们最佳的出手时机。
精准抄底大黑马通达信指标公式源码
精准抄底大黑马通达信指标公式源码在通达信软件中,精准抄底大黑马指标源码如下:```python#快线指标计算公式def fast_line(close_prices, n):high_prices = rolling_max(close_prices, n)low_prices = rolling_min(close_prices, n)fast_line = (close_prices - low_prices) / (high_prices - low_prices) * 100return fast_line#慢线指标计算公式def slow_line(fast_line, m):slow_line = moving_average(fast_line, m)return slow_line#大黑马指标计算公式def dahema(close_prices, n, m):fast = fast_line(close_prices, n)slow = slow_line(fast, m)dahema = (fast - slow) * 2return dahema#主函数:以收盘价为例进行计算def main(:close_prices = [100, 105, 98, 102, 110, 115, 120, 118, 110, 105]n=5#计算快线指标的周期m=3#计算慢线指标的周期result = dahema(close_prices, n, m)print(result)#运行主函数if __name__ == "__main__":main```以上代码中,包含了计算精准抄底大黑马指标的各个公式。
1. `fast_line`: 通过计算最高价的n周期内最大值和最低价的n周期内最小值,计算快线指标的数值。
2. `slow_line`: 通过对快线指标进行移动平均线的计算,得到慢线指标的数值。
通达信指标公式源码 精确抄底逃顶波段
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);长趋势:3*Q3-2*Q4,colorwhite,LINETHICK3;趋势线:EMA(Q3, 3),colorred,LINETHICK3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80,REF(长趋势,3), '*顶'),colorred,LINETHICK5;★逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'★<<-逢低买入'),LINETHICK1;★低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'★低买'),colorred,LINETHICK1;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),colorgreen;DRAWTEXT(顶A=50,45,'快走'),COLOR00FF00;抄底一趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2 *SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3, 1);见底:=10;短期底部:CROSS(趋势,见底);抄底二HLM1:=MA(HHV(H,500),13);HLM2:=MA(HHV(H,250),13);HLM3:=MA(HHV(H,89),13);HLM4:=MA(LLV(L,500),13);HLM5:=MA(LLV(L,250),13);HLM6:=MA(LLV(L,89),13);HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.9 6+HLM6*0.96)/6,17);HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+ HLM6*1.2)/6,17);HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HL M6*1.3)/6,17);HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);HLMH:=HHV(HLM12,30);关注:MA(IF(L<=LLV(L,42),(HLMH+HLM11*2)/3,0),3)/200;DRAWBAND(关注,RGB(255,255,50),0.00001,RGB(0,100,50));STICKLINE(CROSS(3.8,关注) AND 关注<REF(关注,1),0,3.8,1,0),COLORFF00FF;DRAWTEXT(CROSS(3.8,关注) AND 关注<REF(关注,1),3.8,'买底'),COLORFF00FF;STICKLINE(CROSS(10,关注) AND 关注<REF(关注,1),0,10,2,0),COLORyellow; DRAWTEXT(CROSS(10,关注) AND 关注<REF(关注,1),10,'金山'),COLORyellow; STICKLINE(CROSS(62,关注) AND 关注<REF(关注,1),0,18,4,0),COLORred; DRAWTEXT(CROSS(38,关注) AND 关注<REF(关注,1),18,'倾买'),COLORred; JS:=LAST(关注>0.618,3,1) AND (COUNT(CROSS(0.618,关注) OR CROSS(62,关注),21)>=2);stickline(FILTER(JS,13),15,0,4,0),COLORRED;DRAWTEXT(FILTER(JS,13),15,'←★★★牛'),COLORred;。
通达信指标公式源码底部确认 抄底的好指标 无未来
底部确认抄底的好指标无未来A:=LLV(L,34);XD:=SMA(ABS(L-REF(L,1)),34,1);CD:=SMA(MAX(L-REF(L,1),0),34,2);收盘买:=-(EMA(IF(L<=A,XD/CD,-3),9));抢反弹:收盘买<0 AND 收盘买>REF(收盘买,1) AND REF(EVERY(收盘买<REF(收盘买,1),3),1),COLORYELLOW;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;X2:=LLV(J,2)=LLV(J,8);B:CROSS(J,REF(J +0.01,1)) AND X2 AND J<20 AND 收盘买<0 AND 收盘买>REF(收盘买,1),COLORRED;B2:CROSS(J,REF(J+0.01,1)) AND X2 ANDJ<20,COLORMAGENTA;DRAWTEXT(B2,0.35,'★关注★'),COLOR109090;B3:=抢反弹AND REF(B2,1);DRAWBAND(B2,RGB(255,100,30),B3,RGB(255,20,20));DRAWTEXT(B3,0.45,'★不买更后悔★');B4:=抢反弹AND REF(B2,1)OR REF(B2,2);DRAWTEXT(B3,0.35,'★反弹确认★'),COLORYELLOW;STICKLINE(B3,0,0.43,2,0),COLORYELLOW;STICKLINE(B,0,0.43,2,0),C OLORRED;DRAWTEXT(B,0.35,'★不买后悔★'),COLORRED;B8:=REF((CROSS(J,REF(J+0.01,1)) AND X2 AND J<20),2) AND 抢反弹;DRAWTEXT(B8,0.8,'★阶段底部确认★'),COLORYELLOW;DRAWBAND(B2,RGB(255,100,50),B8,RGB(255,30,30));STICKLINE(B2, 0,0.36,2,0),COLOR109090;STICKLINE(B2 ANDREF(PSY<=10,1),0,0.68,2,0),COLOR801090;DRAWTEXT(B2 AND REF(PSY<=10,1),0.68,'★买点★'),COLOR801090;STICKLINE(B2 AND H>O AND C=H AND L<O AND L>REF(L,1) AND C>O AND REF((C<O),1),0,0.18,2,0)COLOR801090;DRAWTEXT(B2 AND H>O AND C=H AND L<O AND L>REF(L,1) AND C>O AND REF((C<O),1),0.18,'阶段底部低吸★'),COLOR801090;STICKLINE(B2 AND REF(RSI<=20,1),0,0.10,2,0),COLOR900000;。
精品抄底通达信指标公式源码
精品抄底通达信指标公式源码网上有个不错的公示,我修改了一下,感觉还不错,发出来给大家。
x_1:=6;x_2:=80;x_3:=ref(close,1);x_4:=sma(max(close-x_3,0),18,1)/sma(abs(close-x_3),13,1)*100;x_5:=sma(max(close-x_3,0),24,1)/sma(abs(close-x_3),20,1)*100;x_6:=barslast(x_5<48)<=3andcross(x_4,x_5);x_7:=(close-ma(close,48))/ma(close,20)*100x_10:=ema((close-x_8)/(x_9-x_8)*100,4);x_11:=ema(0.667*ref(x_10,1)+0.333*x_10,2);x_12:=1011131;x_13:=if(date<=x_12,x_7,0)orif(date<=x_12,x_2,0);x_14:=ref(close,1);x_15:=sma(max(close-x_14,0),7,1)/sma(abs(close-x_14),7,1)*100;x_16:=sma(max(close-x_14,0),13,1)/sma(abs(close-x_14),13,1)*100;x_17:=barslast(x_16<43)<=3andcross(x_15,x_16);x_18:=(close-ma(close,43))/ma(close,20)*100x_21:=ema((close-x_19)/(x_20-x_19)*100,4);x_22:=ema(0.667*ref(x_21,1)+0.333*x_21,2);x_23:=1011131;x_24:=if(date<=x_23,x_18,0)orif(date<=x_23,x_2,0);x_25:=0-(-1)*x_17andx_18andcross(x_21,x_22)andx_21<=25;x_26:=ref(close,1);x_27:=sma(max(close-x_26,0),7,1)/sma(abs(close-x_26),7,1)*100;x_28:=sma(max(close-x_26,0),13,1)/sma(abs(close-x_26),13,1)*100;x_29:=barslast(x_28<33)<=3andcross(x_27,x_28);x_30:=(close-ma(close,33))/ma(close,20)*100x_33:=ema((close-x_31)/(x_32-x_31)*100,4);x_34:=ema(0.667*ref(x_33,1)+0.333*x_33,2);x_35:=1011131;x_36:=if(date<=x_35,x_30,0)orif(date<=x_35,x_2,0);x_37:=0-(-1)*x_29andx_30andcross(x_33,x_34)andx_33<=25;x_38:=ref(close,1);x_39:=sma(max(close-x_38,0),7,1)/sma(abs(close-x_38),7,1)*100;x_40:=sma(max(close-x_38,0),13,1)/sma(abs(close-x_38),13,1)*100;x_41:=barslast(x_40<23)<=3andcross(x_39,x_40);x_42:=(close-ma(close,23))/ma(close,20)*100x_45:=ema((close-x_43)/(x_44-x_43)*100,4);x_46:=ema(0.667*ref(x_45,1)+0.333*x_45,2);x_47:=1011131;x_48:=if(date<=x_47,x_42,0)orif(date<=x_47,x_2,0);x_49:=0-(-1)*x_41andx_42andcross(x_45,x_46)andx_45<=25;x_50:=(ma(close,60)-low)/ma(close,20)*200;x_51:=(ma(close,60)-low)/ma(close,60)*200;x_52:=(ma(close,30)-low)/ma(close,60)*200;x_53:=ref(close,1);x_54:=sma(max(close-x_53,0),7,1)/sma(abs(close-x_53),7,1)*100;x_55:=filter(ref(x_54,1)<20andx_54>ref(x_54,1),5);x_56:=close/m a(close,40)<0.74;x_57:=5;x_58:=ema(close,x_57);x_59:=ema(x_58,x_57);x_60:=x_58-ref(x_58,1);x_61:=x_59-ref(x_59,1);x_62:=abs(x_58-x_59);x_63:=(high-low)/ref(close,1)>0.05;x_64:=(x_60+x_61)/2;x_65:=pow(x_62,1)*pow(x_64,3);x_66:=x_65/hhv(abs(x_65),x_57*3);x_67:=count(x_6 3,5)>1;x_68:=x_56andx_63andx_67;x_69:=cross(x_66,(-0.9));x_70:=filter(x_55andx_52>20orclose>ref(close,1)andref(x_68,1),10);x_71:=filter (ref(x_68,1)and(x_69orclose>ref(close,1))andmacd.macd>(-1.5),10);x_72:=count(x_71,13)>=1andx_70;x_73:=x_72;x_74:=x_37;x_75:=x_49;xg:if(x_73andx_74,x_73andx_74,0)orif(x_73andx_75,x_73andx_75,0);。
超级大黑马通达信策略公式源码
超级大黑马通达信策略公式源码
概述
这份文档提供了超级大黑马通达信策略公式的完整源码。
超级大黑马通达信策略公式是一种用于通达信软件的技术分析策略,旨在帮助投资者做出更明智的交易决策。
源码
以下是超级大黑马通达信策略公式的源码:
策略公式源码
公式1:
条件1:收盘价上穿均线(10)及均线(20)
买入信号:收盘价上穿均线(10)及均线(20),建议买入
卖出信号:收盘价下穿均线(10)及均线(20),建议卖出
公式2:
条件1:收盘价跌破均线(10)
条件2:RSI指标小于30
买入信号:收盘价跌破均线(10)且RSI指标小于30,建议买入
卖出信号:收盘价上穿均线(10),建议卖出
公式3:
条件1:均线(10)上穿均线(20)
买入信号:均线(10)上穿均线(20),建议买入
卖出信号:均线(10)下穿均线(20),建议卖出
使用说明
1. 将上述源码复制到通达信软件的公式编辑器中。
2. 配置相应的参数,如均线的周期、RSI指标的阈值等。
3. 根据信号生成的买入和卖出指示进行操作。
请注意,超级大黑马通达信策略公式源码仅供参考和研究之用,不构成任何投资建议。
在实际使用中,请根据市场情况和个人风险
偏好进行适当调整和验证。
希望这份文档对您有所帮助!如有任何问题,请随时向我提问。
黑马预警通达信指标公式源码
⿊马预警通达信指标公式源码⼀个⿊马预警副图指标。
指标只是辅助,决策在⼈。
VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR2:=2*ABS(VAR1);VAR3:=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);VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR5:=(HIGH+LOW+CLOSE)/3;VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70));VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8); VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VARB:=100-ABS(VARA);VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1), 15,1);VARD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1) ,15,1);VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=VAR11-CLOSE;VAR13:=REF(CLOSE,1);VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;VAR16:=BARSCOUNT(CLOSE);VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*1 00;VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1A:=(SMA(VAR19,4,1)-50)*2;VAR1B:=SMA(VAR1A,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=IF(VAR17<=25 AND VAR18<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR12>=-0.25 AND VAR14<22 AND VAR15<28 AND VAR16>50,80,0); {情报:=VAR3;}情报:ABS(100-VAR3),LINETHICK3;天线: IF(VARB<90,VARB,100);红军: IF(VAR1>0,VAR1,0),COLORRED, LINESTICK;绿军: IF(VAR1<0,VAR2,0),COLORGREEN,LINESTICK;导弹: VAR20;预警系统: IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 ANDVAR6<=-150,-15,VAR9))+60;{STICKLINE(VAR3>=REF(VAR4,1),VAR3,VAR4,8,0);STICKLINE(VAR3VAR21:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);VAR22:=CLOSEVAR23:=红军>50 AND 预警系统>60 AND 天线=100;VAR24:=红军>48 AND 预警系统>60 AND 天线<100;VAR25:=绿军>38 AND 预警系统<55;VAR26:=导弹>50 AND 天线<90;VAR27:=VAR3REF(VOL,1) AND CLOSE>REF(CLOSE,1);VAR28:=VAR3>=REF(VAR4,1) AND CLOSE=REF(绿军,1) AND VARCDRAWTEXT(VAR21 AND COUNT(VAR21,30)=1,100,'上升通道,持股待升或⾼抛低吸!'); DRAWTEXT(VAR22 AND COUNT(VAR22,30)=1,90,'下降通道,⼩⼼⽆量阴跌!'); DRAWTEXT(VAR23 AND COUNT(VAR23,30)=1,70,'上涨过急,需要调整,短线先抛出!')COLORRED;DRAWTEXT(VAR24 AND COUNT(VAR24,30)=1,80,'庄家出货,⼤跌在即,中线抛出!')COLORGREEN;DRAWTEXT(VAR25 AND COUNT(VAR25,30)=1,50,'不必杀跌,应有⼩反弹,跌停除外!'); DRAWTEXT(VAR26 AND COUNT(VAR26,30)=1,30,'');DRAWTEXT(VAR27 AND COUNT(VAR27,30)=1,60,' 红⽜'),COLORYELLOW; DRAWTEXT(VAR27 ANDCOUNT(VAR27,30)=1,50,' ⼤资⾦⼊场!'),COLORYELLOW; DRAWTEXT(VAR28 AND COUNT(VAR28,30)=1,20,'见顶回落');买⼊:IF(VAR27 AND COUNT(VAR27,30)=1,100,0),STICK,LINETHICK7,COLORRED; {STICKLINE(买⼊,0,100,3,0),COLORRED;};。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
信号出现时高点低点一目了然,好不好直接上图
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势:IF(VAR6>45,VAR6-45,0);
0,COLOR00FFFF;
20,POINTDOT,COLORFFAA66,LINETHICK1;
80,POINTDOT,COLORFFAA66,LINETHICK1;
100,COLORFFFF33;
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;
DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),COLORGREEN;
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;
VAR9Q:=IF(VAR8Q>100,100,VAR8Q);
STICKLINE(VAR9Q>-120,0,VAR9Q,6.1,0),COLOR0000AA;
STICKLINE(VAR9Q>-120,0,VAR9Q,4.9,0),COLOR0000BB;
STICKLINE(VAR9Q>-120,0,VAR9Q,3.8,0),COLOR0000CC;
STICKLINE(VAR9Q>-120,0,VAR9Q,2.7,0),COLOR0000DD;
STICKLINE(VAR9Q>-120,0,VAR9Q,1.6,0),COLOR0000EE;
STICKLINE(VAR9Q>-120,0,VAR9Q,0.4,0),COLOR4444FF;
STICKLINE(趋势,(REF(趋势,1)),趋势,3.2,0) ,COLOR0044FF;
STICKLINE(趋势,(REF(趋势,1)),趋势,2.7,0) ,COLOR0066FF;
STICKLINE(趋势,(REF(趋势,1)),趋势,2.1,0) ,COLOR0088FF;
STICKLINE(趋势,(REF(趋势,1)),趋势,1.5,0) ,COLOR00AAFF;
STICKLINE(趋势,(REF(趋势,1)),趋势,0.9,0) ,COLOR00CCFF;
STICKLINE(趋势,(REF(趋势,1)),趋势,0.2,0) ,COLOR00FFFF;
粉红持有:=REF(趋势>REF(趋势,1),1);
STICKLINE(粉红持有,(REF(趋势,1)),趋势,3.2,0),COLOR770077; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.7,0),COLOR990099; STICKLINE(粉红持有,(REF(趋势,1)),趋势,2.1,0),COLORBB00BB; STICKLINE(粉红持有,(REF(趋势,1)),趋势,1.5,0),COLORDD00DD; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.9,0),COLORFF00FF; STICKLINE(粉红持有,(REF(趋势,1)),趋势,0.2,0),COLORFF66FF;
绿色减仓:=趋势<REF(趋势,1);
STICKLINE(绿色减仓,(REF(趋势,1)),趋势,3.2,0 ),COLOR003300; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.7,0 ),COLOR006600; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,2.1,0 ),COLOR009900; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,1.5,0 ),COLOR00CC00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.9,0 ),COLOR00FF00; STICKLINE(绿色减仓,(REF(趋势,1)),趋势,0.2,0 ),COLORCCFF66;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLOR0000FF,LINETHICK2; N:=21;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
E:=CROSS(83,RSI);
STICKLINE( E,E,55,2.7,0),COLORFF6600;
STICKLINE( E,E,55,2.1,0),COLORFF8800;
STICKLINE( E,E,55,1.5,0),COLORFFAA00;
STICKLINE( E,E,55,0.9,0),COLORFFCC00;
STICKLINE( E,E,55,0.2,0),COLORFFFF00;
DRAWTEXT(E,50,' 逃顶'),COLORFF9966;
TYP:=(HIGH+LOW+CLOSE)/3;
VAR11:=3;
VAR21:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;
主力线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHIC K1,POINTDOT;
超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK0,COLORLIRED;
轴:0,COLORFFFFFF;。