大盘顶底通达信指标公式源码
顶底波段 通达信指标公式源码
号称价值4万多的大智慧和通达信“顶底波段”指标公式{以下为通达信版的顶底波段指标源码}VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORYELLOW;3.5,COLOR0088FF;顶部清仓: 3.5,COLORGREEN,LINETHICK1;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;底部:0.2,COLORRED,LINETHICK1;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1); DRAWICON( FILTER(CROSS(顶部清仓,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1); DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1); DRAWTEXT(CROSS(动力线,关注),关注,'买底'),COLORWHITE;{以下为大智慧版的顶底波段指标源码}VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORYELLOW;3.5,COLOR0088FF;顶部清仓: 3.5,COLORGREEN,LINETHICK1;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;底部:0.2,COLORRED,LINETHICK1;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,7); DRAWICON( FILTER(CROSS(顶部清仓,动力线),20),动力线+0.02,8); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,7); DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,8); DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,7); DRAWTEXT(CROSS(动力线,关注),关注,'买底'),COLORWHITE;。
通达信底顶指标公式
通达信底顶指标公式以下是通达信底顶指标的公式和解释:1.底部形态指标公式(1)最近一个底部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(2)价格打破最近一个底部形态的高点DHLBREAK=LLV(LOW,20)<DHL(3)最近一个底部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(4)价格低于最近一个底部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(5)价格向上的力量:DIRDIR=SMA(CLOSE,7,1)-SMA(CLOSE,70,1)(6)价格向上的力量大于0DIRUP=DIR>0(7)底部形态确认CONDITION1=NOTDIRUPANDDHLBREAKANDSMA(VOLUME,20)>2*MA(VOLUME, 100)2.顶部形态指标公式(1)最近一个顶部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(2)价格低于最近一个顶部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(3)最近一个顶部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(4)价格打破最近一个顶部形态的高点DHLBREAK=LLV(LOW,20)<DHL(5)价格向下的力量:DIRDIR=SMA(CLOSE,70,1)-SMA(CLOSE,7,1)(6)价格向下的力量小于0DIRDOWN=DIR<0(7)顶部形态确认CONDITION2=NOTDIRDOWNANDDLLBREAKANDSMA(VOLUME,20)>2*MA(VOLUM E,100)通过计算这些指标,我们可以完成对底部和顶部形态的判断。
具体解释如下:底部形态指标的解释:条件1(底部形态确认)需要满足以下三个条件:(a)价格向上的力量(DIR)小于0,即价格下跌;(b)价格打破最近一个底部形态的高点(DHLBREAK);(c)成交量的移动平均值(VOLUME)的20日均线(MA)大于成交量的移动平均值的100日均线的两倍。
通达信指标公式源码顶底趋势指标
90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,COLOR9900FF; 短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,COLOR888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLORYELLOW,LINET HICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线) ;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;STICKLINE( 顶部,99,103,20,1 ),COLORRED,COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 ); STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;。
通达信指标公式源码 趋势顶底 副图公式
80,COLOR996699;20,COLORGREEN;底:10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;50,COLORRED;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19); B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4,COLORGREEN;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,COLORGREEN; STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 )),COLORRED;。
通达信大盘顶底副图指标公式
通达信⼤盘顶底副图指标公式见顶线:90,LINETHICK1 ,COLOR55AA77;见底线:10,LINETHICK1 ,COLOR888888;VAR1 := REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:= REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:= REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:= REF(LOW,1);VAR9:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;VAR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;VAR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;VAR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;VAR12:=EMA(VAR11,8)*10<-26;{}VAR13:=IF(VAR8 AND MA(VAR10,5)<50 AND VAR12,30,0);开盘值:VAR2,POINTDOT, LINETHICK0 ;收盘值:VAR4,POINTDOT, LINETHICK0 ;最⾼值:VAR6,POINTDOT, LINETHICK0 ;最低值:VAR9,POINTDOT, LINETHICK0 ;STICKLINE(收盘值>开盘值,开盘值,最低值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,最⾼值,收盘值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),COLORRED;STICKLINE(收盘值<开盘值,最⾼值,开盘值,0.5,1),COLORFFFF00;STICKLINE(收盘值<开盘值,最低值,收盘值,0.5,0),COLORFFFF00;STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;⼊顶:80,POINTDOT,LINETHICK1,COLORGREEN;⼊底:20,POINTDOT LINETHICK1 COLORMAGENTA;。
通达信指标公式源码顶底先知 主图指标 源码
VV:=(O+C+L+H)/4;Y311:=IFF(CURRBARSCOUNT=1,(XMA(VV,3)*3-MA(VV,2)+VV)/3,XMA(VV,3)); Y312:=IFF(CURRBARSCOUNT=1,(XMA(Y311,3)*3-MA(Y311,2)+Y311)/3,XMA( Y311,3));Y313:=IFF(CURRBARSCOUNT=1,(XMA(Y312,3)*3-MA(Y312,2)+Y312)/3,XMA( Y312,3));Y314:=IFF(CURRBARSCOUNT=1,(XMA(Y313,3)*3-MA(Y313,2)+Y313)/3,XMA( Y313,3));Y315:=IFF(CURRBARSCOUNT=1,(XMA(Y314,3)*3-MA(Y314,2)+Y314)/3,XMA( Y314,3));Y316:=IFF(CURRBARSCOUNT=1,(XMA(Y315,3)*3-MA(Y315,2)+Y315)/3,XMA( Y315,3));Y317:=IFF(CURRBARSCOUNT=1,(XMA(Y316,3)*3-MA(Y316,2)+Y316)/3,XMA( Y316,3));Y318:=IFF(CURRBARSCOUNT=1,(XMA(Y317,3)*3-MA(Y317,2)+Y317)/3,XMA( Y317,3));Y319:=IFF(CURRBARSCOUNT=1,(XMA(Y318,3)*3-MA(Y318,2)+Y318)/3,XMA( Y318,3));Y320:=IFF(CURRBARSCOUNT=1,(XMA(Y319,3)*3-MA(Y319,2)+Y319)/3,XMA( Y319,3));Y321:=IFF(CURRBARSCOUNT=1,(XMA(Y320,3)*3-MA(Y320,2)+Y320)/3,XMA( Y320,3));Y322:=IFF(CURRBARSCOUNT=1,(XMA(Y321,3)*3-MA(Y321,2)+Y321)/3,XMA(Y323:=IFF(CURRBARSCOUNT=1,(XMA(Y322,3)*3-MA(Y322,2)+Y322)/3,XMA( Y322,3));Y324:=IFF(CURRBARSCOUNT=1,(XMA(Y323,3)*3-MA(Y323,2)+Y323)/3,XMA( Y323,3));Y325:=IFF(CURRBARSCOUNT=1,(XMA(Y324,3)*3-MA(Y324,2)+Y324)/3,XMA( Y324,3));Y326:=IFF(CURRBARSCOUNT=1,(XMA(Y325,3)*3-MA(Y325,2)+Y325)/3,XMA( Y325,3));Y327:=IFF(CURRBARSCOUNT=1,(XMA(Y326,3)*3-MA(Y326,2)+Y326)/3,XMA( Y326,3));Y328:=IFF(CURRBARSCOUNT=1,(XMA(Y327,3)*3-MA(Y327,2)+Y327)/3,XMA( Y327,3));Y329:=IFF(CURRBARSCOUNT=1,(XMA(Y328,3)*3-MA(Y328,2)+Y328)/3,XMA( Y328,3));Y330:=IFF(CURRBARSCOUNT=1,(XMA(Y329,3)*3-MA(Y329,2)+Y329)/3,XMA( Y329,3));Y331:=IFF(CURRBARSCOUNT=1,(XMA(Y330,3)*3-MA(Y330,2)+Y330)/3,XMA( Y330,3));Y332:=IFF(CURRBARSCOUNT=1,(XMA(Y331,3)*3-MA(Y331,2)+Y331)/3,XMA( Y331,3));Y333:=IFF(CURRBARSCOUNT=1,(XMA(Y332,3)*3-MA(Y332,2)+Y332)/3,XMA( Y332,3));Y334:=IFF(CURRBARSCOUNT=1,(XMA(Y333,3)*3-MA(Y333,2)+Y333)/3,XMA( Y333,3));Y335:=IFF(CURRBARSCOUNT=1,(XMA(Y334,3)*3-MA(Y334,2)+Y334)/3,XMA( Y334,3));Y336:=IFF(CURRBARSCOUNT=1,(XMA(Y335,3)*3-MA(Y335,2)+Y335)/3,XMA( Y335,3));Y337:=IFF(CURRBARSCOUNT=1,(XMA(Y336,3)*3-MA(Y336,2)+Y336)/3,XMA( Y336,3));Y338:=IFF(CURRBARSCOUNT=1,(XMA(Y337,3)*3-MA(Y337,2)+Y337)/3,XMA( Y337,3));Y339:=IFF(CURRBARSCOUNT=1,(XMA(Y338,3)*3-MA(Y338,2)+Y338)/3,XMA( Y338,3));Y340:=IFF(CURRBARSCOUNT=1,(XMA(Y339,3)*3-MA(Y339,2)+Y339)/3,XMA( Y339,3));Y341:=IFF(CURRBARSCOUNT=1,(XMA(Y340,3)*3-MA(Y340,2)+Y340)/3,XMA( Y340,3));Y342:=IFF(CURRBARSCOUNT=1,(XMA(Y341,3)*3-MA(Y341,2)+Y341)/3,XMA( Y341,3));Y343:=IFF(CURRBARSCOUNT=1,(XMA(Y342,3)*3-MA(Y342,2)+Y342)/3,XMA( Y342,3));Y344:=IFF(CURRBARSCOUNT=1,(XMA(Y343,3)*3-MA(Y343,2)+Y343)/3,XMA(Y345:=IFF(CURRBARSCOUNT=1,(XMA(Y344,3)*3-MA(Y344,2)+Y344)/3,XMA( Y344,3));Y346:=IFF(CURRBARSCOUNT=1,(XMA(Y345,3)*3-MA(Y345,2)+Y345)/3,XMA( Y345,3));Y347:=IFF(CURRBARSCOUNT=1,(XMA(Y346,3)*3-MA(Y346,2)+Y346)/3,XMA( Y346,3));Y348:=IFF(CURRBARSCOUNT=1,(XMA(Y347,3)*3-MA(Y347,2)+Y347)/3,XMA( Y347,3));Y349:=IFF(CURRBARSCOUNT=1,(XMA(Y348,3)*3-MA(Y348,2)+Y348)/3,XMA( Y348,3));Y350:=IFF(CURRBARSCOUNT=1,(XMA(Y349,3)*3-MA(Y349,2)+Y349)/3,XMA( Y349,3));Y351:=IFF(CURRBARSCOUNT=1,(XMA(Y350,3)*3-MA(Y350,2)+Y350)/3,XMA( Y350,3));Y352:=IFF(CURRBARSCOUNT=1,(XMA(Y351,3)*3-MA(Y351,2)+Y351)/3,XMA( Y351,3));Y353:=IFF(CURRBARSCOUNT=1,(XMA(Y352,3)*3-MA(Y352,2)+Y352)/3,XMA( Y352,3));Y354:=IFF(CURRBARSCOUNT=1,(XMA(Y353,3)*3-MA(Y353,2)+Y353)/3,XMA( Y353,3));Y355:=IFF(CURRBARSCOUNT=1,(XMA(Y354,3)*3-MA(Y354,2)+Y354)/3,XMA( Y354,3));Y356:=IFF(CURRBARSCOUNT=1,(XMA(Y355,3)*3-MA(Y355,2)+Y355)/3,XMA( Y355,3));Y357:=IFF(CURRBARSCOUNT=1,(XMA(Y356,3)*3-MA(Y356,2)+Y356)/3,XMA( Y356,3));Y358:=IFF(CURRBARSCOUNT=1,(XMA(Y357,3)*3-MA(Y357,2)+Y357)/3,XMA( Y357,3));Y359:=IFF(CURRBARSCOUNT=1,(XMA(Y358,3)*3-MA(Y358,2)+Y358)/3,XMA( Y358,3));Y360:=IFF(CURRBARSCOUNT=1,(XMA(Y359,3)*3-MA(Y359,2)+Y359)/3,XMA( Y359,3));Y361:=IFF(CURRBARSCOUNT=1,(XMA(Y360,3)*3-MA(Y360,2)+Y360)/3,XMA( Y360,3));Y362:=IFF(CURRBARSCOUNT=1,(XMA(Y361,3)*3-MA(Y361,2)+Y361)/3,XMA( Y361,3));Y363:=IFF(CURRBARSCOUNT=1,(XMA(Y362,3)*3-MA(Y362,2)+Y362)/3,XMA( Y362,3));Y364:=IFF(CURRBARSCOUNT=1,(XMA(Y363,3)*3-MA(Y363,2)+Y363)/3,XMA( Y363,3));Y365:=IFF(CURRBARSCOUNT=1,(XMA(Y364,3)*3-MA(Y364,2)+Y364)/3,XMA( Y364,3));Y366:=IFF(CURRBARSCOUNT=1,(XMA(Y365,3)*3-MA(Y365,2)+Y365)/3,XMA(Y367:=IFF(CURRBARSCOUNT=1,(XMA(Y366,3)*3-MA(Y366,2)+Y366)/3,XMA( Y366,3));Y368:=IFF(CURRBARSCOUNT=1,(XMA(Y367,3)*3-MA(Y367,2)+Y367)/3,XMA( Y367,3));Y369:=IFF(CURRBARSCOUNT=1,(XMA(Y368,3)*3-MA(Y368,2)+Y368)/3,XMA( Y368,3));Y370:=IFF(CURRBARSCOUNT=1,(XMA(Y369,3)*3-MA(Y369,2)+Y369)/3,XMA( Y369,3));Y371:=IFF(CURRBARSCOUNT=1,(XMA(Y370,3)*3-MA(Y370,2)+Y370)/3,XMA( Y370,3));Y372:=IFF(CURRBARSCOUNT=1,(XMA(Y371,3)*3-MA(Y371,2)+Y371)/3,XMA( Y371,3));Y373:=IFF(CURRBARSCOUNT=1,(XMA(Y372,3)*3-MA(Y372,2)+Y372)/3,XMA( Y372,3));Y374:=IFF(CURRBARSCOUNT=1,(XMA(Y373,3)*3-MA(Y373,2)+Y373)/3,XMA( Y373,3));Y375:=IFF(CURRBARSCOUNT=1,(XMA(Y374,3)*3-MA(Y374,2)+Y374)/3,XMA( Y374,3));Y376:=IFF(CURRBARSCOUNT=1,(XMA(Y375,3)*3-MA(Y375,2)+Y375)/3,XMA( Y375,3));Y377:=IFF(CURRBARSCOUNT=1,(XMA(Y376,3)*3-MA(Y376,2)+Y376)/3,XMA( Y376,3));Y378:=IFF(CURRBARSCOUNT=1,(XMA(Y377,3)*3-MA(Y377,2)+Y377)/3,XMA( Y377,3));Y379:=IFF(CURRBARSCOUNT=1,(XMA(Y378,3)*3-MA(Y378,2)+Y378)/3,XMA( Y378,3));Y380:=IFF(CURRBARSCOUNT=1,(XMA(Y379,3)*3-MA(Y379,2)+Y379)/3,XMA( Y379,3));Y381:=IFF(CURRBARSCOUNT=1,(XMA(Y380,3)*3-MA(Y380,2)+Y380)/3,XMA( Y380,3));Y382:=IFF(CURRBARSCOUNT=1,(XMA(Y381,3)*3-MA(Y381,2)+Y381)/3,XMA( Y381,3));Y383:=IFF(CURRBARSCOUNT=1,(XMA(Y382,3)*3-MA(Y382,2)+Y382)/3,XMA( Y382,3));Y384:=IFF(CURRBARSCOUNT=1,(XMA(Y383,3)*3-MA(Y383,2)+Y383)/3,XMA( Y383,3));Y385:=IFF(CURRBARSCOUNT=1,(XMA(Y384,3)*3-MA(Y384,2)+Y384)/3,XMA( Y384,3));Y386:=IFF(CURRBARSCOUNT=1,(XMA(Y385,3)*3-MA(Y385,2)+Y385)/3,XMA( Y385,3));Y387:=IFF(CURRBARSCOUNT=1,(XMA(Y386,3)*3-MA(Y386,2)+Y386)/3,XMA( Y386,3));Y388:=IFF(CURRBARSCOUNT=1,(XMA(Y387,3)*3-MA(Y387,2)+Y387)/3,XMA(Y389:=IFF(CURRBARSCOUNT=1,(XMA(Y388,3)*3-MA(Y388,2)+Y388)/3,XMA( Y388,3));Y390:=IFF(CURRBARSCOUNT=1,(XMA(Y389,3)*3-MA(Y389,2)+Y389)/3,XMA( Y389,3));Y391:=IFF(CURRBARSCOUNT=1,(XMA(Y390,3)*3-MA(Y390,2)+Y390)/3,XMA( Y390,3));Y392:=IFF(CURRBARSCOUNT=1,(XMA(Y391,3)*3-MA(Y391,2)+Y391)/3,XMA( Y391,3));Y393:=IFF(CURRBARSCOUNT=1,(XMA(Y392,3)*3-MA(Y392,2)+Y392)/3,XMA( Y392,3));Y394:=IFF(CURRBARSCOUNT=1,(XMA(Y393,3)*3-MA(Y393,2)+Y393)/3,XMA( Y393,3));Y395:=IFF(CURRBARSCOUNT=1,(XMA(Y394,3)*3-MA(Y394,2)+Y394)/3,XMA( Y394,3));N:= 200 ; M:= 13;{DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'12',0)};DRAWKLINE(H,O,L,C);股价96:=Y395;增幅96:=XMA(XMA(XMA(股价96,3),3),3)-REF(XMA(XMA(XMA(股价96,3),3),3),1);X396:=XMA(股价96,3);J396:=(XMA(股价96,3)*3+0.5*股价96-0.5*REF(股价96,1)+增幅96)/3;Y396:=IFF(CURRBARSCOUNT=1,J396,X396),LINETHICK2,COLORGREEN;高险区1:Y396*1.1,COLORLIRED,COLORFFFF00;高险区2:Y396*1.125,COLORLIRED,COLORFF0000;高险区3:Y396*1.15,COLORLIRED,COLOR00FF00;良机区1:Y396*0.9,COLORLIBLUE,COLOR00FFFF;良机区2:Y396*0.875,COLORLIBLUE,COLORFF00FF;良机区3:Y396*0.85,COLOR0000FF;WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;WSR2:=CROSS(WSR1,5);WSR3:=CROSS(8,WSR1);WSR4:=CROSS(WSR1,-5);WSR5:=CROSS(WSR1,-8);WSR6:=WSR3;WSR7:=WSR4 OR WSR5;WSR8:=WSR7 AND FILTER(WSR7,5);WSR10:DRAWICON(WSR8,L-0.01,1);WSR9:=WSR6 AND FILTER(WSR6,5);WSR11:DRAWICON(WSR9,H+0.01,2);WSR12:=O<良机区3;DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1); XG:=W1 OR W2;VAR1:=AMOUNT/VOL/7;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,10)/VAR1/7;VAR4:=DMA(VAR2,VOL/VAR3);VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;XG1:=CROSS(VAR5,MA(VAR5,2)) AND VAR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);XG3:=XG AND XG1 AND L<良机区1;WSR13:=O>良机区3 AND L<良机区1 OR XG3;DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,23);WSR14:=H>高风区3;DRAWICON(WSR14 ANDFILTER(WSR14,15),H+0.03,19);WSR15:=H<高风区3 AND H>高风区2;DRAWICON(WSR15 ANDFILTER(WSR15,5),H+0.03,15);WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);WSR19:=(WSR16 + WSR17 + WSR18)/3;WSR20:=(C-MA(C,3))/MA(C,3);WSR21:=(C-MA(C,8))/MA(C,8);WSR22:=(C-MA(C,18))/MA(C,18);WSR23:=(WSR20 + WSR21 + WSR22)/3;WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);WSR28:=(WSR25 + WSR26 + WSR27)/3;WSR29:=(C-MA(C,6))/MA(C,6);WSR30:=(C-MA(C,12))/MA(C,12);WSR31:=(C-MA(C,24))/MA(C,24);WSR32:=(WSR29 + WSR30 + WSR31)/3;WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR37:=(WSR34 + WSR35 + WSR36)/3;WSR38:=(C-MA(C,13))/MA(C,13);WSR39:=(C-MA(C,34))/MA(C,34);WSR40:=(C-MA(C,55))/MA(C,55);WSR41:=(WSR38 + WSR39 + WSR40)/3;WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR46:=(WSR43 + WSR44 + WSR45)/3;WSR47:=(C-MA(C,30))/MA(C,30);WSR48:=(C-MA(C,60))/MA(C,60);WSR49:=(C-MA(C,90))/MA(C,90);WSR50:=(WSR47 + WSR48 + WSR49)/3;WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);WSR55:=(WSR52 + WSR53 + WSR54)/3;WSR56:=(C-MA(C,60))/MA(C,60);WSR57:=(C-MA(C,120))/MA(C,120);WSR58:=(C-MA(C,220))/MA(C,220);WSR59:=(WSR56 + WSR57 + WSR58)/3;WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60; DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3,'★'),COLOR00FFFF;DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良机区3*0.97,'机'),COLOR00FFFF;时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);DRAWTEXT(时间之窗=2,L*0.94,'★3天'),COLORRED;DRAWTEXT(时间之窗=4,H*1.06,'★5天'),COLORGREEN;DRAWTEXT(时间之窗=7,L*0.94,'★8天'),COLORRED;DRAWTEXT(时间之窗=12,H*1.06,'★13天'),COLORGREEN;DRAWTEXT(时间之窗=20,L*0.94,'★21天'),COLORLIRED;DRAWTEXT(时间之窗=33,H*1.06,'★34天'),COLORLIGREEN;DRAWTEXT(时间之窗=54,L*0.94,'★55天'),COLORLIRED;{DRAWTEXT(时间之窗=88,H*1.06,'★89天'),COLORLIGREEN; DRAWTEXT(时间之窗=143,L*0.94,'★144天'),COLORLIRED;DRAWTEXT(时间之窗=232,H*1.06,'★233天'),COLORLIGREEN; DRAWTEXT(时间之窗=376,L*0.94,'★377天'),COLORLIRED;DRAWTEXT(时间之窗=609,H*1.06,'★610天'),COLORLIGREEN; };GET:=ZIG(3,3),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;DRAWTEXT_FIX(1,0.90,0,0,HYBLOCK),COLORFF00FF;线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;DRAWICON(CROSS(线A1,线A4),线A1,1);DRAWTEXT(CROSS(线A1,线A4),LOW*0.96,'破'),COLORYELLOW;V1:=EMA(CLOSE,5),COLOR00FFFF;V2:=EMA((EMA(CLOSE,29))*(1.01),10),COLORFF00FF;DRAWICON(CROSS(V1,V2),LOW,1),COLORYELLOW;DRAWTEXT(CROSS(V1,V2),LOW*0.98,'招'),COLORYELLOW;AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;TYP := (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;VAR1A:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2A:=(HHV(VAR1A,5)+HHV(VAR1A,10)+HHV(VAR1A,20))/3;VAR3A:=(LLV(VAR1A,5)+LLV(VAR1A,10)+LLV(VAR1A,20))/3;VAR4A:=(HHV(VAR2A,5)+HHV(VAR2A,10)+HHV(VAR2A,20))/3;VAR5A:=(LLV(VAR3A,5)+LLV(VAR3A,10)+LLV(VAR3A,20))/3;VAR6A:=(LLV(VAR1A,2)+LLV(VAR1A,4)+LLV(VAR1A,6))/3;短线:VAR1A,COLORWHITE;中线:VAR6A,COLORYELLOW;下跌:IF(VAR1A=VAR6A,VAR6A, DRAWNULL),COLORGREEN;TJ1:= CCI1>差值4;立桩量:=FILTER(TJ1,0),NODRAW;TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);STICKLINE(立桩量!=1,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;{STICKLINE(立桩量!=1,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,1),COLORCYAN;}成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORLIBLUE; TJ11:= CCI1<-差值4 ;立桩量2:=FILTER(TJ11,0),NODRAW;TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);突破2:=TJ22=1;{STICKLINE(CLOSE AND 下跌!= VAR6A,REF(HIGH,BARSLAST(立桩量2)), REF(HIGH,BARSLAST(立桩量2)),1,1),COLORYELLOW;}STICKLINE(CLOSE AND 下跌!= VAR6A,REF(LOW,BARSLAST(立桩量2)), REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORLIMAGENTA;TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);立桩量3:=FILTER(TJ111,3);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWTEXT(条件成立AND 下跌!= VAR6A,L*0.97,'☆成立');LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45'),COLORWHITE;STICKLINE(1,C,O,2.8,0),COLOR666600;STICKLINE(立桩量,C,O,2.8,0),COLOR0000FF;STICKLINE(1,C,O,0,0),COLORCCCCCC;成本2:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLOR RED,LINETHICK2;。
通达信指标公式源码顶底强拉升副图指标
RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));VAR21:=SMA(RSVA2,9,1)+100;VAR11:=SMA(RSVA1,3,1);VAR51:=SMA(VAR11,3,1)+100;顶底线:=VAR51-VAR21+50;VAR2:=LLV(LOW,33);VAR3:=HHV(HIGH,21);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);STICKLINE(C,100,90,4,0),COLORFFCC33;STICKLINE(C,90,80,4,0),COLORFF9933;STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR009966;STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLOR9999FF; STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLOR009966; STICKLINE(C,20,10,4,0),COLORFF6633;STICKLINE(C,10,0,4,0),COLORFF3333;底线:10,COLORWHITE;顶线:90,COLORWHITE;趋势线:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED; DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,45,'绿区持币'),COLORFFC000;DRAWTEXT(CURRBARSCOUNT=6,50,'(投资区)'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,55,'粉区持股'),COLORFFC000;DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;{强拉升} {好}Y1:=LLV(L,17);Y2:=SMA(ABS(L-REF(L,1)),17,1);Y3:=SMA(MAX(L-REF(L,1),0),17,2);Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW;Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2; STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;VAR22:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));STICKLINE(地>天AND 地<0,10,0,1,0),COLORRED;开始拉升:STICKLINE(地>天AND 地<0,10,0,1,0)=1,COLORRED;{<<波段绝品>>} {好}VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2B:=SMA(VAR1B,9,1)+100;VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4B:=SMA(VAR3B,3,1);VAR5B:=SMA(VAR4B,3,1)+100;VAR6B:=VAR5B-VAR2B;趋势1: IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;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)/999*VAR7Q;火焰山:=IF(VAR8Q>100,100,VAR8Q);STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3.5,0 ),COLOR4444FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,2.5,0 ),COLOR5555FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1.5,0 ),COLOR7777FF; STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,0.5,0 ),COLOR9999FF; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR000033; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR000055; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR000077; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR000099; STICKLINE(REF(趋势1,1)< 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR0000DD; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),3.5,0),COLOR003300; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.8,0),COLOR005500; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),2.0,0),COLOR007700; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),1.2,0),COLOR009900; STICKLINE(REF(趋势1,1)> 趋势1, 趋势1,REF(趋势1,1),0.4,0),COLOR00DD00;逃顶:=CROSS(82,RSI);STICKLINE( 逃顶,逃顶,10,3.5,0),COLORFF5500;STICKLINE( 逃顶,逃顶,15,2.5,0),COLORFF8800;STICKLINE( 逃顶,逃顶,20,1.5,0),COLORFFAA00;STICKLINE( 逃顶,逃顶,25,0.5,0),COLORFFCC00;STICKLINE( 逃顶,逃顶,30,0.1,0),COLORFFFF00;D1:=(C+L+H)/3;D2:=EMA(D1,6);D3:=EMA(D2,5);BBUY:=CROSS(D2,D3);强弱线:50,COLORGREEN,POINTDOT;DRAWICON(BBUY,20,1);VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),10,15);DRAWTEXT(CROSS(82,VARR1),35,'逃'),COLORYELLOW;。
大盘逃顶主图源码通达信指标公式源码
此超好用,精准,无未来,绝不漂移,是判断趋势的绝佳好指标,一直在使用X_1:=LLV(LOW,9);X_2:=LLV(LOW,14);X_3:=LLV(LOW,19);X_4:=LLV(LOW,29);X_5:=LLV(LOW,39);X_6:=LLV(LOW,59);X_7:=LLV(LOW,99);X_8:=LLV(LOW,119);X_9:=LLV(LOW,199);X_10:=REF(BARSLAST(LOW=X_1),1)+1;X_11:=REF(BARSLAST(LOW=X_2),1)+1;X_12:=REF(BARSLAST(LOW=X_3),1)+1;X_13:=REF(BARSLAST(LOW=X_4),1)+1;X_14:=REF(BARSLAST(LOW=X_5),1)+1;X_15:=REF(BARSLAST(LOW=X_6),1)+1;X_16:=REF(BARSLAST(LOW=X_7),1)+1;X_17:=REF(BARSLAST(LOW=X_8),1)+1;X_18:=REF(BARSLAST(LOW=X_9),1)+1;X_19:=LOW<REF(LOW,X_10) AND MACD.DIF>REF(MACD.DIF,X_10);X_20:=LOW<REF(LOW,X_11) AND MACD.DIF>REF(MACD.DIF,X_11);X_21:=LOW<REF(LOW,X_12) AND MACD.DIF>REF(MACD.DIF,X_12);X_22:=LOW<REF(LOW,X_13) AND MACD.DIF>REF(MACD.DIF,X_13);X_23:=LOW<REF(LOW,X_14) AND MACD.DIF>REF(MACD.DIF,X_14);X_24:=LOW<REF(LOW,X_15) AND MACD.DIF>REF(MACD.DIF,X_15);X_25:=LOW<REF(LOW,X_16) AND MACD.DIF>REF(MACD.DIF,X_16);X_26:=LOW<REF(LOW,X_17) AND MACD.DIF>REF(MACD.DIF,X_17);X_27:=LOW<REF(LOW,X_18) AND MACD.DIF>REF(MACD.DIF,X_18);X_28:=X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24 OR X_25 OR X_26 OR X_27; X_29:=CROSS(MACD.DIF,MACD.DEA) AND COUNT(X_28,10)>=1;X_30:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1;X_31:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DIF>REF(MACD.DIF,X_30) AND LOW<REF(LOW,X_30);X_32:=EMA(CLOSE,12)-EMA(CLOSE,26);X_33:=EMA(X_32,9);X_34:=2*(X_32-X_33);X_35:=BARSLAST(REF(X_34,1)<0 AND X_34>0);X_36:=LLVBARS(X_34,X_35+18);X_37:=IF(X_36>X_35,REF(X_34,X_36),0);X_38:=LLVBARS(X_32,X_35+18);X_39:=IF(X_38>X_35,REF(X_32,X_38),0);X_40:=X_34<0 AND X_34>X_37 AND X_32<0 AND X_32>X_39 AND CLOSE=LLV(CLOSE,X_35+18) AND X_37<0 AND X_39<0;X_41:=REF(X_40,1)=1 AND X_34>REF(X_34,1) AND X_35>=10;X_42:=X_29 OR X_31 OR X_41 AND NOT(EVERY(ABS(MACD.DIF-MACD.DEA)>0.1,3));X_43:=1;X_44:=MA(CLOSE,13);X_45:=100-ABS((CLOSE-X_44)/X_44*100);X_46:=LLV(LOW,75);X_47:=HHV(HIGH,75);X_48:=(X_47-X_46)/100;X_49:=SMA((CLOSE-X_46)/X_48,20,1);X_50:=SMA((OPEN-X_46)/X_48,20,1);X_51:=3*X_49-2*SMA(X_49,15,1);X_52:=3*X_50-2*SMA(X_50,15,1);X_53:=100-X_52;X_54:=(100-X_51)*X_43;X_55:=X_54>X_45;X_56:=REF(LOW,1)*0.9;X_57:=LOW*0.9;X_58:=EMA(X_57,30);X_59:=CLOSE-REF(CLOSE,1);X_60:=MAX(X_59,0);X_61:=ABS(X_59);X_62:=SMA(X_60,7,1)/SMA(X_61,7,1)*100;X_63:=SMA(X_60,13,1)/SMA(X_61,13,1)*100;X_64:=BARSCOUNT(CLOSE);X_65:=SMA(MAX(X_59,0),6,1)/SMA(ABS(X_59),6,1)*100;X_66:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;X_67:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;X_68:=SMA((SMA(X_67,4,1)-50)*2,3,1);X_69:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;X_70:=SMA(X_69,4,1);X_71:=SMA(X_70,3,1);X_72:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;X_73:=X_65<=25 AND X_66<(-95) AND X_72>20 AND X_68<(-30) AND X_71<30 AND X_58-CLOSE>=(-0.25) AND X_62<22 AND X_63<28 AND X_64>50;X_74:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));X_75:=VOL;X_76:=IF(CLOSE>OPEN,ABS(X_74*(HIGH-LOW)),IF(CLOSE<OPEN,ABS(X_74*(HIGH-OP EN+(CLOSE-LOW))),ABS(VOL/2)));X_77:=IF(CLOSE>OPEN,ABS(0-X_74*(HIGH-CLOSE+(OPEN-LOW))),IF(CLOSE<OPEN,AB S(0-X_74*(HIGH-LOW)),ABS(0-VOL/2)));X_78:=X_73 AND X_76>X_77;X_79:=BARSLAST(X_73)>=1 AND CLOSE>REF(CLOSE,BARSLAST(X_73))*1.01 AND COUNT(X_73,2)=1;X_80:=EMA(CLOSE,12)-EMA(CLOSE,26);X_81:=EMA(X_80,9);X_82:=2*(X_80-X_81);X_83:=BARSLAST(REF(X_82,1)<0 AND X_82>0);X_84:=LLVBARS(X_82,X_83+20);X_85:=IF(X_84>X_83,REF(X_82,X_84),0);X_86:=LLVBARS(X_80,X_83+20);X_87:=IF(X_86>X_83,REF(X_80,X_86),0);X_88:=X_82<0 AND X_82>X_85 AND X_80<0 AND X_80>X_87 AND CLOSE=LLV(CLOSE,X_83+20) AND X_85<0 AND X_87<0;X_89:=REF(X_88,1)=1 AND X_82>REF(X_82,1);X_90:=EXIST(CLOSE/REF(CLOSE,1)>1.055,60);X_91:=X_89 AND X_90;X_92:=X_78 OR X_79 OR X_91;X_93:=HHV(HIGH,9);X_94:=HHV(HIGH,14);X_95:=HHV(HIGH,19);X_96:=HHV(HIGH,29);X_97:=HHV(HIGH,39);X_98:=HHV(HIGH,59);X_99:=HHV(HIGH,99);X_100:=HHV(HIGH,119);X_101:=HHV(HIGH,199);X_102:=REF(BARSLAST(HIGH=X_93),1)+1;X_103:=REF(BARSLAST(HIGH=X_94),1)+1;X_104:=REF(BARSLAST(HIGH=X_95),1)+1;X_105:=REF(BARSLAST(HIGH=X_96),1)+1;X_106:=REF(BARSLAST(HIGH=X_97),1)+1;X_107:=REF(BARSLAST(HIGH=X_98),1)+1;X_108:=REF(BARSLAST(HIGH=X_99),1)+1;X_109:=REF(BARSLAST(HIGH=X_100),1)+1;X_110:=REF(BARSLAST(HIGH=X_101),1)+1;X_111:=HIGH>REF(HIGH,X_102) AND MACD.DIF<REF(MACD.DIF,X_102);X_112:=HIGH>REF(HIGH,X_103) AND MACD.DIF<REF(MACD.DIF,X_103);X_113:=HIGH>REF(HIGH,X_104) AND MACD.DIF<REF(MACD.DIF,X_104);X_114:=HIGH>REF(HIGH,X_105) AND MACD.DIF<REF(MACD.DIF,X_105);X_115:=HIGH>REF(HIGH,X_106) AND MACD.DIF<REF(MACD.DIF,X_106);X_116:=HIGH>REF(HIGH,X_107) AND MACD.DIF<REF(MACD.DIF,X_107);X_117:=HIGH>REF(HIGH,X_108) AND MACD.DIF<REF(MACD.DIF,X_108);X_118:=HIGH>REF(HIGH,X_109) AND MACD.DIF<REF(MACD.DIF,X_109);X_119:=HIGH>REF(HIGH,X_110) AND MACD.DIF<REF(MACD.DIF,X_110);X_120:=X_111 OR X_112 OR X_113 OR X_114 OR X_115 OR X_116 OR X_117 OR X_118 OR X_119;X_121:=CROSS(MACD.DEA,MACD.DIF);X_122:=BARSLAST(REF(X_121,1))+1;X_123:=MACD.DIF<REF(MACD.DIF,X_122);X_124:=HIGH>REF(HIGH,X_122);X_125:=X_121 AND X_123 AND X_124;X_126:=X_121 AND COUNT(X_120,10)>=1;X_127:=X_125 OR X_126;X_128:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;X_129:=SMA(X_128,3,1);X_130:=SMA(X_129,3,1);X_131:=3*X_129-2*X_130;X_132:=CROSS(X_130,X_129);X_133:=BARSLAST(REF(X_132,1))+1;X_134:=X_132 AND X_133>3 AND HIGH>REF(HIGH,X_133) AND REF(X_129,1)<REF(X_129,X_133+1);DRAWICON(X_42,LOW*0.97,23);DRAWICON(X_92,LOW*0.97,1);DRAWICON(X_127,HIGH*1.02,15);X_135:=FILTER(EVERY(CLOSE>REF(CLOSE,4),9),9);JZ:DRAWICON(X_135,HIGH*1.02,39);DRAWICON(X_134,HIGH*1.02,2);X_136:=X_127 AND COUNT(JZ,5)>0;X_137:=X_127 AND COUNT(X_134,5)>0;X_138:=X_136 OR X_137;DRAWICON(X_138,HIGH*1.04,15);MA1:MA(CLOSE,20),COLORGREEN;MA2:MA(CLOSE,55),COLORWHITE;IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED;。