通达信指标公式源码 抓涨停板指标
通达信利用分时量能抓涨停副图指标源码
通达信利用分时量能抓涨停副图指标源码背景: DRAWGBK(1,RGB(25,25,112),RGB(0,0,128),0,1,0);量价:=(VOL/CLOSE)/3;统计主动买量:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);统计主动卖量:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);涨停量:((统计主动买量)/统计主动卖量)*10,NODRAW,COLORRED;DRAWTEXT_FIX(1,0.04,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.1,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.2,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.04,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.06,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.07,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.08,0.3,0,'▇'),COLORGRAY;DRAWTEXT_FIX(1,0.05,0.4,0,'▇'),COLORGRAY; DRAW TEXT_FIX(1,0.06,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.4,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.5,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.6,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.05,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.06,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.07,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.08,0.7,0,'▇'),COLORGRAY; DRAWTEXT_FIX(1,0.04,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.05,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.06,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.07,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.08,0.8,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.04,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.05,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.06,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.07,0.9,0,'▇'),COLORWHITE; DRAWTEXT_FIX(1,0.08,0.9,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.05,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.06,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.07,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(1,0.08,1,0,'▇'),COLORWHITE;DRAWTEXT_FIX(涨停量>30,0.04,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0,0,'▇'),COLOR YELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0,0,'▇'),COLORYELLOW;DRAWNUMBER_FIX(涨停量AND ISLASTBAR,0.04,0,0,涨停量),LINETHICK8,COLORRED;DRAWTEXT_FIX(涨停量>30,0.04,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0.1,0,'▇'),C OLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0.1,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.04,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.05,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.06,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.07,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0.2,0,'▇'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0.2,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0.1,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.03,0,0,'●'),COLORYELLOW;DRAWTEXT_FIX(涨停量>30,0.08,0,0,' ←早盘OBV值保持20,30以上出绿钻有涨停可能'),COLORYELLOW;:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));涨停量▇:=(统计主动买量/统计主动卖量)*40,LINETHICK2,NODRAW,COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.3,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.4,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.04,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.05,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.06,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.07,0.5,0,'▇'),COLORRED;DRAWTEXT_FIX(20<涨停量▇ <30,0.08,0.5,0,'▇'),COLORRED;OBV:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200), LINETHICK5,COLORGREEN;DRAWICON(CROSS(EXPMA(OBV,120)-0.0004,EXPMA(OBV,200)),EXPMA(OBV,200)*1,27);。
通达信公式给大家分享两个利用分时图当天抓涨停板的公式【很准】
通达信公式给大家分享两个利用分时图当天抓涨停板的公式【很准】LTA:=FINANCE(7)+0;GB:=2*IF(FINANCE(7)C1:=CLOSE;V1:=TIME;A1:=COUNT(BARSCOUNT(C)=1 AND TIMET:=IF(V1(FLOOR(V1/10000)-11)*60+(FLOOR(V1/100)-100*FLOOR(V1 /10000))),NODRAW;成交额:AMOUNT,NODRAW;大额线:=50*3+300*GB,COLOR00FFFF;VV2:=SUM(AMOUNT,T),NODRAW;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),VV2,0);初负1:=IF(T=1 AND DYNAINFO(4)初正2:=CONST(SUM(IF(T=1,初正1,0),T)),NODRAW;初负2:=CONST(SUM(IF(T=1,初负1,0),T)),NODRAW;初正:=CONST(SUM(IF(初正1>大额线 AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>大额线 AND T=1,初负1,0),T)),NODRAW;T00:=IF(C1>REF(C1,1),,;T01:=IF(C1T02:=T00+T01;TT1:=BARSLAST(CROSS(T02,0));TT2:=BARSLAST(CROSS(0,T02));TT:=IF(T02=,1,IF(T02=,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1>TT2),成交额,0);负V1:=IF(TT=-1 OR (TT=0 AND TT1正总1:=初正1+SUM(正V1,T),NODRAW,COLOR0000FF;负总1:=初负1+SUM(负V1,T),NODRAW,COLOR00FF00;总:=(正总1+负总1)+初正2+初负2,NODRAW;正V:=IF(正V1>大额线,正V1,0);负V:=IF(负V1>大额线,负V1,0);正总:初正+SUM(正V,T),NODRAW,COLOR0000FF;负总:初负+SUM(负V,T),NODRAW,COLOR00FF00;差%:(正总-负总)/总*100,COLOR00FF00,NODRAW;TTA:=INTPART(2*T/5);KP30:=TKPGD:=H=HHV(H,0) AND KP30;GDSJ:=BARSLAST(KPGD);{强弱界}MMA30:=EMA(CLOSE,30);强弱界定:=EMA(CLOSE,900);DRAWBAND(MMA30,RGB(100,0,0),强弱界定,RGB(0,255,0));DRAWICON(CROSS(MMA30,强弱界定),H,1); CC:=CLOSE,COLORWHITE,LINETHICK2;VAR7:=SMA(CC,,1);VAR8:=SMA(VAR7,,1);RCC:=DYNAINFO(3);S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=4*(S2-S6);KK:=1;{暗轨}{AA1:=PLOYLINE(CLOSE5,COST(20));BB1:=PLOYLINE(CLOSE5,COST(80));DRAWBAND(BB1,RGB(50,50,50),AA1,DRAWNULL); {CYC} VAR1:=AMOUNT/VOL/100;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,5)/VAR1/100;VAR4:=SUM(AMOUNT,13)/VAR1/100;VAR5:=SUM(AMOUNT,34)/VAR1/100;CYC5:=DMA(VAR2,VOL/VAR3);CYC13:=DMA(VAR2,VOL/VAR4);CYC34:=DMA(VAR2,VOL/VAR5);DRAWBAND(CYC5,RGB(00,50,50),CYC13,DRAWNULL); DRAWBAND(CYC13,RGB(00,150,150),CYC34,DRAWNULL); {分时MACD}昨收:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);FK:=MAX(HH-昨收,昨收-LL)*;ZS:=昨收-FK*;Q1:=昨收-FK*;Q2:=昨收-2*FK*;Q3:=昨收-3*FK*;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=5*(DIF-DEA);STICKLINE(MACD>=0 ANDMACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLO RFF 00FF,LINETHICK3;STICKLINE(MACD>=0 AND MACDSTICKLINE(MACD=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0 ),COLOR4ABEFF,LINETHICK3;STICKLINE(MACDSTICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED; STICKLINE(DK{多头MACD}DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;DEAA:=EMA(DIFF,18);多头MACD:=(-3*(DIFF-DEAA))*20,NODRAW;ZD:=HHV(多头MACD,0);ZX:=LLV(多头MACD,0);CZ:=(Q2-Q3)/6;FDM:=MAX(ABS(ZD),ABS(ZX))*;RB:=(Q2+Q3)/2+2*(Q2-Q3)/3/FDM*多头MACD; STICKLINE(多头MACD>0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR0000FF; STICKLINE(多头MACD{火焰山及底部信号}FAA:=WINNER(CLOSE+CLOSE*15/100)*100;FBB:=WINNER(CLOSE+CLOSE*0/100)*100;FCC:=FAA-FBB;FDD:=(WINNER(CLOSE-CLOSE*100)-WINNER(CLOSE-CLOSE*15/100))*100;FEE:=FCCFA1:=DYNAINFO(6);FA2:=IF(LOW>FA1,0,IF(HIGHFA3:=VOL/WINNER(LOW);FA4:=REF(HHV(CLOSE,120),1);FA5:=REF(LLV(CLOSE,120),1);FA6:=100*(CLOSE-FA5)/(FA4-FA5);FA7:=FA2>0 OR FA2=1;FA8:=FA7 AND FA3/REF(FA3,3)>=3 AND FA6FA9:=REF(FA8,1) OR REF(FA8,2) OR REF(FA8,3) OR REF(FA8,4);FA10:=FA8 AND FA9;FA11:=IF(FILTER(FA8,3),5,0);FA12:=IF(FILTER(FA10,3) OR FEE,10,0);EEEE:=(RCC-ZS)/5;FVAR1:=REF(LOW,1);FVAR2:=SMA(ABS(LOW-FVAR1),13,1)/SMA(MAX(LOW-FVAR1,0 ),13,1);FVAR3:=EMA(FVAR2,13);FVAR4:=LLV(LOW,34);FVAR51:=EMA(IF(LOWFVAR5:=IF(FVAR51>20,20,FVAR51);DRAWTEXT(FA11,(Q2+Q3)/2*,'↑进'),COLOR00FFFF; DRAWTEXT(FA12,(Q2+Q3)/2*,',↑加');主力进场:STICKLINE(FVAR5>REF(FVAR5,1),(Q2+Q3)/2,(Q2+Q3)/2 +FVAR5*EEEE,10,0 ),COLORRED;洗盘:IF(FVAR5STICKLINE(FVAR5FVAR6:=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),1 5,1);FVAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-L LV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1 );FVAR8:=FVAR6REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(FVAR8 ANDCOUNT(FVAR8,30)=1,(Q2+Q3)/2+3*EEEE,'★迹');JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEASTICKLINE(二次金叉,(Q2+Q3)/2,(Q2+Q3)/2*,4,0),COLORFF00FF; DRAWTEXT(二次金叉,(Q2+Q3)/2*,' 二金'),COLORYELLOW; HHH:=MA(CLOSE,10);GGG:=MA(CLOSE,12);上:=EMA((MA(HIGH,3) * ,30);下:=EMA((MA(LOW,3) * ,30);决战:STICKLINE((((CROSS(DIF,DEA) AND ((下 -REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND(DIFDRAWTEXT((((CROSS(DIF,DEA) AND ((下- REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF{两个主要买进信号}RSV:=((CLOSE-LLV(LOW,240))/(HHV(HIGH,240)-LLV(LOW,2 40))*200-100);K:=SMA(SMA(RSV,18,1),3,1);D:=MA(EMA(K,18),3);短买:=CROSS(K,D) AND K>0 AND CLOSEDRAWTEXT(短买,(Q2+Q3)/2+(Q2-Q3)/1,'短买'),COLORFF00FF;YY:=SMA(VOL,30,1);量1:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30));量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(L LV(YY,1),30))>;短横:=((HHV(CLOSE,TTA)-LLV(CLOSE,TTA))/CLOSE)横后上涨:=(CLOSE/DYNAINFO(3))>==0 AND 短横AND 量AND CROSS(C,(MA(C*V,TTA)/MA(V,TTA) +AVEDEV(C,TTA)*2));上涨:=FILTER((CROSS(横后上涨,0)AND 量 AND T>60OR (T>60 AND CLOSEAND CROSS(C,MA(HHV(C,TTA),1)))),30);DRAWTEXT(上涨,(Q2+Q3)/2+(Q2-Q3)/1,'★涨'),COLORRED,LINETHICK3;HHHH:REF(H,GDSJ),COLORFFFFFF,POINTDOT,LINETHICK1;过顶:IF(CROSS(C,HHHH),1,0),COLOR00FF00,POINTDOT,NODR A W;冲高:IF(FILTER(CROSS(C,HHHH*,15),1,0),COLOR00FFFF,POI NTDOT,NODRAW;DRAWBAND(VAR7,RGB(255,255,0),VAR8,RGB(0,255,255)); DRAWTEXT(过顶,HHHH*,'↑'),COLOR00FF00;DRAWTEXT(冲高,HHHH*,'☆'),COLOR00FFFF;C,LINETHICK2,COLORFFFFFF;抓住当天最佳买点!个人自用极品跟庄分时指标(分时源码附图)注意二点:1.当股价金叉均线时要等一等,因为这时卖盘还大于买盘(下面指标中绿线在上,红线在下)。
抄底王公式 抓涨停指标通达信指标公式源码
通达信抄底王公式抓涨停指标本指标可以根据图中的买卖点选择自己需要的股票然后跟其他指标对比使用E40:EXPMA(CLOSE,40);工作线:=MA(CLOSE,1);M3:MA(CLOSE,3)COLORRED;M13:MA(CLOSE,13)COLORGREEN;收:C,COLORRED,NODRAW;高:H,NODRAW;三:C*1.0348,NODRAW;五:C*1.055,NODRAW;八:C*1.0848,NODRAW;十:C*1.1048,NODRAW;十五:C*1.1548,NODRAW;廿:C*1.2048,NODRAW;止:C*(1-0.025),NODRAW;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);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(工作线,M13)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;}; 日跌: L*0.99,NODRAW,COLORFF00FF;周跌: L*0.94,NODRAW,COLORFF00FF;。
通达信指标公式源码 涨停板主图
支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; 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;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;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;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。
分时涨停通达信指标公式源码
分时涨停通达信指标公式源码通达信指标公式源码是一种编写股票技术指标的代码,通常用于量化交易分析。
分时涨停是指当股价在一定时间内涨幅达到涨停板的情况。
下面是一个使用通达信公式语言编写的分时涨停指标示例源码:```c/*分时涨停指标公式*//*分时涨停=(当前价格-昨收价格)/昨收价格*100*//*若涨幅超过10%,则显示为1000*//*以一个交易日为周期计算涨停*/input n = 1; // 交易周期input limit_up = 10; // 涨停幅度//获取昨收价格prev_close = Ref(C, 1);//计算当前涨停幅度percent = (close - prev_close) / prev_close * 100;//若当前涨停幅度超过限制,则显示为1000if (percent >= limit_up)percent = 1000;//输出涨停幅度Plot(percent, "分时涨停", colorRed, styleLine, Null, Null, n);```上述代码中,`input`语句用于设置输入参数,包括交易周期和涨停幅度。
`prev_close`变量用于获取昨收价格,`percent`变量用于计算当前涨停幅度。
如果涨幅超过涨停幅度限制,将其显示为1000。
最后,使用`Plot`函数输出涨停幅度曲线,参数包括指标数值、指标名称、曲线颜色和样式等。
注意:以上代码仅为示例,具体的指标公式可能根据交易软件和数据源的不同而有所差异,需要根据实际需求进行相应的调整和修改。
用户可以根据自己的需求进行各种参数的设置和指标计算逻辑的编写。
通达信指标公式源码 涨停板主图
支撑价:LLV(LOW,19) ,COLORGREEN,LINETHICK3;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK3;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF (LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL 07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07, 12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16) +3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; VAR1L:=(C>REF(C,1) AND C>REF(C,2));VAR2L:=(REF(VAR1L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3L:=(REF(VAR2L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4L:=(REF(VAR3L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5L:=(REF(VAR4L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6L:=(REF(VAR5L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7L:=(REF(VAR6L,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8L:=(REF(VAR7L,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9L:=(REF(VAR8L,1) AND C>=REF(C,1) AND C<=REF(C,2));VARAL:=(REF(VAR9L,1) AND C<=REF(C,1) AND C>=REF(C,2));VARBL:=(REF(VARAL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARCL:=(REF(VARBL,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1L OR VAR2L OR VAR3L OR VAR4L OR VAR5L OR VAR6L OR VAR7L OR VAR8L OR VAR9L OR VARAL OR VARBL OR VARCL,牛线,DRAWNULL),COLORRED,LINETHICK1;VARDL:=(C<REF(C,1) AND C<REF(C,2));VAREL:=(REF(VARDL,1) AND C>=REF(C,1) AND C<=REF(C,2));VARFL:=(REF(VAREL,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L0:=(REF(VARFL,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L1:=(REF(VAR1L0,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L2:=(REF(VAR1L1,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L3:=(REF(VAR1L2,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L4:=(REF(VAR1L3,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L5:=(REF(VAR1L4,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L6:=(REF(VAR1L5,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR1L7:=(REF(VAR1L6,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR1L8:=(REF(VAR1L7,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARDL OR VAREL OR VARFL OR VAR1L0 OR VAR1L1 OR VAR1L2 OR VAR1L3 OR VAR1L4 OR VAR1L5 OR VAR1L6 OR VAR1L7 OR VAR1L8,牛线,DRAWNULL),COLORGREEN,LINETHICK1;V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW; V10日涨跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;V30日涨跌%:(C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW; 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;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;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;VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3), LINETHICK4,POINTDOT;VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100; VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100; VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5) /4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLO SE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100; VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*10 0;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LO W),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 ANDCLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'风险'), COLOR00FF00; DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'抄底'),COLORYELLOW; STICKLINE(VAR2D>0,O,C,10,0), COLORYELLOW;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 ANDVAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)AND CROSS(VAR6,0)ANDVARF>REF(VARF,1)AND C>O,3),L,11);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)AND VAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,12);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)ANDC<O,H*1.02,6);Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;Z:=CLOSE/REF(CLOSE,1)<0.93;W:=VOL<MA(VOL,5);A2:=Z AND W;DRAWTEXT(A2,MA(CLOSE,5),'小心跌停'),COLORGREEN;。
通达信公式给大家两个利用分时图当天抓涨停板的公式很准
通达信公式给大家分享两个利用分时图当天抓涨停板的公式【很准】LTA:=FINANCE(7)+300000000;GB:=2*IF(FINANCE(7)C1:=CLOSE;V1:=TIME;A1:=COUNT(BARSCOUNT(C)=1 AND TIMET:=IF(V1(FLOOR(V1/10000)-11)*60+(FLOOR(V1/100)-100*FLOOR(V1/1 0000))),NODRAW;成交额:AMOUNT,NODRAW;大额线:=50*3+300*GB,COLOR00FFFF;VV2:=SUM(AMOUNT,T),NODRAW;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),VV2,0);初负1:=IF(T=1 AND DYNAINFO(4)初正2:=CONST(SUM(IF(T=1,初正1,0),T)),NODRAW;初负2:=CONST(SUM(IF(T=1,初负1,0),T)),NODRAW;初正:=CONST(SUM(IF(初正1>大额线AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>大额线AND T=1,初负1,0),T)),NODRAW;T00:=IF(C1>REF(C1,1),0.9,-0.9);T01:=IF(C1T02:=T00+T01;TT1:=BARSLAST(CROSS(T02,0));TT2:=BARSLAST(CROSS(0,T02));TT:=IF(T02=1.8,1,IF(T02=-1.8,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1>TT2),成交额,0);负V1:=IF(TT=-1 OR (TT=0 AND TT1正总1:=初正1+SUM(正V1,T),NODRAW,COLOR0000FF; 负总1:=初负1+SUM(负V1,T),NODRAW,COLOR00FF00; 总:=(正总1+负总1)+初正2+初负2,NODRAW;正V:=IF(正V1>大额线,正V1,0);负V:=IF(负V1>大额线,负V1,0);正总:初正+SUM(正V,T),NODRAW,COLOR0000FF;负总:初负+SUM(负V,T),NODRAW,COLOR00FF00; 差%:(正总-负总)/总*100,COLOR00FF00,NODRAW; TTA:=INTPART(2*T/5);KP30:=TKPGD:=H=HHV(H,0) AND KP30;GDSJ:=BARSLAST(KPGD);{强弱界}MMA30:=EMA(CLOSE,30);强弱界定:=EMA(CLOSE,900);DRAWBAND(MMA30,RGB(100,0,0),强弱界定,RGB(0,255,0)); DRAWICON(CROSS(MMA30,强弱界定),H,1);CC:=CLOSE,COLORWHITE,LINETHICK2;VAR7:=SMA(CC,6.18,1);VAR8:=SMA(VAR7,3.14,1);RCC:=DYNAINFO(3);S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=4*(S2-S6);KK:=1;{暗轨}{AA1:=PLOYLINE(CLOSE5,COST(20));BB1:=PLOYLINE(CLOSE5,COST(80));DRAWBAND(BB1,RGB(50,50,50),AA1,DRAWNULL); {CYC}VAR1:=AMOUNT/VOL/100;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,5)/VAR1/100;VAR4:=SUM(AMOUNT,13)/VAR1/100;VAR5:=SUM(AMOUNT,34)/VAR1/100;CYC5:=DMA(VAR2,VOL/VAR3);CYC13:=DMA(VAR2,VOL/VAR4);CYC34:=DMA(VAR2,VOL/VAR5);DRAWBAND(CYC5,RGB(00,50,50),CYC13,DRAWNULL); DRAWBAND(CYC13,RGB(00,150,150),CYC34,DRAWNULL); {分时MACD}昨收:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);FK:=MAX(HH-昨收,昨收-LL)*0.1;ZS:=昨收-FK*3.2;Q1:=昨收-FK*3.22;Q2:=昨收-2*FK*3.22;Q3:=昨收-3*FK*3.2;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=5*(DIF-DEA);STICKLINE(MACD>=0 ANDMACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORFF00FF,LINETHICK3;STICKLINE(MACD>=0 AND MACDSTICKLINE(MACD=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0 ),COLOR4ABEFF,LINETHICK3;STICKLINE(MACDSTICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED; STICKLINE(DK{多头MACD}DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;DEAA:=EMA(DIFF,18);多头MACD:=(-3*(DIFF-DEAA))*20,NODRAW;ZD:=HHV(多头MACD,0);ZX:=LLV(多头MACD,0);CZ:=(Q2-Q3)/6;FDM:=MAX(ABS(ZD),ABS(ZX))*1.5;RB:=(Q2+Q3)/2+2*(Q2-Q3)/3/FDM*多头MACD; STICKLINE(多头MACD>0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR0000FF; STICKLINE(多头MACD{火焰山及底部信号}FAA:=WINNER(CLOSE+CLOSE*15/100)*100;FBB:=WINNER(CLOSE+CLOSE*0/100)*100;FCC:=FAA-FBB;FDD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLO SE*15/100))*100;FEE:=FCCFA1:=DYNAINFO(6);FA2:=IF(LOW>FA1,0,IF(HIGHFA3:=VOL/WINNER(LOW);FA4:=REF(HHV(CLOSE,120),1);FA5:=REF(LLV(CLOSE,120),1);FA6:=100*(CLOSE-FA5)/(FA4-FA5);FA7:=FA2>0 OR FA2=1;FA8:=FA7 AND FA3/REF(FA3,3)>=3 AND FA6FA9:=REF(FA8,1) OR REF(FA8,2) OR REF(FA8,3) OR REF(FA8,4); FA10:=FA8 AND FA9;FA11:=IF(FILTER(FA8,3),5,0);FA12:=IF(FILTER(FA10,3) OR FEE,10,0);EEEE:=(RCC-ZS)/5;FVAR1:=REF(LOW,1);FVAR2:=SMA(ABS(LOW-FVAR1),13,1)/SMA(MAX(LOW-FVAR1, 0),13,1);FVAR3:=EMA(FVAR2,13);FVAR4:=LLV(LOW,34);FVAR51:=EMA(IF(LOWFVAR5:=IF(FVAR51>20,20,FVAR51);DRAWTEXT(FA11,(Q2+Q3)/2*1.02,'↑进'),COLOR00FFFF; DRAWTEXT(FA12,(Q2+Q3)/2*1.03,',↑加');主力进场:STICKLINE(FVAR5>REF(FVAR5,1),(Q2+Q3)/2,(Q2+Q3)/2+FVA R5*EEEE,10,0 ),COLORRED;洗盘:IF(FVAR5STICKLINE(FVAR5FVAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LL V(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); FVAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV (LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); FVAR8:=FVAR6REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(FVAR8 ANDCOUNT(FVAR8,30)=1,(Q2+Q3)/2+3*EEEE,'★迹'); JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEASTICKLINE(二次金叉,(Q2+Q3)/2,(Q2+Q3)/2*1.01,4,0),COLORFF00FF;DRAWTEXT(二次金叉,(Q2+Q3)/2*1.01,' 二金'),COLORYELLOW;HHH:=MA(CLOSE,10);GGG:=MA(CLOSE,12);上:=EMA((MA(HIGH,3) * 1.05),30);下:=EMA((MA(LOW,3) * 0.96),30);决战:STICKLINE((((CROSS(DIF,DEA) AND ((下- REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND(DIFDRAWTEXT((((CROSS(DIF,DEA) AND ((下- REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF{两个主要买进信号}RSV:=((CLOSE-LLV(LOW,240))/(HHV(HIGH,240)-LLV(LOW,240) )*200-100);K:=SMA(SMA(RSV,18,1),3,1);D:=MA(EMA(K,18),3);短买:=CROSS(K,D) AND K>0 AND CLOSEDRAWTEXT(短买,(Q2+Q3)/2+(Q2-Q3)/1,'短买'),COLORFF00FF; YY:=SMA(VOL,30,1);量1:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30));量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY, 1),30))>0.92;短横:=((HHV(CLOSE,TTA)-LLV(CLOSE,TTA))/CLOSE)横后上涨:=(CLOSE/DYNAINFO(3))>=1.02=0 AND 短横AND 量AND CROSS(C,(MA(C*V,TTA)/MA(V,TTA) + AVEDEV(C,TTA)*2)); 上涨:=FILTER((CROSS(横后上涨,0)AND 量AND T>60OR (T>60 AND CLOSEAND CROSS(C,MA(HHV(C,TTA),1)))),30);DRAWTEXT(上涨,(Q2+Q3)/2+(Q2-Q3)/1,'★涨'),COLORRED,LINETHICK3;HHHH:REF(H,GDSJ),COLORFFFFFF,POINTDOT,LINETHICK1;过顶:IF(CROSS(C,HHHH),1,0),COLOR00FF00,POINTDOT,NODRAW; 冲高:IF(FILTER(CROSS(C,HHHH*1.01),15),1,0),COLOR00FFFF,POI NTDOT,NODRAW;DRAWBAND(VAR7,RGB(255,255,0),VAR8,RGB(0,255,255)); DRAWTEXT(过顶,HHHH*1.005,'↑'),COLOR00FF00; DRAWTEXT(冲高,HHHH*1.005,'☆'),COLOR00FFFF;C,LINETHICK2,COLORFFFFFF;抓住当天最佳买点!个人自用极品跟庄分时指标(分时源码附图)注意二点:1.当股价金叉均线时要等一等,因为这时卖盘还大于买盘(下面指标中绿线在上,红线在下)。
天天涨停通达信指标公式源码
天天涨停通达信指标公式源码```pythonimport pandas as pd#定义天天涨停通达信指标的计算函数def tiantian_zhangting(df):#计算涨跌幅df['涨跌幅'] = (df['收盘价'] - df['昨收价']) / df['昨收价'] * 100#计算涨停板df['涨停板'] = df['昨收价'] * 1.1#初始化天天涨停通达信指标df['天天涨停通达信指标'] = 0#根据涨跌幅和涨停板计算天天涨停通达信指标for i in range(1, len(df)):if df.loc[i, '涨跌幅'] == 9.9 and df.loc[i, '收盘价'] == df.loc[i, '涨停板']:df.loc[i, '天天涨停通达信指标'] = 1elif df.loc[i, '涨跌幅'] != 9.9:df.loc[i, '天天涨停通达信指标'] = df.loc[i-1, '天天涨停通达信指标']return df#读取股票数据data = pd.read_csv('stock_data.csv')#调用天天涨停通达信指标计算函数result = tiantian_zhangting(data)#打印计算结果print(result)```在上面的代码中,首先导入了Pandas库用于读取和处理股票数据。
接下来定义了一个`tiantian_zhangting`函数,用于计算天天涨停通达信指标。
在这个函数中,首先计算出每一天的涨跌幅,然后根据涨跌幅和涨停板来计算天天涨停通达信指标。
最后,将计算结果存储在一个新的列`天天涨停通达信指标`中,并返回整个数据集。
通达信指标公式源码 自用涨停主图指标
涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0984,1.110) AND C=H AND C>O; MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORGREEN;MA60:MA(CLOSE,60),COLORBROWN,DOTLINE;MA120:MA(CLOSE,120),COLORLIMAGENTA,DOTLINE;DRAWICON(CROSS(MA10,MA20),MA20,1);DRAWICON(CROSS(MA20,MA60),MA60,1);DRAWICON(CROSS(MA20,MA120),MA120,1);DRAWICON(CROSS(MA60,MA120),MA60,1);反弹托:=MA5>MA20 AND MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);DRAWTEXT(月蜘蛛,MA20-0.08,'△蜘'),COLORMAGENTA;DRAWTEXT(反弹托,MA20-0.08,'△反弹'),COLORMAGENTA;DRAWTEXT(月价托,MA20-0.1,'△月托'),COLORMAGENTA;DRAWTEXT(季价托,MA60-0.0.1,'△季托'),COLORMAGENTA;DRAWTEXT(短长价托,L+0.05,'△短长托'),COLOR36C0C1;DRAWTEXT(半年托,MA120-0.05,'△牛来'),COLORRED;DRAWTEXT(熊来,MA60+0.05,'▽熊来'),COLORGREEN;压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10); DRAWTEXT(压,MA20+0.012,'▽压'),COLORYELLOW;VOL5:=MA(VOL,5),COLORWHITE; {好}VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.05,'△芙'),COLORFF00FF;STICKLINE(芙蓉出水,H+2,L-2,0.001,0),COLORYELLOW,DOTLINE;R1:=(C>REF(C,1) AND C>REF(C,2));R2:=(REF(R1,1) AND C<=REF(C,1) AND C>=REF(C,2));R3:=(REF(R2,1) AND C>=REF(C,1) AND C<=REF(C,2));R4:=(REF(R3,1) AND C<=REF(C,1) AND C>=REF(C,2));R5:=(REF(R4,1) AND C>=REF(C,1) AND C<=REF(C,2));R6:=(REF(R5,1) AND C<=REF(C,1) AND C>=REF(C,2));R7:=(REF(R6,1) AND C>=REF(C,1) AND C<=REF(C,2));R8:=(REF(R7,1) AND C<=REF(C,1) AND C>=REF(C,2));R9:=(REF(R8,1) AND C>=REF(C,1) AND C<=REF(C,2));RA:=(REF(R9,1) AND C<=REF(C,1) AND C>=REF(C,2));RB:=(REF(RA,1) AND C>=REF(C,1) AND C<=REF(C,2));RC:=(REF(RB,1) AND C<=REF(C,1) AND C>=REF(C,2));RD:=(C<REF(C,1) AND C<REF(C,2));RE:=(REF(RD,1) AND C>=REF(C,1) AND C<=REF(C,2));RF:=(REF(RE,1) AND C<=REF(C,1) AND C>=REF(C,2));R10:=(REF(RF,1) AND C>=REF(C,1) AND C<=REF(C,2));R11:=(REF(R10,1) AND C<=REF(C,1) AND C>=REF(C,2));R12:=(REF(R11,1) AND C>=REF(C,1) AND C<=REF(C,2));R13:=(REF(R12,1) AND C<=REF(C,1) AND C>=REF(C,2));R14:=(REF(R13,1) AND C>=REF(C,1) AND C<=REF(C,2));R15:=(REF(R14,1) AND C<=REF(C,1) AND C>=REF(C,2));R16:=(REF(R15,1) AND C>=REF(C,1) AND C<=REF(C,2));R17:=(REF(R16,1) AND C<=REF(C,1) AND C>=REF(C,2));R18:=(REF(R17,1) AND C>=REF(C,1) AND C<=REF(C,2));R19:=((REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15OR R16 OR R17 OR R18,1)) AND R1);R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);蓝心板:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1);RSV9:=(C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1);出手就赢:=IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,50,0);绿心板:=(出手就赢=50 OR REF("KDJ.J",1)<0) AND "KDJ.J">0;红心板:=蓝心板AND 绿心板;绿心过滤:=IF((蓝心板),DRAWNULL,绿心板);蓝心过滤:=IF((绿心板),DRAWNULL,蓝心板);STICKLINE(涨停,O,C,3.6,1),COLORYELLOW;STICKLINE(涨停AND 蓝心过滤,O,C,0.4,0),COLORBLUE;STICKLINE(涨停AND 绿心过滤,O,C,0.4,0),COLORGREEN;STICKLINE(涨停AND 红心板,O,C,0.4,0),COLORRED;AAA:=CONST(HHV(H,90));AA2:=AMOUNT/V;BB2:=L<AA1*0.9;CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;DD2:=L<MA(C,5)*0.921;EE2:=V<MA(V,5)*1.5;老鼠仓:=BB2 AND CC2 AND DD2 AND EE2,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >=DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;,'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=70,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。
通达信指标公式源码股圣指标 大盘无系统风险时 抓涨停不是难事
股圣指标,抓涨停概率40%,但信号出后晌涨概率大于90%。
绝无未来,鄙视发有未来的人腰线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,,; KKA:=EMA(C-L,5) ;顶线:=MA((C+REF(C,1)+REF(C,1))/3+KKA,5);底线:=MA(REF(C,1)-KKA,5);MA10:= MA(C,10);MA20:= MA(C,20);MA60:= MA(C,60);BBA:=MA(C,2);CCA:=MA(C,10);DDA:=MA(C,20);EEA:=EXIST(CROSS(BBA,CCA) AND CROSS(BBA,DDA),1);RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);BB:=MA(SUM(J1-J2,22),3);累加:=21*BB+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4) +16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8)+12*REF(BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,12)+8*REF(BB,13)+7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,16)+4*REF(BB,17)+3*REF (BB,18)+2*REF(BB,19)+REF(BB,20);WMA:=累加/(21+1)/21*2;CC:=WMA;VAR3:=(BB-CC);VAR4:=SMA(RV,3,1);VAR5:=SMA(VAR4,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;股圣:腰线>O AND O>底线AND C>顶线AND C>MA20 AND C>腰线AND EEAAND CROSS(VAR4,VAR5) AND CROSS(KK,DD)COLORGREEN;。