【股票指标公式下载】-【通达信】一线金叉(主图)

合集下载

通达信六大金叉指标公式

通达信六大金叉指标公式

请您及时更换请请请您正在使用的模版将于2周后被下线请您及时更式
2011-01-22 股旁网 分类:通达信公式 标签: 金叉 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); DRAWICON(DIFF>DEA,1,1); DRAWICON(DIFF MCDA金叉:DIFF>DEA; RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); DRAWICON(K>D,2,1); DRAWICON(K KDJ金叉:K>D; LC:=REF(CLOSE,1); RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100; DRAWICON(RSI1>RSI2,3,1); DRAWICON(RSI1 RSI金叉:RSI1>RSI2; LWR1:=SMA(RSV,3,1); LWR2:=SMA(LWR1,3,1); DRAWICON(LWR1>LWR2,4,1); DRAWICON(LWR1 LWR金叉:LWR1>LWR2; {股旁网-股票公式网站 } BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; DRAWICON(CLOSE>BBI,5,1); DRAWICON(CLOSE BBI金叉:CLOSE>BBI; MTM:=CLOSE-REF(CLOSE,1); MMS:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3); MMM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12); DRAWICON(MMS>MMM,6,1); DRAWICON(MMS MMS金叉:MMS>MMM; MCDA金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉,COLORRED,LINETHICK2;

【股票指标公式下载】-【通达信】三线开花(乖离线、金叉、牛象)

【股票指标公式下载】-【通达信】三线开花(乖离线、金叉、牛象)

【通达信】三线开花(乖离线、金叉、牛象)-指标公式源码ma20:ma(c,20),colorwhite,linethick2;ma120:ma(c,120),colorffcccc,linethick2;ma250:ma(c,250),colorffcc66,linethick2;乖离线:=((c-ref(ma20,1))/20+ma20)*1.20;tt1:=cross(ma20,ma120) and cross(ma20,ma250) and v>ref(v,1);tt2:=ma20>ref(ma20,2) and v>ref(v,1) and cross(c,ma20);STICKLINE(TT1,l,l-0.09,4,0),coloryellow;DRAWTEXT(TT1,l-0.13,'金叉'),coloryellow;STICKLINE(cross(c,ma120) and cross(c,ma250) andcross(c,ma20),l,l-0.09,4,0),coloryellow;DRAWTEXT(cross(c,ma120) and cross(c,ma250) and cross(c,ma20),l-0.13,'并线开花'),coloryellow;STICKLINE(tt2,l,l-0.09,4,0),coloryellow;DRAWTEXT(tt2,l-0.13,'买点1'),coloryellow;STICKLINE(cross(c,乖离线),h,h+0.09,4,0),color00ff00;DRAWTEXT(cross(c,乖离线) ,h+0.13,'卖点'),color00ff00;STICKLINE(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) andcross(c,ma250),l,l-0.09,4,0),colorffcc66;DRAWTEXT(ma250>=ref(ma250,1) and ma20>=ref(ma20,1) andcross(c,ma250),l-0.13,'牛象'),colorffcc66;STICKLINE(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l,l-0.09,4,0),colorff00ff;DRAWTEXT(ma120>=ref(ma120,1) and cross(c,ma20) and cross(c,ma120) and v>ref(v,1),l-0.13,'买点2'),colorff00ff ;A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);V1:=c-(a1+ma(c,3))/2;V2:=c-(a2+ma(c,8))/2;V3:=c-(a3+ma(c,21))/2;Va1:=(C+v3-v1+macd);Va4:=(C+v2-v1+macd);短线:EMA(Va1,6),linethick2,Coloryellow;【通达信】三线开花(乖离线、金叉、牛象)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】改良六指金叉(MCDA、KDJ、RSI、LWR、BBI、MMS)

【股票指标公式下载】-【通达信】改良六指金叉(MCDA、KDJ、RSI、LWR、BBI、MMS)

【通达信】改良六指金叉(MCDA、KDJ、RSI、LWR、BBI、MMS)-指标公式源码DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,1,1.8,3,0),COLORRED;STICKLINE(DIFF<DEA,1,1.8,3,0),COLORGREEN;MCDA金叉:DIFF>DEA,NODRAW;RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);STICKLINE(K>D,2,2.8,3,0),COLORRED;STICKLINE(K<D,2,2.8,3,0),COLORGREEN;KDJ金叉:K>D,NODRAW;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100; STICKLINE(RSI1>RSI2,3,3.8,3,0),COLORRED;STICKLINE(RSI1<RSI2,3,3.8,3,0),COLORGREEN;RSI金叉:RSI1>RSI2,NODRAW;LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,3,1);STICKLINE(LWR1>LWR2,4,4.8,3,0),COLORRED;STICKLINE(LWR1<LWR2,4,4.8,3,0),COLORGREEN;LWR金叉:LWR1>LWR2,NODRAW;BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; STICKLINE(CLOSE>BBI,5,5.8,3,0),COLORRED;STICKLINE(CLOSE<BBI,5,5.8,3,0),COLORGREEN;BBI金叉:CLOSE>BBI,NODRAW;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3);MMM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12); STICKLINE(MMS>MMM,6,6.8,3,0),COLORRED;STICKLINE(MMS<MMM,6,6.8,3,0),COLORGREEN;MMS金叉:MMS>MMM,NODRAW;STICKLINE(MCDA金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉AND MMS金叉,0,0.8,3,0),COLORYELLOW;【通达信】改良六指金叉(MCDA、KDJ、RSI、LWR、BBI、MMS)-指标公式效果图 (文档来源:若水财经社区)。

通达信顶级自动画线公式,可以叠加任何主图

通达信顶级自动画线公式,可以叠加任何主图

通达信顶级自动画线公式,可以叠加任何主图A1:=REF(H,8)=HHV(H,2*8+1);B1:=FILTER(A1,8);C1:=BACKSET(B1,8+1);D1:=FILTER(C1,8);{高点}R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11>REF(R11,1);DRAWLINE(D1,H,S11,H,1),COLORBLUE;A2:=REF(L,8)=LLV(L,2*8+1);B2:=FILTER(A2,8);C2:=BACKSET(B2,8+1);D2:=FILTER(C2,8);{低点}T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11>REF(T11,1);DRAWLINE(D2,L,U11,L,1),COLORBLUE;M:=INTPART(3*8/5);A12:=REF(H,M)=HHV(H,2*M+1);B12:=FILTER(A12,M);C12:=BACKSET(B12,M+1);D12:=FILTER(C12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);DRAWLINE(D12,H,S112,H,1),COLORRED;A22:=REF(L,M)=LLV(L,2*M+1);B22:=FILTER(A22,M);C22:=BACKSET(B22,M+1);D22:=FILTER(C22,M);{低点}T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1);DRAWLINE(D22,L,U112,L,1),COLORRED;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力:= REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH ,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK3;支撑:= REF(LOW,BARSLAST(VAR4444));STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW, BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,LINETHICK3;下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24, DDD)))),COLORFFFFFF;压力位:=IF(ISLASTBAR,压力2,DRAWNULL);STICKLINE(ISLASTBAR ,压力位,压力位,120,0),LINETHICK4,COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;底部位:=IF(ISLASTBAR,底部,DRAWNULL);STICKLINE(ISLASTBAR ,底部位,底部位,100,0),LINETHICK4,COLOR00FF00;。

【股票指标公式下载】-【通达信】KDJ战法(中间彩柱、周KD金叉)

【股票指标公式下载】-【通达信】KDJ战法(中间彩柱、周KD金叉)

【通达信】KDJ战法(中间彩柱、周KD金叉)-指标公式源码N:=9; M1:=3; M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;周K:=MA("KDJ.K#WEEK"(N,M1,M2) ,5),LINETHICK1,COLORRED;周D:=MA("KDJ.D#WEEK"(N,M1,M2) ,5),LINETHICK1,COLOR33FF99;周J:=MA("KDJ.J#WEEK"(N,M1,M2) ,5),LINETHICK1,COLORMAGENTA;月K:MA("KDJ.K#MONTH"(N,M1,M2),5),LINETHICK1,COLORFF00FF;月D:MA("KDJ.D#MONTH"(N,M1,M2),5),LINETHICK1,COLOR00FF00;月J:=MA("KDJ.J#MONTH"(N,M1,M2),5),LINETHICK1,COLORFFFFFF; DRAWBAND(月K,RGB(100,0,100),月D,RGB(120,120,120));STICKLINE(周K>=周D,周K,周D,1,0),COLOR6666FF;STICKLINE(周K<周D,周K,周D,1,1),COLOR00FFFF;STICKLINE(C>0,115,120,2,1),COLOR00FFFF;STICKLINE(C>0,-15,-20,2,1),COLORFFFF88;STICKLINE(周K>=周D,110,120,2,0),COLOR6666FF;STICKLINE(月K>=月D,-10,-20,2,0),COLOR660099;STICKLINE(C>0,48,52,2,1),COLORFFFFFF;STICKLINE(周K>=周D AND 月K>=月D,42,58,2,1),COLORRED;STICKLINE(月K<月D AND 周K>=周D,44,56,2,1),COLORFF00FF;STICKLINE(月K>=月D AND 周K<周D,46,54,2,1),COLOR00FF00;STICKLINE(CURRBARSCOUNT=88,10,90,99,0),COLOR222255;STICKLINE(CURRBARSCOUNT=88,100,90,99,0),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=92,95,'中间彩柱'),COLORFF0000;DRAWTEXT(CURRBARSCOUNT=8,110,'周KD金叉'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=8,-10,'月KD交叉'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=98,20,'月死叉周死叉--全退--白色'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=98,40,'月金叉周死叉--减仓--绿色'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=98,60,'月死叉周金叉--反弹--粉色'),COLORFF00FF; DRAWTEXT(CURRBARSCOUNT=98,80,'月金叉周金叉--持股--红色'),COLORRED;【通达信】KDJ战法(中间彩柱、周KD金叉)-指标公式效果图(文档来源:若水财经社区)。

通达信macd金叉公式

通达信macd金叉公式

通达信macd金叉公式
通达信MACD金叉公式如下:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2;
其中,DIF为快线,DEA为慢线,MACD为柱状图。

当DIF线上穿过DEA线时,称为金叉,表示买入信号;当DIF线下穿过DEA线时,称为死叉,表示卖出信号。

通达信MACD金叉公式的具体解释如下:
1. DIF线:DIF线是指快速移动平均线(EMA)12日线与26日线之差。

DIF线的计算公式为:EMA(CLOSE,12)-EMA(CLOSE,26)。

2. DEA线:DEA线是指DIF线的9日移动平均线。

DEA线的计算公式为:EMA(DIF,9)。

3. MACD柱状图:MACD柱状图是指DIF线与DEA线之差的2倍。

MACD柱状图的计算公式为:(DIF-DEA)*2。

4. 金叉:当DIF线上穿过DEA线时,称为金叉,表示买入信号。

5. 死叉:当DIF线下穿过DEA线时,称为死叉,表示卖出信号。

以上就是通达信MACD金叉公式的详细内容。

通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码

通达信指标公式源码 通达信筹码一线主图 筹码幅图 无未来 源码

DRAWKLINE(H,O,L,C); HB:=COST(99.9);LB:=COST(0.1);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B31 ,B31 ,A1*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B32 ,B32 ,A2*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B33 ,B33 ,A3*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B34 ,B34 ,A4*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B35 ,B35 ,A5*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B36 ,B36 ,A6*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B37 ,B37 ,A7*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B38 ,B38 ,A8*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B39 ,B39 ,A9*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B310 ,B310 ,A10*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*15 ,0 ),COLOR666600; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B315 ,B315 ,A15*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B316 ,B316 ,A16*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B317 ,B317 ,A17*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B318 ,B318 ,A18*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B319 ,B319 ,A19*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B320 ,B320 ,A20*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B321 ,B321 ,A21*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B322 ,B322 ,A22*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B323 ,B323 ,A23*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B324 ,B324 ,A24*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B325 ,B325 ,A25*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B326 ,B326 ,A26*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B327 ,B327 ,A27*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B328 ,B328 ,A28*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B329 ,B329 ,A29*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B330 ,B330 ,A30*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B331 ,B331 ,A31*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B332 ,B332 ,A32*15 ,0 ),COLORRED;STICKLINE(ISLASTBAR,B333 ,B333 ,A33*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B334 ,B334 ,A34*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B335 ,B335 ,A35*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B336 ,B336 ,A36*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B337 ,B337 ,A37*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B338 ,B338 ,A38*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B339 ,B339 ,A39*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B340 ,B340 ,A40*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B341 ,B341 ,A41*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B342 ,B342 ,A42*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*15 ,0 ),COLOR666600;STICKLINE(ISLASTBAR,LB ,LB ,A50*15 ,0 ),COLORRED;当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);ZX2:=MIN(A1,MIN(A2,MIN(A3,MIN(A4,MIN(A5,MIN(A6,MIN(A7,MIN(A8,MIN(A9,MIN(A 10,MIN(A11,MIN(A12,MIN(A13,MIN(A14,MIN(A15,MIN(A16,MIN(A17,MIN(A18,MIN(A1 9,MIN(A20,MIN(A21,MIN(A22,MIN(A23,MIN(A24,MIN(A25,MIN(A26,MIN(A27,MIN(A28, MIN(A29,MIN(A30,MIN(A31,MIN(A32,MIN(A33,MIN(A34,MIN(A35,MIN(A36,MIN(A37,M IN(A38,MIN(A39,MIN(A40,MIN(A41,MIN(A42,MIN(A43,MIN(A44,MIN(A45,MIN(A46,MI N(A47,MIN(A48,MIN(A49,A50)))))))))))))))))))))))))))))))))))))))))))))))));筹码最低处:COST(ZX2),COLORMAGENTA;DRAWTEXT(ISLASTBAR,筹码最低处,'筹码最低价'),COLORMAGENTA;ZX1:=MAX(A1*15,MAX(A2*15,MAX(A3*15,MAX(A4*15,MAX(A5*15,MAX(A6*15,MAX(A 7*15,MAX(A8*15,MAX(A9*15,MAX(A10*15,MAX(A11*15,MAX(A12*15,MAX(A13*15,M AX(A14*15,MAX(A15*15,MAX(A16*15,MAX(A17*15,MAX(A18*15,MAX(A19*15,MAX(A 20*15,MAX(A21*15,MAX(A22*15,MAX(A23*15,MAX(A24*15,MAX(A25*15,MAX(A26*15 ,MAX(A27*15,MAX(A28*15,MAX(A29*15,MAX(A30*15,MAX(A31*15,MAX(A32*15,MAX (A33*15,MAX(A34*15,MAX(A35*15,MAX(A36*15,MAX(A37*15,MAX(A38*15,MAX(A39* 15,MAX(A40*15,MAX(A41*15,MAX(A42*15,MAX(A43*15,MAX(A44*15,MAX(A45*15,M AX(A46*15,MAX(A47*15,MAX(A48*15,MAX(A49*15,A50*15)))))))))))))))))))))))))))))))))))) )))))))))))));筹码最集中处:COST(ZX1/15),COLORRED,LINETHICK2;入1:IF(筹码最集中处>REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORRED,LINETHICK2;出1:IF(筹码最集中处<REF(筹码最集中处,1),筹码最集中处,DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,筹码最集中处,'筹码集中价'),COLORWHITE;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORMAGENTA;STICKLINE(筹码最集中处>LOW AND 筹码最集中处<HIGH,筹码最集中处,MIN(MIN(OPEN,CLOSE),筹码最集中处),1.5,0),COLORGREEN;STICKLINE(筹码最集中处>MIN(C,O) AND 筹码最集中处<MAX(C,O),筹码最集中处,MIN(OPEN,CLOSE),2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(筹码最集中处>HIGH,HIGH,LOW,0,0),COLORGREEN;筹码幅图公式穿越筹码:ABS(WINNER(CLOSE)-WINNER(OPEN))*100,STICK,COLORDDDDFF;换手率::VOL/CAPITAL*100,STICK,COLORFF0099;地量换手:1/换手率:*100,STICK,COLORRED,LINETHICK3;A1:=LLV(HIGH,240);MYP:=100*(CLOSE-A1)/A1;A2:=REF(HHV(CLOSE,240),1);B2:=REF(LLV(CLOSE,240),1);RPY:=100*(CLOSE -B2)/(A2-B2);A3:=1.1*CLOSE;B3:=0.9*CLOSE;ASR:=100*(WINNER(A3)-WINNER(B3));A4:=WINNER(CLOSE);A5:=DMA(A4,VOL/CAPITAL);B4:=DMA(VOL,VOL/CAPITAL)/CAPITAL;A6:=100*VOL/CAPITAL;B6:=100*(WINNER(CLOSE)-REF(WINNER(CLOSE),1));A7:=ABS(B6/A6);CYA:A4/B4*50,COLOR00FF00;CYB:EMA(A4/B4*50,34),COLORFF00FF;CYC::A5/B4*50,COLORFFFF99;CYD:WINNER(CLOSE)/(VOL/CAPITAL),COLORYELLOW,STICK,LINETHICK4; STICKLINE(A7>30 AND (VOL/CAPITAL*100)<=3,地量换手,0,3,0),COLORWHITE; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C>=O,地量换手,0,10,0),COLORFF00FF; STICKLINE(RPY<75 AND MYP<30 AND ASR>60 AND 穿越筹码>=24 AND (VOL/CAPITAL*100)<=3 AND C< O,地量换手,0,10,0),COLORFFFF33;筹码穿透率:=B6/A6;STICKLINE(筹码穿透率>10 AND CLOSE/REF(CLOSE,1)>=1.05 AND换手率:<=3,地量换手,0,10,0),COLORBLUE;。

【股票指标公式下载】-【通达信】二合一金叉(顶背离、低金叉、金叉共振)

【股票指标公式下载】-【通达信】二合一金叉(顶背离、低金叉、金叉共振)

【通达信】二合一金叉(顶背离、低金叉、金叉共振)-指标公式源码DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);} DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORYELLOW;D:SMA(K,9,3),COLORWHITE;J:3*K-2*D,COLORMAGENTA;IF(J<D,J,DRAWNULL),COLORFFEE44;0,COLORRED,LINETHICK2;20,COLORLIMAGENTA;{50,COLORWHITE;}80,COLORBLUE;100,COLORGREEN,LINETHICK2;DRAWTEXT(ISLASTBAR,0,'高安全区'),COLORRED;DRAWTEXT(ISLASTBAR,20,'安全区'),COLORLIMAGENTA;DRAWTEXT(ISLASTBAR,80,'风险区'),COLORBLUE;DRAWTEXT(ISLASTBAR,100,'高风险区'),COLORGREEN;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;{DJ:=CROSS(J,D) AND D<20;DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;MDJ:=CROSS(DIF,DEA) AND DEA<0;DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORYELLOW;DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);DRAWICON(A,LOW*0.98,1);B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;DRAWICON(CROSS(K,D),D,1);DRAWICON(CROSS(D,K),D,2);BA:=DEA>REF(DEA,1);BB:=SUM(BA,5)>=4;BC:=C<O;BD:=SUM(BC,5)>=2;BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3); STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;SS:=EMA(C,11);LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;{短:EMA(LL,2),COLORGREEN,LINETHICK2;}{长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));(CROSS(AA,0.05)-1);【通达信】二合一金叉(顶背离、低金叉、金叉共振)-指标公式效果图(文档来源:若水财经社区)。

通达信均线金叉提示公式求助,

通达信均线金叉提示公式求助,

通达信均线金叉提示公式求助,DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIFF,5);DRAWICON(DIFF>DEA,1,1);DRAWICON(DIFF<DEA,1,2);{DRAWTEXT(ISLASTBAR=1,1,'.MACD'),COLORFFFFFF;}A1:=DIFF>DEA;RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;K:=SMA(RSV1,3,1);D:=SMA(K,3,1);DRAWICON(K>D,2,1);DRAWICON(K<D,2,2);{DRAWTEXT(ISLASTBAR=1,2,'.KDJ'),COLORFFFFFF;}A2:=K>D;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;DRAWICON(RSI1>RSI2,3,1);DRAWICON(RSI1<RSI2,3,2);{DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF;}A3:=RSI1>RSI2;RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;LWR1:=SMA(RSV,3,1);LWR2:=SMA(LWR1,3,1);DRAWICON(LWR1>LWR2,4,1);DRAWICON(LWR1<LWR2,4,2);{DRAWTEXT(ISLASTBAR=1,4,'.LW&R'),COLORFFFFFF;}A4:=LWR1>LWR2;BBI:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOS E,13))/4;DRAWICON(CLOSE>BBI,5,1);DRAWICON(CLOSE<BBI,5,2);{DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF;}A10:7;A5:=CLOSE>BBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),1 3),8);DRAWICON(MMS>MMM,6,1);DRAWICON(MMS<MMM,6,2);{DRAWTEXT(ISLASTBAR=1,6,'.ZLMM'),COLORFFFFFF;}A6:=MMS>MMM;(A1 AND A2 AND A3 AND A4 AND A5 AND A6),COLORFFFF00;涨不停买入:A1 AND A2 AND A3 AND A4 AND A5 AND A6=1 AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,COLORFFFF00;{DRAWICON(DIFF>DEA,1,1);}{DRAWICON(DIFF<DEA,1,2);}{DRAWICON(K>D,2,1);}{DRAWICON(K<D,2,2);}{DRAWICON(RSI1>RSI2,3,1);}{DRAWICON(RSI1<RSI2,3,2);}{DRAWICON(LWR1>LWR2,4,1);}{DRAWICON(LWR1<LWR2,4,2);}{DRAWICON(CLOSE>BBI,5,1);}{DRAWICON(CLOSE<BBI,5,2);}{DRAWICON(MMS>MMM,6,1);}{DRAWICON(MMS<MMM,6,2);}{7,COLORWHITE;};类似于下图显示的那样,1、5日与10日均线产生金叉时在第一排显示红色向上的箭头,否则显示黄色圆点,当5日与10日均线产生死叉时显示绿色向下的箭头,否则显示黄色圆点。

通达信筹码一线天指标公式

通达信筹码一线天指标公式

通达信筹码一线天指标公式五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;成本价1:=COST(五十成本集中),COLORGREEN;五十成本集中1:=100-五十成本集中;成本价2:=COST(五十成本集中1),COLORBLUE;单峰密集价:成本价2/成本价1-1,STICK;红:=REF(单峰密集价,1)<单峰密集价AND 成本价2>REF(成本价2,1) ;绿:=REF(单峰密集价,1)>单峰密集价;主力筹码:=单峰密集价<=0.25;底部:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;底部成本价:=COST(底部),COLORYELLOW;顶部:=100-底部;顶部成本价:=COST(顶部),COLORGREEN;均值:=(底部+顶部)/2;均值成本:=COST(均值),COLORLICYAN,DOTLINE;STICKLINE(红,单峰密集价,0,2.8,0),COLOR000055;STICKLINE(红,单峰密集价,0,2,0),COLOR000088;STICKLINE(红,单峰密集价,0,1.5,0),COLOR0000AA;STICKLINE(红,单峰密集价,0,1,0),COLOR0000CC;STICKLINE(红,单峰密集价,0,0.5,0),COLOR0000EE;STICKLINE(红,单峰密集价,0,0,0),COLORFFFFFF;底:=REF(单峰密集价,2)<REF(单峰密集价,1) AND 单峰密集价<REF(单峰密集价,1) AND 均值成本<REF(均值成本,1);STICKLINE(底,单峰密集价,0,0,0),COLORGREEN;STICKLINE(底,单峰密集价,0,2.8,0),COLOR009900;STICKLINE(底,单峰密集价,0,2,0),COLOR00BB00;STICKLINE(底,单峰密集价,0,1.5,0),COLOR00DD00;STICKLINE(底,单峰密集价,0,0.5,0),COLOR00FF00;顶:=REF(单峰密集价,2)<REF(单峰密集价,1) AND 单峰密集价<REF(单峰密集价,1) AND 均值成本>REF(均值成本,1);STICKLINE(顶,单峰密集价,0,2,0),COLORYELLOW;N:=30;N1:=20;V1:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(N1/100) AND C>=REF(HHV(H,N),1) AND BARSCOUNT(C)>N;一线天:IF(V1,1,0);A30:=EMA(C,34)>REF(EMA(C,34),1);A50:=COST(50),COLORRED,LINETHICK2;A70:=WINNER(C)*100>50;A90:=CROSS(C,A50);突破密集:A30 AND A50 AND A70 AND A90;DRAWICON(突破密集,1,1);AJB:=IF(CAPITAL>20000000,CAPITAL*33/100,IF(CAPITAL>12 000000,CAPITAL*27/100,CAPITAL*22/100));AJ1:=(COST(85)+COST(15))/2;AJ2:=(COST(75)+COST(25))/2; AJ3:=(COST(65)+COST(35))/2;AJ4:=(COST(55)+COST(45))/2;AJ5: =(COST(95)+COST(5))/2;AJ:=(AJ1+AJ2+AJ3+AJ4+AJ5)/5;BJ1:=(COST(90)+COST(10))/2;BJ2:=(COST(80)+COST(20))/2; BJ3:=(COST(70)+COST(30))/2;BJ4:=(COST(60)+COST(40))/2;BJ5: =(COST(50));BJ:=(BJ1+BJ2+BJ3+BJ4+BJ5)/5;筹码峰值:MA((AJ+BJ)/2,3),NODRAW;筹码中枢:(COST(65)-COST(15))/(COST(25))*100,NODRAW;日集中度:(AMOUNT/筹码峰值)/(CAPITAL-AJB)*2,NODRAW;五日集中度:SUM(AMOUNT/筹码峰值,5)/(CAPITAL-AJB)/100*100,NODRAW;{集中:日集中度>10;DRAWICON(集中,1.3,2);}五日集中:五日集中度>30,COLORCYAN;DRAWTEXT_FIX(1,0.0,0.02,0,'1.低位绿K底高位黄色K线小心顶红K拉升'),COLORYELLOW;。

【股票指标公式下载】-【通达信】集体共振(金叉、二次金叉)

【股票指标公式下载】-【通达信】集体共振(金叉、二次金叉)

【通达信】集体共振(金叉、二次金叉)-指标公式源码N1:=6;N2:=12;N3:=24;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),LINETHICK2,COLORWHITE;D:SMA(K,3,1),LINETHICK2,COLORYELLOW;J:3*K-2*D,LINETHICK2,COLORRED;DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2,COLORGREEN;DEA :EMA(DIFF,9),LINETHICK2,COLORBLUE;MACD:2*(DIFF-DEA),LINETHICK2,COLORRED;RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;KK:=SMA(RSV1,3,1);DD:=SMA(KK,3,1);JJ:=3*KK-2*DD;买卖:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));明天买:IF(买卖=100,0-10,0),COLOR00CCCC;明天卖:IF(买卖=0,90,100),COLOR00FF00;TYP:=(HIGH+LOW+CLOSE)/3;STICKLINE(DIFF>REF(DIFF,1),20,20,2,0),COLORRED;STICKLINE(DIFF<REF(DIFF,1),20,20,2,0),COLORGREEN;STICKLINE(K>=REF(K,1) OR K>D AND DIFF>REF(DIFF,1),80,80,2,1),COLORRED; STICKLINE(K<REF(K,1),80,80,2,1),COLORGREEN;MACD金叉:=CROSS(MACD,DIFF) AND MACD>=(0-0.05) AND MACD<=0.02; DRAWTEXT(MACD金叉,40,'▲MACD金叉'),COLORRED;XX:=EMA(MA(LOW,3)*0.96,30);DIFF金叉:=IF(CROSS(DIFF,DEA) AND XX-REF(XX,1)>0 AND MACD>=REF(MACD,1) AND DIFF<=0,1,0);DRAWTEXT(DIFF金叉=1,35,'▲DIFF金叉'),COLORRED;低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;DRAWTEXT(低位金叉,25,'▲低位金叉'),COLORRED;DIFDEA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(DIFDEA=2,21)=1;DRAWTEXT(二次金叉,20,'▲二次金叉'),COLORRED;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));MACD底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);DRAWTEXT(MACD底背离,30,'▲MACD底背离'),COLORRED;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));MACD顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(FILTER(MACD顶背离,5),100,'▼MACD顶背离') ;周DIFF:='MACD.DIFF#WEEK';周DEA:='MACD.DEA#WEEK';周MACD:='MACD.MACD#WEEK';DIF周金叉:=CROSS(周DIFF,周DEA);DRAWTEXT(DIF周金叉,45,'▲DIFF周金叉'),COLORRED;DRAWTEXT(CROSS(周DEA,周DIFF),110,'▼DIFF周死叉') ;MACD周金叉:=CROSS(周MACD,周DIFF) AND 周MACD>=(0-0.05) AND 周MACD<=0.02;DRAWTEXT(MACD周金叉,50,'▲MACD周金叉'),COLORRED;月DIFF:='MACD.DIFF#MONTH';月DEA:='MACD.DEA#MONTH';月MACD:='MACD.MACD#MONTH';DIF月金叉:=CROSS(月DIFF,月DEA);DRAWTEXT(DIF月金叉,55,'▲DIFF月金叉'),COLORRED ; DRAWTEXT(CROSS(月DEA,月DIFF),105,'▼DIFF月死叉') ;MACD月金叉:=CROSS(月MACD,月DIFF) AND 月MACD>=(0-0.05) AND 月MACD<=0.02;DRAWTEXT(MACD月金叉,60,'▲MACD月金叉'),COLORRED;周K:="KDJ.K#WEEK"(9,3,3);周D:="KDJ.D#WEEK"(9,3,3);周J:="KDJ.J#WEEK"(9,3,3);月K:="KDJ.K#MONTH"(9,3,3);月D:="KDJ.D#MONTH"(9,3,3);月J:="KDJ.J#MONTH"(9,3,3);KD月金叉:=CROSS(月K,月D);KD周金叉:=CROSS(周K,周D);KD日金叉:=FILTER(CROSS(K,D) AND D<50,4);KD低位金叉:=FILTER(CROSS(K,D) AND D<20,4);DRAWTEXT(KD月金叉,0,'▲KD月金叉'),COLORRED;DRAWTEXT(KD周金叉,-5,'▲KD周金叉'),COLORRED ;DRAWTEXT(KD日金叉,-10,'▲KD日金叉'),COLORRED ;DRAWTEXT(KD低位金叉,5,'▲KD低位金叉'),COLORRED;KD1:=COUNT(CROSS(K,D),BARSLAST(D>=50));KD二次金叉:=CROSS(K,D) AND D<50 AND COUNT(KD1=2,21)=1;DRAWTEXT(KD二次金叉,10,'▲KD二次金叉'),COLORRED ;KD2:=COUNT(CROSS(D,K),BARSLAST(D<=50));KD二次死叉:=CROSS(D,K) AND D>50 AND COUNT(KD2=2,21)=1;DRAWTEXT(KD二次死叉,95,'▼KD二次死叉') ;KD日死叉:=FILTER(CROSS(D,K) AND D>80,4);DRAWTEXT(KD日死叉,80,'▼KD日死叉') ;DRAWTEXT(CROSS(周D,周K),85,'KD周死叉') ;DRAWTEXT(CROSS(月D,月K),90,'KD月死叉') ;KDB:=BARSLAST(REF(CROSS(K,D),1));KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D);KDJ底背离:=IF(FILTER(KDDB>0,5),1,0);DRAWTEXT(KDJ底背离=1,15,'▲KDJ底背离'),COLORRED;KDD:=BARSLAST(REF(CROSS(D,K),1));KDJ顶背离:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K); DRAWTEXT(FILTER(KDJ顶背离>0,5),120,'▼KDJ顶背离') ;RSI周金:DRAWTEXT(CROSS("RSI.RSI1#WEEK"(N1,N2,N3),"RSI.RSI2#WEEK"(N1,N2,N3) ) ,65,'▲RSI周金'),COLORRED;RSI周死:DRAWTEXT(CROSS("RSI.RSI2#WEEK"(N1,N2,N3),"RSI.RSI1#WEEK"(N1,N2,N3) ) ,130,'▼RSI周死') ;RSI月金:DRAWTEXT(CROSS("RSI.RSI1#MONTH"(N1,N2,N3),"RSI.RSI2#MONTH"(N1,N2,N 3)) ,70,'▲RSI月金'),COLORRED;RSI月死:DRAWTEXT(CROSS("RSI.RSI2#MONTH"(N1,N2,N3),"RSI.RSI1#MONTH"(N1,N2,N 3)) ,115,'▼RSI月死') ;A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));RSI底背离:=FILTER(B3>0,5);DRAWTEXT(RSI底背离,75,'▲RSI底背离'),COLORRED;C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));RSI顶背离:=FILTER(D3>0,5);DRAWTEXT(RSI顶背离,125,'▼RSI顶背离') ;{预涨}AZ:=DYNAINFO(7);AC1:=REF(C,1);ZF1:=(AZ-AC1)/AC1*100;BZ:=DYNAINFO(8);BV1:=REF(VOL,1);ZF2:=BZ/BV1*100;DZ:=REF(CLOSE,1)-REF(OPEN,1);EZ:=DYNAINFO(23)-DYNAINFO(22);FZ:=REF(VOL,1)-REF(VOL,2);预涨:=ZF1>1 AND ZF1<5 AND ZF2>30 AND DZ>0 AND EZ>0 AND FZ>0 AND D>REF(D,1); DRAWTEXT(预涨,D*0.6,'预\N涨'),COLOR00CC00;KX:=250;KH:=HHV(K,KX);DH:=HHV(D,KX);JH:=HHV(J,KX);KL:=LLV(K,KX);DL:=LLV(D,KX);JL:=LLV(J,KX);HKMAX:=MAX(KH,MAX(DH,JH));LKMIN:=MIN(KL,MIN(DL,JL));KHLB:=(HKMAX+LKMIN)/2;KHLC:=HKMAX-LKMIN;MHF:=HHV(DIFF,KX);MHD:=HHV(DEA,KX);MHM:=HHV(MACD,KX);MLF:=LLV(DIFF,KX);MLD:=LLV(DEA,KX);MLM:=LLV(MACD,KX);HMAX:=MAX(MHF,MAX(MHD,MHM));LMIN:=MIN(MLF,MIN(MLD,MLM));FHLB:=(HMAX-LMIN)/100;FHLC:=HMAX-LMIN;SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB;DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;MD1:=MA(CLOSE,80)-MA(CLOSE,13)/3;MD2:=MA((CLOSE-MD1)/MD1,3);买点1:=CROSS(MD2,0) AND LOW/REF(HIGH,1)<1.012 AND J<75 AND J>REF(J,1); MA12:=MA(CLOSE,12);佳点:=IF(FILTER(MACD>=REF(MACD,5) AND OPEN<=REF(CLOSE,1) ANDXX-REF(XX,1)>0 AND MACD<=0 AND MA12-REF(MA12,1)>=0,3) AND J<80 ANDJ>REF(J,1) AND D>REF(D,1) AND (DIFF>=REF(DIFF,1) ORDEA>=REF(DEA,1)),1,0);DRAWTEXT(佳点=1,MACDA*0.98,'佳点'),COLOR00CC00;DX0:=EMA(CLOSE,2)-EMA(OPEN,5);DX1:=IF(CROSS(DX0,MACD) AND LOW<=XX AND MACD<=(0-0.11) AND (J<20 ORK<20),1,0);DRAWTEXT(FILTER(DX1,3),0,'短10%'),COLOR00CC00;{短线}MA10:=MA(CLOSE,10); SS:=EMA(MA(HIGH,3)*1.05,30);LQS:=IF(FILTER(0.7*(CROSS(DIFF,DEA) AND CLOSE<SS AND XX-REF(XX,1)>0 AND CROSS(MACD,0) AND MACD>=0 AND DIFF>0 AND MA10-REF(MA10,1)>0 ANDVOL>REF(VOL,1))>=0.7 AND (CLOSE<SS AND XX-REF(XX,1)>0),5) AND J<80,1,0); DRAWTEXT(LQS=1,MACDA*0.98,'量价齐上'),COLOR00CC00;{量价齐上}最佳点:=IF(COUNT(MD2>REF(MD2,1),3)=3 AND COUNT(MD2<0,10)=10 ANDREF(MD2,3)=LLV(MD2,10) AND J<80 AND J>REF(J,1),1,0);DRAWTEXT(最佳点=1,J,'最佳点'),COLOR00CC00;买点2:=REF(MD2,2)=LLV(MD2,20) AND REF(MD2,2)<0.071 ANDREF(MD2,2)<REF(MD2,1) ANDNOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1) AND J<75 AND J>REF(J,1);DRAWTEXT(买点1 OR 买点2,D-1,'买'),COLOR00CC00;【通达信】集体共振(金叉、二次金叉)-指标公式效果图(文档来源:若水财经社区)。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档