实际操作最有帮助的画图矩形——当下适合每个分钟和周期使用通达信指标公式源码
通达信画矩形函数
通达信画矩形函数概述在股票分析中,经常需要研究股票价格在一段时间内的波动情况。
为了方便分析师和投资者,通达信软件提供了丰富的绘图功能,其中一个重要的功能就是画矩形。
通过矩形的绘制,我们可以清晰地看到特定时间段内的股票价格走势,进而进行更加准确的技术分析和决策。
通达信画矩形函数的基本使用方法通达信软件中提供了一些内置函数,可以帮助我们绘制矩形。
在绘图工具栏中,可以找到“矩形”按钮,点击后会弹出绘图窗口。
在绘图窗口中,我们可以设置矩形的起始点和结束点,并选定画线的颜色和宽度。
通过简单的拖拽和选择操作,就可以完成矩形的绘制。
绘图完成后,矩形会出现在股票价格走势图中,并且可以随时进行修改和删除。
通达信画矩形函数的高级技巧除了基本的绘制功能,通达信软件还提供了一些高级的画矩形函数,可以帮助分析师更好地研究股票价格的波动情况。
下面是一些常用的高级技巧:1. 支持多种画线方式通达信画矩形函数支持多种不同的画线方式,可以根据需要选择合适的方式进行绘制。
例如,我们可以选择在最高点和最低点之间画一条直线,或者选择在开盘价和收盘价之间画一条实体线。
不同的画线方式可以展示不同的价格波动特征,帮助分析师更好地理解股票价格走势。
2. 支持画多个矩形在通达信中,我们可以同时画多个矩形,而不仅限于一个。
这样可以帮助我们同时观察不同时间段内的价格走势,并进行多个时间段的比较和分析。
多个矩形之间可以进行拖拽和调整,以便更好地展示和分析股票价格的波动情况。
3. 支持保存和分享矩形通达信软件不仅支持在本地保存绘制的矩形,还可以进行分享和导入。
分析师可以将自己绘制的矩形分享给其他人,以便大家共同研究和讨论。
同时,也可以从其他人那里导入他们绘制的矩形,以便参考和分析。
这种功能的实现,可以帮助股票分析师之间更好地进行交流和合作。
4. 支持计算价格波动属性通达信画矩形函数除了能够帮助我们绘制矩形外,还可以计算矩形内价格的波动属性。
例如,我们可以计算矩形内价格的最高值、最低值、平均值等统计数据,以及价格的标准差和均值等指标。
通达信公式指标源码 通达信马到成功主图指标 源码
通达信马到成功主图指标源码VV:=(C+L+H)/3;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( Y321,3));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( Y343,3));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( Y365,3));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( Y387,3));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));Y396:=IFF(CURRBARSCOUNT=1,(XMA(Y395,3)*3-MA(Y395,2)+Y395)/3,XMA( Y395,3));Y397:=IFF(CURRBARSCOUNT=1,(XMA(Y396,3)*3-MA(Y396,2)+Y396)/3,XMA( Y396,3));Y398:=IFF(CURRBARSCOUNT=1,(XMA(Y397,3)*3-MA(Y397,2)+Y397)/3,XMA( Y397,3));Y399:=IFF(CURRBARSCOUNT=1,(XMA(Y398,3)*3-MA(Y398,2)+Y398)/3,XMA( Y398,3));Y400:=IFF(CURRBARSCOUNT=1,(XMA(Y399,3)*3-MA(Y399,2)+Y399)/3,XMA( Y399,3));Y401:=IFF(CURRBARSCOUNT=1,(XMA(Y400,3)*3-MA(Y400,2)+Y400)/3,XMA( Y400,3));Y402:=IFF(CURRBARSCOUNT=1,(XMA(Y401,3)*3-MA(Y401,2)+Y401)/3,XMA( Y401,3));Y403:=IFF(CURRBARSCOUNT=1,(XMA(Y402,3)*3-MA(Y402,2)+Y402)/3,XMA( Y402,3));Y404:=IFF(CURRBARSCOUNT=1,(XMA(Y403,3)*3-MA(Y403,2)+Y403)/3,XMA( Y403,3));Y405:=IFF(CURRBARSCOUNT=1,(XMA(Y404,3)*3-MA(Y404,2)+Y404)/3,XMA( Y404,3));Y406:=IFF(CURRBARSCOUNT=1,(XMA(Y405,3)*3-MA(Y405,2)+Y405)/3,XMA( Y405,3));LL:=Y406;{日周期}{险1:=Y396*1.1,COLORRED,POINTDOT;}险2:=Y396*1.125,COLORYELLOW,POINTDOT;{险3:Y396*1.15,COLORRED,POINTDOT;}{良1:=Y396*0.9,COLORLIBLUE,POINTDOT;}良2:=Y396*0.875,COLORGREEN,POINTDOT;{良3:Y396*0.85,COLORLIBLUE,POINTDOT;}AA:=MA((2*CLOSE+HIGH+LOW)/4,5);通道1:=AA*102/100;通道2:=AA*(200-102)/30;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);通道3:=(1+7/100)*DD;通道4:=(1-7/100)*DD;股价:=C;股价运动:=股价,LINETHICK2,COLORBLUE;运动趋势:=Y406,LINETHICK1,COLORWHITE;风险区:运动趋势*1.1,COLORRED;高风险区2:=运动趋势*1.125,COLORRED;高风险区3:=运动趋势*1.15,COLORRED;良机区1:=运动趋势*0.9,COLORGREEN;良机区2:=运动趋势*0.875,COLORGREEN;良机区:运动趋势*0.85,COLORGREEN;T:=CLOSE/REF(CLOSE,1)*1000-1000;QS2:=XMA(XMA(XMA(T,2),2),2);QS4:=XMA(XMA(XMA(T,4),4),4);QS6:=XMA(XMA(XMA(T,6),6),6);高风险:=((C-运动趋势)/运动趋势*100>10 AND C>通道3) OR ((H-运动趋势)/运动趋势*100>10 AND H>通道3 ) OR ((O-运动趋势)/运动趋势*100>10 AND O>通道3);DRAWTEXT(高风险,H,'卖');独醉天下:=((C-运动趋势)/运动趋势*100<-10 AND C<通道4) OR ((O-运动趋势)/运动趋势*100<-10 AND O<通道4 ) OR((L-运动趋势)/运动趋势*100<-10 AND L<通道4);DRAWTEXT(独醉天下,良机区,'买');MA5:MA(CLOSE,M1),COLORWHITE;MA10:MA(CLOSE,M2),COLORYELLOW;MA20:=MA(CLOSE,M3),COLORMAGENTA;MA30:=MA(CLOSE,M7),COLORBLUE;MA60:=MA(CLOSE,M4),COLORBROWN;MA120:=MA(CLOSE,M5),COLORGRAY;MA250:=MA(CLOSE,M6),COLORLICYAN;DRAWICON((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)),LOW*0.98,1) ;DRAWTEXT((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)),LOW*0.94,'千里马'),COLORBROWN; DRAWICON((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)),HIGH*1.01,2);VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:=EMA(VAR7,5)*2, , COLORFF00FF;D:=EMA(K,5), , COLORWHITE;J:=K*3-D*2, ,COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;HS:=VOL/CAPITAL*100, , COLORGREEN;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;DRAWTEXT(VARA=20,LOW*0.95,'世纪大底') COLORYELLOW;涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0); STICKLINE(涨停,O,C,3,0),COLORRED;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;TY:=H;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);阻力:=REF(H,BARSLAST(HD)),COLOR00FF00;{} DRAWTEXT(CROSS(C,阻力),LOW*0.93,'突破'),COLORFF00FF;最高位:=BARSLAST((HHV(C,76)=C AND WINNER(C)*100>90 ));最低位:=BARSLAST((LLV(L,最高位)=L));最高价:=REF(C,最高位);最低价:=LLV(L,最高位);振幅合理:=(最高价-最低价)/最低价>0.1;前高条件:=最高位<77 AND 最高位>10 AND 最高位>最低位AND 振幅合理; 三日振幅:=(HHV(MAX(C,O),3)-LLV(MIN(C,O),3))/LLV(MIN(C,O),3)*100<5;今日大阳:=C/REF(C,1)>1.055;上影长度1:= H-MAX(C,O);下影长度1:=MIN(C,O)-L;K线长度1:=ABS(C-O);纺锤:=(下影长度1 >K线长度1/5 AND 上影长度1>K线长度1/5 ) ;去影线1:=(下影长度1=0 OR 上影长度1=0);TY1:=C;SR11:=REF(TY1,10)=HHV(TY1,2*10+1);SR21:=FILTER(SR11,10);SR31:=BACKSET(SR21,10+1);HD1:=FILTER(SR31,10);前高11:=REF(C,BARSLAST(HD1));预判过前高:=C*1.115>前高11;买入8:=REF(三日振幅,1) AND 今日大阳AND REF(前高条件,1) AND 去影线1 AND 预判过前高;DRAWTEXT(买入8,L*0.99,'大牛股'),COLORYELLOW;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);BB:=(C-LB1)/(UB-LB)*100,NODRAW;MA6:=MA(BB,6),NODRAW;DRAWICON(CROSS(BB,100),BB,1),NODRAW;DRAWTEXT(CROSS(BB,100),L*0.96,'疾奔'),COLORCYAN;MAC5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);M5:=MA(MAC5,5);AA1:=PLOYLINE(CROSS(MAC5,M5),M5);AAB:=PLOYLINE(CROSS(M5,MAC5),MAC5);迈蹄疾奔:=COUNT(CROSS(MAC5,M5),AA1<REF(AA1,5) ANDAAB>REF(AAB,5));DRAWTEXT(迈蹄疾奔,L*0.97,'迈蹄'),COLORBLUE;MAA5:=MA(C,5);ZH:=ABS(MAA5-MA20)/MA20*100<=10;GG:=ABS(MAA5-MA30)/MA30*100<=10;HH:=MAA5>REF(MAA5,1);QS:=MA20>REF(MA20,1);ZZ:=MA30>REF(MA30,1);DTPL:=MA20>MA30 AND MA30>MA120;QQ:=DTPL AND QS AND ZZ AND COUNT(HH,4)<=1;HY:=C>MAA5 AND ((HH AND NOT(REF(HH,1))) OR C>REF(C,3));TT:=HY AND (ZH OR GG) AND QQ;RR:=CAPITAL>3000000;WW:=TT AND NOT(REF(TT,1));WW1:=CROSS(MACD.MACD,0) AND C>MA(C,5);DT:=MA(AMOUNT,6)>MA(AMOUNT,12) ANDMA(AMOUNT,12)>MA(AMOUNT,24);启动:=WW AND COUNT((MA10>MA20),5)=5 AND WW1 AND DT AND RR; DRAWTEXT(启动,LOW*0.99,'龙头'),COLORRED;DRAWTEXT_FIX(1,0,0.01,0,DYBLOCK)COLORGRAY;DRAWTEXT_FIX(1,0,0.08,0,HYBLOCK)COLORGRAY;AAA:= REF(CLOSE,13);BBB:=SMA(MAX(CLOSE-AAA,0),34,1)/SMA(ABS(CLOSE-AAA),34,1)*1000; HHH:=BBB-LLV(BBB,11);DQ:=(MA(HHH,21)*3+HHH*13)/16;DQ2:=REVERSE(DQ);PJZH:=(C+H+L)/3;DDD:=MA(PJZH,4);CZUO:=DDD;MMZL:=LLV(DDD,8);XG1:=(CZUO-MMZL)>0 AND REF((CZUO-MMZL),1)=0;BZHA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*10;BZHB:=SMA(BZHA,3,1);AAAA:=SMA(BZHB,3,1);ABB:=IF(AAAA>=REF(AAAA,1),AAAA,0);XG2:=AAAA=ABB AND AAAA<5.5 AND REF(ABB,1)=0 ANDAAAA>=REF(AAAA,1);XG:=XG2 AND XG1;FXH1:=(H-C-REF(C,1))/REF(C,1)*100;FXH2:=(H-REF(C,1)-REF(C,2))/REF(C,2)*100;FXH3:=(H-REF(C,2)-REF(C,3))/REF(C,3)*100;FXH4:=(H-REF(C,3)-REF(C,4))/REF(C,4)*100;FXH5:=(H-REF(C,4)-REF(C,5))/REF(C,5)*100;FXH6:=(H-REF(C,5)-REF(C,6))/REF(C,6)*100;FXH7:=(H-REF(C,6)-REF(C,7))/REF(C,7)*100;FXH8:=(H-REF(C,7)-REF(C,8))/REF(C,8)*100;FXH9:=(H-REF(C,8)-REF(C,9))/REF(C,9)*100;FXH10:=(H-REF(C,9)-REF(C,10))/REF(C,10)*100;FXD5:=(FXH1+FXH2+FXH3+FXH4+FXH5),;FXD10:=(FXH1+FXH2+FXH3+FXH4+FXH5+FXH6+FXH7+FXH8+FXH9+FXH1 0),;ZXFA5:=(((SUM(FXD5,3))*30)-MA(SUM(FXD5,3),45))/10,COLORYELLOW; ZXFA10:=(FXD10*30-(REF(SUM(FXD10,3),1)))/10,COLORMAGENTA;ZXFA2:=(FXD5*30-(REF(SUM(FXD5,3),1)))/10,COLORGREEN;ZXF:=(H-C-REF(C,1))/REF(C,1)*100;AAX1:=((SUM(ZXF,3))*30)-MA(SUM(ZXF,3),45),COLORWHITE;AAX3:=ZXF*30-(REF(SUM(ZXF,3),1)),COLORCYAN;XH:=MA((ZXFA10+ZXFA2+ZXFA5+AAX1+AAX3)/5000,13),COLORMAGENTA; FL1:=(L-O-REF(O,1))/REF(O,1)*100;FL2:=(L-REF(O,1)-REF(O,2))/REF(O,2)*100;FL3:=(L-REF(O,2)-REF(O,3))/REF(O,3)*100;FL4:=(L-REF(O,3)-REF(O,4))/REF(O,4)*100;FL5:=(L-REF(O,4)-REF(O,5))/REF(O,5)*100;FL6:=(L-REF(O,5)-REF(O,6))/REF(O,6)*100;FL7:=(L-REF(O,6)-REF(O,7))/REF(O,7)*100;FL8:=(L-REF(O,7)-REF(O,8))/REF(O,8)*100;FL9:=(L-REF(O,8)-REF(O,9))/REF(O,9)*100;FL10:=(L-REF(O,9)-REF(O,10))/REF(O,10)*100;FDK5:=(FL1+FL2+FL3+FL4+FL5),;FDK10:=(FL1+FL2+FL3+FL4+FL5+FL6+FL7+FL8+FL9+FL10),;ZFAK5:=(((SUM(FDK5,3))*30)-MA(SUM(FDK5,3),45))/10,COLORYELLOW; ZFAK10:=(FDK10*30-(REF(SUM(FDK10,3),1)))/10,COLORMAGENTA;ZFAK2:=(FDK5*30-(REF(SUM(FDK5,3),1)))/10,COLORGREEN;ZFK:=(L-O-REF(O,1))/REF(O,1)*100;AAK1:=((SUM(ZFK,3))*30)-MA(SUM(ZFK,3),45),COLORWHITE;AAK3:=ZFK*30-(REF(SUM(ZFK,3),1)),COLORCYAN;XL:=MA((ZFAK10+ZFAK2+ZFAK5+AAK1+AAK3)/5000,13),COLORCYAN; XHZ:=MA(XH-REF(XH,1),3)*100;XLZ:=-MA(XL-REF(XL,1),3)*100;波段高点:= HHV(HIGH,9);波段低点:= CLOSE;坑:=波段高点/波段低点;SS:=SUM(V/(60*4),FROMOPEN=1);YQ:=(XG=1 AND DQ<5&&XLZ<0.2&&XHZ>-0.3&&坑<1.08&&V<SS*1.05); DRAWTEXT(YQ,LOW*0.98,'跃起'),COLORYELLOW;趋线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD,NODRAW; ABA:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-30,趋线),1) AND CROSS(趋线,-30)) OR 趋线=-30;卖田:=IF(ABA,65,12),COLORYELLOW,LINETHICK2;BAB:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-20 AND 趋线>-25) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-20,趋线),1) AND CROSS(趋线,-20));见底:=IF(BAB,58,12),COLORRED,LINETHICK2;CAC:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-25 AND 趋线>-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-25,趋线),1) AND CROSS(趋线,-25));机会:=IF(CAC,40,12);STICKLINE(CROSS(-20,趋线),CLOSE,OPEN,3,0),COLORYELLOW; DRAWTEXT(CROSS(-20,趋线),LOW*0.92,'金马厩'),COLORYELLOW;TA:=BARSLAST(C>REF(C,1)*1.095 AND C=H);TJ:=V<=REF(V,TA)/8;TJ1:=MAX(C,O)/MIN(C,O)<1.005 AND H>MAX(C,O) AND L<MIN(C,O); XAG:=TJ AND COUNT(TJ,T)=1 AND L=LLV(L,10) AND TJ1;DRAWTEXT(XAG,L*0.91,'地量十字星'),COLORYELLOW;。
通达信指标公式源码自适应牛熊分界主图(有图)牛熊一目了然
通达信指标公式源码自适应牛熊分界主图(有图)牛熊一目了然自适应牛熊分界主图(有图)牛熊一目了然短期均线不能很好地屏蔽市场的噪声,往往产生虚假的进场信号;长期均线在判断趋势上一般比较准确,但是长期均线有着严重滞后的问题。
当价格沿一个方向快速移动时,短期的移动平均线是最好的。
当价格在横盘的过程中,长期移动平均线是最好的。
我们理想中的移动平均线是什么样子的呢?当价格无目标地移动时,它的反映会比较慢,像长期移动平均线;当价格有了快速变化的时候,它又能很快地跟上价格的走势,像短期移动平均线。
这样的移动平均线存在吗?当然存在!这就是考夫曼自适应均线(这是从网上找的,接下来的才是本人改编的)本人依据网上找的考夫曼自适应均线,在实战中不断摸索,确定了适合自己的参数。
同时,为了更加清晰显示当前市况,将市况划分为牛区和熊区,牛区持股,熊区观望。
均线(牛熊分界)红色代表牛市,绿色代表熊市,蓝色代表震荡市。
如此清晰,操作中还会被套吗?所以严格说来,这个指标应该是一个改编的指标,并不完全是原创,但由本人改编成这样的形式,在全网是独此一家的。
DIR2:=ABS(CLOSE-REF(CLOSE,30));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK1;牛熊分界:AMA2,STICK,COLORGRAY;AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),CO LORBLUE,LINETHICK1;AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),CO LORRED,LINETHICK1;{K线}{牛熊分界之上阳线}STICKLINE(C>=O AND C>牛熊分界,H,L,0,0),COLORRED;STICKLINE(C>=O AND C>牛熊分界,C,O,2.8,1),COLORRED;{牛熊分界之上阴线}STICKLINE(C<=O AND C>牛熊分界,C,O,2.8,0),COLORRED;STICKLINE(C<=O AND C>牛熊分界,H,L,0,0),COLORRED;{牛熊分界之下阳线}STICKLINE(C>=O AND C<牛熊分界,H,L,0,0),COLORGREEN;STICKLINE(C>=O AND C<牛熊分界,C,O,2.8,1),COLORGREEN;{牛熊分界之下阴线}STICKLINE(C<=O AND C<牛熊分界,H,L,0,0),COLORGREEN;STICKLINE(C<=O AND C<牛熊分界,C,O,2.8,0),COLORGREEN;{写字}XX1:=C>牛熊分界AND 牛熊分界>REF(牛熊分界,1);DRAWTEXT_FIX(ISLASTBAR AND XX1,0.1,0.01,0,'【牛区持股】'),COLORRED;XX2:=C<牛熊分界AND 牛熊分界<=REF(牛熊分界,1);DRAWTEXT_FIX(ISLASTBAR AND XX2,0.1,0.01,0,'【熊区观望】'),COLORGREEN;。
通达信指标公式源码关于成交量画矩形
关于成交量画矩形任何一个庄家启动总会在成交量上留下蜘丝马迹。
公式将五个交易日八个交易日十三个交易日用矩形框起来,最高点是对应的5日均量八日均量十三日均量高点,为什么用5 8 13 因为根据斐波那契数列,慢慢仔细看看你除了会发现堆量出现后的启动还会发现三根水平线位置变化将影响股价一切自己看吧指标不是万能的祝你投资愉快VM:=20;N:=20;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD =5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);VVOL:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 ||SETCODE=1),VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;V5:=MA(V,5);V8:=MA(V,8);V13:=MA(V,13);T5:=ALIGNRIGHT(MOD(CURRBARSCOUNT,5));T8:=ALIGNRIGHT(MOD(CURRBARSCOUNT,8));T13:=ALIGNRIGHT(MOD(CURRBARSCOUNT,13));TA5:=BARSLAST(CROSS(T5=0,0.5));TA8:=BARSLAST(CROSS(T8=0,0.5));TA13:=BARSLAST(CROSS(T13=0,0.5));VH5:=REFX(HHV(V5,TA5+1),BARSNEXT(T5=1));VH8:=REFX(HHV(V8,TA8+1),BARSNEXT(T8=1));VH13:=REFX(HHV(V13,TA13+1),BARSNEXT(T13=1));STICKLINE(T5=1,0,VH5,0,0),COLORYELLOW;STICKLINE(T5=0,0,VH5,0,0),COLORYELLOW;STICKLINE(TA5>0 AND TA5<4,VH5,VH5,8,0),COLORYELLOW;STICKLINE(T8=1,0,VH8,0,0),COLORLIMAGENTA;STICKLINE(T8=0,0,VH8,0,0),COLORLIMAGENTA;STICKLINE(TA8>0 AND TA8<7,VH8,VH8,8,0),COLORLIMAGENTA;STICKLINE(T13=1,0,VH13,0,0),COLORGREEN;STICKLINE(T13=0,0,VH13,0,0),COLORGREEN;STICKLINE(TA13>0 AND TA13<12,VH13,VH13,8,0),COLORGREEN;黄色框表示5个交易日最高5日均量处画线紫色框表示8个交易日最高8日均量处画线绿色框表示13个交易日最高13日均量处画线。
实战分析思路通达信指标公式源码
实战分析思路通达信指标公式源码通达信是中国股市中使用较为广泛的一种技术分析软件。
该软件提供了丰富的指标工具,包括均线、MACD、KDJ等等。
对于想要实战分析的投资者,了解这些指标的计算公式是非常重要的。
下面将介绍一些常用指标的计算公式和通达信源码。
1.均线(MA)指标的计算公式如下:MA(n)=(C1+C2+…+Cn)/n其中,MA(n)表示平均线的值,C1、C2、Cn分别表示n个周期内的收盘价。
通达信源码如下:_MA:MA(CLOSE,N);上述代码表示计算周期为N的收盘价的均线。
2.MACD指标的计算公式如下:DIFF = EMA(short) - EMA(long)DEA=EMA(DIFF,M)MACD=(DIFF-DEA)*2其中,EMA表示指数移动平均线,DIFF表示快线与慢线的差值,DEA 为DIFF的M周期指数移动平均,MACD为DIFF与DEA的差值的两倍。
通达信源码如下:_DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);_DEA:EMA(_DIFF,M);_MACD:(_DIFF-_DEA)*2;上述代码表示计算DIFF、DEA和MACD三个指标。
3.KDJ指标的计算公式如下:RSV=(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100K=(1-a)*PREV.K+a*RSVD=(1-a)*PREV.D+a*KJ=3*K-2*D其中,RSV表示未成熟随机值,K、D、J分别表示K、D、J三条曲线的值,N为周期,a为平滑因子。
通达信源码如下:_RSV:(CLOSE-LOWEST(CLOSE,N))/(HIGHEST(CLOSE,N)-LOWEST(CLOSE,N))*100;_k1:(1-a)*REF(_k1,1)+a*_RSV;_d1:(1-a)*REF(_d1,1)+a*_k1;_j1:3*_k1-2*_d1;上述代码表示计算RSV、K、D和J四个指标。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码:MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主⼒:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF (MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF( MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
通达信指标公式源码分时主图指标
通达信指标公式源码分时主图指标通达信是一款流行的股票行情软件,拥有丰富的指标公式库。
下面是一些常见的通达信指标公式源码,这些公式可以用于绘制分时主图指标。
1.均线:均线是最常见的技术指标之一,它代表了一段时间内的平均价格。
通达信中绘制均线的公式如下:MA(N):N日均线MA(N,X):N日均线,显示为实线,X为线宽度具体实现如下:MA(N):REF(C,N)MA(N,X):MA(N)其中,C代表收盘价,N代表计算的天数,REF函数是通达信的内置函数,用于获取前N天的数据。
2.成交量:成交量是衡量市场活跃度的指标之一,可以使用以下公式绘制成交量:VOL:成交量具体实现如下:VOL:V其中,V代表成交量。
3.平均成交量:平均成交量是一种相对成交量指标,可以用来衡量一些时间段内股票成交量的相对活跃程度。
在通达信中,可以使用以下公式绘制平均成交量:MAVG(VOL,N):N日平均成交量具体实现如下:MAVG(VOL,N):MA(VOL,N)其中,N代表计算的天数。
4.布林线:布林线是一种用来衡量股票价格波动性的指标,它由三条线组成,分别是上轨线、中轨线和下轨线。
在通达信中,可以使用以下公式绘制布林线:BOLL(M,N):中轨线UB(M,N,K):上轨线LB(M,N,K):下轨线具体实现如下:BOLL(M,N):MA(C,N)UB(M,N,K):MA(C,N)+K*STDEV(C,N)LB(M,N,K):MA(C,N)-K*STDEV(C,N)其中,C代表收盘价,M代表计算的天数,N代表计算的天数,K是标准差系数。
5.相对强弱指标(RSI):RSI是一种相对强弱指标,用于衡量市场的超买超卖情况。
在通达信中,可以使用以下公式绘制RSI:RSI(N):N日相对强弱指标具体实现如下:RSI(N):RSI(C,N)其中,C代表收盘价,N代表计算的天数。
以上是通达信中常见的分时主图指标公式源码,可以根据需要进行相应的调整和修改。
通达信画矩形函数
通达信画矩形函数一、简介通达信是国内比较流行的股票分析软件,在其绘制K线图的基础上,还提供了画矩形的功能,方便用户进行技术分析。
本文将详细介绍通达信画矩形函数的使用方法。
二、函数原型通达信画矩形函数的原型如下:```cvoid DrawRect(int left, int top, int right, int bottom);```其中,left、top、right、bottom分别表示矩形左上角和右下角的坐标。
三、函数说明1. 功能DrawRect函数用于在通达信K线图上绘制矩形。
2. 参数说明left:矩形左上角横坐标,取值范围为0~n,其中n为K线图宽度减去1。
top:矩形左上角纵坐标,取值范围为0~m,其中m为K线图高度减去1。
right:矩形右下角横坐标,取值范围为0~n。
bottom:矩形右下角纵坐标,取值范围为0~m。
需要注意的是,left应小于right,top应小于bottom。
3. 返回值说明DrawRect函数没有返回值。
4. 使用示例以下代码演示了如何在通达信K线图上画一个左上角坐标为(10,10),右下角坐标为(20,20)的矩形:```c#include "stdafx.h"#include "windows.h"#include "tougu.h"int _tmain(int argc, _TCHAR* argv[]){InitTouGu();DrawRect(10, 10, 20, 20);EndTouGu();return 0;}```四、注意事项1. DrawRect函数只能在通达信K线图上绘制矩形,不能在其他窗口上绘制。
2. 绘制的矩形颜色与背景色相同,默认情况下是黑色。
3. 绘制的矩形不会自动清除,如果需要清除,可以重新绘制一个与原来重叠的矩形或者调用ClearAll函数清空K线图。
4. 在使用DrawRect函数时,应该根据实际需求选择合适的坐标进行绘制,并且需要保证left小于right,top小于bottom。
通达信指标公式源码最好用的主图指标
通达信指标公式源码最好用的主图指标通达信是一个非常受欢迎的股票分析软件,它提供了丰富的技术指标供投资者使用。
以下是一些通达信中常用的主图指标以及它们的源码。
1.移动平均线(MA):MA是一种常用的趋势指标,通过计算一段时间内的股价平均值来展示价格走势。
通达信中的MA指标源码如下:```MA(CLOSE,N):=MA(CLOSE,N);```其中,CLOSE表示收盘价,N表示计算的周期。
2.相对强弱指标(RSI):RSI是一种用于判断股票超买超卖情况的指标,通达信中的RSI指标源码如下:```RSI(CLOSE,N):=SMA(MAX(CLOSE-REF(CLOSE,1),0),N,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),N,1)*100;```其中,CLOSE表示收盘价,N表示计算的周期。
3.随机指标(KDJ):KDJ指标是一种通过计算最高价、最低价和收盘价的相对关系来判断超买超卖情况的指标,通达信中的KDJ指标源码如下:```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;```其中,CLOSE表示收盘价,LOW表示最低价,HIGH表示最高价,N、M1和M2表示计算的周期。
4.平均成交量(MAVOL):MAVOL是一种用于衡量成交量的指标,通达信中的MAVOL指标源码如下:```MA(CLCV,N):=MA(CLCV,N);```其中,CLCV表示成交量,N表示计算的周期。
5.动量指标(MTM):MTM是一种用于衡量价格变动速度的指标,通达信中的MTM指标源码如下:```MTM(CLOSE,N):=CLOSE-REF(CLOSE,N);```其中,CLOSE表示收盘价,N表示计算的周期。
以上是一些通达信中常用的主图指标及其源码。
这些指标可以帮助投资者分析股票的趋势、超买超卖情况、成交量以及价格变动速度等重要因素,从而作出更明智的投资决策。
通达信指标公式源码通达信一分钟主图画矩形
通达信一分钟主图画矩形从开盘一分钟开始,每20分钟在区间最高价最低价画矩形。
全天240分钟,共计十二个矩形每个矩形上面标注最高价,有没有用处?自己拿捏。
T:=IF(PERIOD=0,BARSLAST(DATE!=REF(DATE,1)),DRAWNULL);H1:=FINDHIGH(H,T=20,20,1);H2:=FINDHIGH(H,T=40,20,1);H3:=FINDHIGH(H,T=60,20,1);H4:=FINDHIGH(H,T=80,20,1);H5:=FINDHIGH(H,T=100,20,1);H6:=FINDHIGH(H,T=120,20,1);H7:=FINDHIGH(H,T=140,20,1);H8:=FINDHIGH(H,T=160,20,1);H9:=FINDHIGH(H,T=180,20,1);H10:=FINDHIGH(H,T=200,20,1);H11:=FINDHIGH(H,T=220,20,1);H12:=FINDHIGH(H,0,20,1);L1:=FINDLOW(L,T=20,20,1);L2:=FINDLOW(L,T=40,20,1);L3:=FINDLOW(L,T=60,20,1);L4:=FINDLOW(L,T=80,20,1);L5:=FINDLOW(L,T=100,20,1);L6:=FINDLOW(L,T=120,20,1);L7:=FINDLOW(L,T=140,20,1);L8:=FINDLOW(L,T=160,20,1);L9:=FINDLOW(L,T=180,20,1);L10:=FINDLOW(L,T=200,20,1);L11:=FINDLOW(L,T=220,20,1);L12:=FINDLOW(L,0,20,1);STICKLINE(BETWEEN(T,1,18) ANDCURRBARSCOUNT<=240,CONST(REF(H1,BARSLAST(T=19))),CONST(REF(H1,BARSLAST( T=19))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,1,18)ANDCURRBARSCOUNT<=240,CONST(REF(L1,BARSLAST(T=19))),CONST(REF(L1,BARSLAST( T=19))),6,0),COLORYELLOW;STICKLINE((T=0 OR T=19)ANDCURRBARSCOUNT<=240,CONST(REF(H1,BARSLAST(T=19))),CONST(REF(L1,BARSLAST( T=19))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,21,38)ANDCURRBARSCOUNT<=240,CONST(REF(H2,BARSLAST(T=39))),CONST(REF(H2,BARSLAST( T=39))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,21,38)ANDCURRBARSCOUNT<=240,CONST(REF(L2,BARSLAST(T=39))),CONST(REF(L2,BARSLAST(T=39))),6,0),COLORYELLOW;STICKLINE((T=20 OR T=39)ANDCURRBARSCOUNT<=240,CONST(REF(H2,BARSLAST(T=39))),CONST(REF(L2,BARSLAST( T=39))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,41,58)ANDCURRBARSCOUNT<=240,CONST(REF(H3,BARSLAST(T=59))),CONST(REF(H3,BARSLAST( T=59))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,41,58)ANDCURRBARSCOUNT<=240,CONST(REF(L3,BARSLAST(T=59))),CONST(REF(L3,BARSLAST( T=59))),6,0),COLORYELLOW;STICKLINE((T=40 OR T=59)ANDCURRBARSCOUNT<=240,CONST(REF(H3,BARSLAST(T=59))),CONST(REF(L3,BARSLAST( T=59))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,61,78)ANDCURRBARSCOUNT<=240,CONST(REF(H4,BARSLAST(T=79))),CONST(REF(H4,BARSLAST( T=79))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,61,78)ANDCURRBARSCOUNT<=240,CONST(REF(L4,BARSLAST(T=79))),CONST(REF(L4,BARSLAST( T=79))),6,0),COLORYELLOW;STICKLINE((T=60 OR T=79)ANDCURRBARSCOUNT<=240,CONST(REF(H4,BARSLAST(T=79))),CONST(REF(L4,BARSLAST( T=79))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,81,98)ANDCURRBARSCOUNT<=240,CONST(REF(H5,BARSLAST(T=99))),CONST(REF(H5,BARSLAST( T=99))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,81,98)ANDCURRBARSCOUNT<=240,CONST(REF(L5,BARSLAST(T=99))),CONST(REF(L5,BARSLAST( T=99))),6,0),COLORYELLOW;STICKLINE((T=80 OR T=99)ANDCURRBARSCOUNT<=240,CONST(REF(H5,BARSLAST(T=99))),CONST(REF(L5,BARSLAST( T=99))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,101,118)ANDCURRBARSCOUNT<=240,CONST(REF(H6,BARSLAST(T=119))),CONST(REF(H6,BARSLAS T(T=119))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,101,118)ANDCURRBARSCOUNT<=240,CONST(REF(L6,BARSLAST(T=119))),CONST(REF(L6,BARSLAST (T=119))),6,0),COLORYELLOW;STICKLINE((T=100 OR T=119)ANDCURRBARSCOUNT<=240,CONST(REF(H6,BARSLAST(T=119))),CONST(REF(L6,BARSLAST (T=119))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,121,138)ANDCURRBARSCOUNT<=240,CONST(REF(H7,BARSLAST(T=139))),CONST(REF(H7,BARSLAS T(T=139))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,121,138)ANDCURRBARSCOUNT<=240,CONST(REF(L7,BARSLAST(T=139))),CONST(REF(L7,BARSLAST (T=139))),6,0),COLORYELLOW;STICKLINE((T=120 OR T=139)ANDCURRBARSCOUNT<=240,CONST(REF(H7,BARSLAST(T=139))),CONST(REF(L7,BARSLAST (T=139))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,141,158)ANDCURRBARSCOUNT<=240,CONST(REF(H8,BARSLAST(T=159))),CONST(REF(H8,BARSLAS T(T=159))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,141,158)ANDCURRBARSCOUNT<=240,CONST(REF(L8,BARSLAST(T=159))),CONST(REF(L8,BARSLAST (T=159))),6,0),COLORYELLOW;STICKLINE((T=140 OR T=159)ANDCURRBARSCOUNT<=240,CONST(REF(H8,BARSLAST(T=159))),CONST(REF(L8,BARSLAST (T=159))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,161,178)ANDCURRBARSCOUNT<=240,CONST(REF(H9,BARSLAST(T=179))),CONST(REF(H9,BARSLAS T(T=179))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,161,178)ANDCURRBARSCOUNT<=240,CONST(REF(L9,BARSLAST(T=179))),CONST(REF(L9,BARSLAST (T=179))),6,0),COLORYELLOW;STICKLINE((T=160 OR T=179)ANDCURRBARSCOUNT<=240,CONST(REF(H9,BARSLAST(T=179))),CONST(REF(L9,BARSLAST (T=179))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,181,198)ANDCURRBARSCOUNT<=240,CONST(REF(H10,BARSLAST(T=199))),CONST(REF(H10,BARSL AST(T=199))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,181,198)ANDCURRBARSCOUNT<=240,CONST(REF(L10,BARSLAST(T=199))),CONST(REF(L10,BARSLA ST(T=199))),6,0),COLORYELLOW;STICKLINE((T=180 OR T=199)ANDCURRBARSCOUNT<=240,CONST(REF(H10,BARSLAST(T=199))),CONST(REF(L10,BARSLA ST(T=199))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,201,218)ANDCURRBARSCOUNT<=240,CONST(REF(H11,BARSLAST(T=219))),CONST(REF(H11,BARSL AST(T=219))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,201,218)ANDCURRBARSCOUNT<=240,CONST(REF(L11,BARSLAST(T=219))),CONST(REF(L11,BARSLA ST(T=219))),6,0),COLORYELLOW;STICKLINE((T=200 OR T=219)ANDCURRBARSCOUNT<=240,CONST(REF(H11,BARSLAST(T=219))),CONST(REF(L11,BARSLA ST(T=219))),0,0),COLORYELLOW;STICKLINE(BETWEEN(T,221,238)ANDCURRBARSCOUNT<=240,CONST(REF(H12,BARSLAST(T=239))),CONST(REF(H12,BARSL AST(T=239))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,221,238)ANDCURRBARSCOUNT<=240,CONST(REF(L12,BARSLAST(T=239))),CONST(REF(L12,BARSLA ST(T=239))),6,0),COLORYELLOW;STICKLINE((T=220 OR T=239)ANDCURRBARSCOUNT<=240,CONST(REF(H12,BARSLAST(T=239))),CONST(REF(L12,BARSLA ST(T=239))),0,0),COLORYELLOW;DRAWTEXT(T=0 ANDCURRBARSCOUNT<=240,CONST(REF(H1,BARSLAST(T=19)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H1,BARSLAST(T=19))),2)),'元'))COLORYELLOW; DRAWTEXT(T=20 ANDCURRBARSCOUNT<=240,CONST(REF(H2,BARSLAST(T=39)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H2,BARSLAST(T=39))),2)),'元'))COLORYELLOW; DRAWTEXT(T=40 ANDCURRBARSCOUNT<=240,CONST(REF(H3,BARSLAST(T=59)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H3,BARSLAST(T=59))),2)),'元'))COLORYELLOW; DRAWTEXT(T=60 ANDCURRBARSCOUNT<=240,CONST(REF(H4,BARSLAST(T=79)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H4,BARSLAST(T=79))),2)),'元'))COLORYELLOW; DRAWTEXT(T=80 ANDCURRBARSCOUNT<=240,CONST(REF(H5,BARSLAST(T=99)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H5,BARSLAST(T=99))),2)),'元'))COLORYELLOW; DRAWTEXT(T=100 ANDCURRBARSCOUNT<=240,CONST(REF(H6,BARSLAST(T=119)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H6,BARSLAST(T=119))),2)),'元'))COLORYELLOW; DRAWTEXT(T=120 ANDCURRBARSCOUNT<=240,CONST(REF(H7,BARSLAST(T=139)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H7,BARSLAST(T=139))),2)),'元'))COLORYELLOW; DRAWTEXT(T=140 ANDCURRBARSCOUNT<=240,CONST(REF(H8,BARSLAST(T=159)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H8,BARSLAST(T=159))),2)),'元'))COLORYELLOW; DRAWTEXT(T=160 ANDCURRBARSCOUNT<=240,CONST(REF(H9,BARSLAST(T=179)))*1.003,STRCAT(STRCAT('最高价:',VAR2STR(CONST(REF(H9,BARSLAST(T=179))),2)),'元'))COLORYELLOW; DRAWTEXT(T=180 ANDCURRBARSCOUNT<=240,CONST(REF(H10,BARSLAST(T=199)))*1.003,STRCAT(STRCAT( '最高价:',VAR2STR(CONST(REF(H10,BARSLAST(T=199))),2)),'元'))COLORYELLOW; DRAWTEXT(T=200 ANDCURRBARSCOUNT<=240,CONST(REF(H11,BARSLAST(T=219)))*1.003,STRCAT(STRCAT( '最高价:',VAR2STR(CONST(REF(H11,BARSLAST(T=219))),2)),'元'))COLORYELLOW; DRAWTEXT(T=220 ANDCURRBARSCOUNT<=240,CONST(REF(H12,BARSLAST(T=239)))*1.003,STRCAT(STRCAT( '最高价:',VAR2STR(CONST(REF(H12,BARSLAST(T=239))),2)),'元'))COLORYELLOW;。
通达信经典分时主图 源码指标公式
DRAWGBK(O>=0,RGB(60,35,0),RGB(0,60,60),0,'背景图',0),LINETHICK2;{========================额外==========================} Z1:=STRCAT(DYBLOCK,' ');Z2:=STRCAT(Z1,HYBLOCK);Z3:=STRCAT(Z2,' ');Z4:=STRCAT(Z3,GNBLOCK);Z5:=STRCAT(Z4,' ');Z6:=STRCAT(Z5,FGBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0,0.14,0,STRCAT('概念: ',GNBLOCK)),COLORWHITE;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);突破:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL); STICKLINE(A1X>=0,多方,突破,0,0),COLOR000099;STICKLINE(A1X<0,空方,突破,0,0),COLOR00CC66;最新:CLOSE,LINETHICK1,COLORWHITE;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌▼',CON2STR(最新,2))),COLOR00FF00;DRAWTEXT_FIX(1,0.880,1-0.97,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.940,1-0.97,0,HYBLOCK),COLORYELLOW;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;DXJP:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100;FSZX:=(EMA(DXJP,3)-50)*2,COLORGRAY;BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)) )/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU))) ));DRAWICON(FSZX<=-95,C,38);DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),C,'板'),COLORCYAN; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),C,'追'),COLORYELLOW;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWICON(LONGCROSS(支撑,C,2),C,5);AYGB1:=(DVOL/C)/2,NODRAW;AYGB2:=SUM(IF(AYGB1>100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB3:=SUM(IF(AYGB1>100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB4:=SUM(IF(AYGB1<100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB5:=SUM(IF(AYGB1<100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB6:=AYGB2+AYGB3+AYGB4+AYGB5;机买:=(AYGB2/AYGB6)*100-100,LINETHICK1,COLORRED;机卖:=(AYGB3/AYGB6)*100-100,LINETHICK1,COLORGREEN;主力差:=机买-机卖;LQH:=主力差>0 AND REF(主力差,1)<=0;DRAWICON(LQH,C,25);JJXX:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM( AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;JJXXH:=(JJXX*1.007 ),COLORFF6600;FFLL:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;HHPP:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)< 1;HHZZ:=HHPP AND FFLL AND (C>JJXXH);TTPP2:=FILTER(HHZZ,100);DRAWICON(TTPP2,C,26);ZS:=DYNAINFO(3);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF;DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了};R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2;DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;{涨停2}AAZ:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AAZ+1);VV:=REF(HHV(V,0),AAZ+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF; DRAWICON(涨停2,RC-0.06,13);A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03; DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;均价5:AMOUNT/VOL/100,NODRAW;假阴0:=O>C AND 均价5>REF(C,1);DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8; STICKLINE(假阴0,O,C,1,0),COLORRED;时间N:=TIME=100000;NN:=BARSLAST(时间N),COLOR808080;常数N:CONST(IF(NN=0,C,REF(C,N))),COLOR004848,DOTLINE;。
通达信画矩形公式
通达信画矩形公式通达信是目前市场上最为广泛使用的股票分析软件,拥有众多功能和丰富的图表分析功能,可以帮助投资者做出明智的投资决定。
其中最重要的功能之一便是通达信画矩形公式,它可以帮助投资者发现未来股市的发展趋势,并帮助他们做出有效的投资策略。
通达信画矩形公式的特点通达信画矩形公式的最大特点是能够抓取市场趋势,即给出未来股市发展趋势的概率。
有时它也可以作为判断股市是否在调整和反转阶段的依据。
此外,通达信画矩形公式也可以给出支撑位和阻力位,这可以帮助投资者更清晰地了解市场的发展情况,从而做出响应的投资决定。
通达信画矩形公式的工作原理通达信画矩形公式的基本思想是从市场走势中找出价格波动趋势,从而推断出市场的未来走势。
通常来说,这个公式的基本原理是:当价格到达一定水平时,它将形成一个“矩形”形态,表明价格将在此水平处停留一段时间,然后开始向前突破。
另一方面,当价格波动幅度达到一定水平时,也就是它突然出现原来尚未存在的反转趋势,此时又能够形成一个“矩形”形态。
而在这个“矩形”形态出现之前,就可以通过技术分析预测出股市的未来发展趋势。
总的来说,通达信画矩形公式的工作原理是通过创建价格趋势,以及分析价格变动,从而预测股市的未来走势。
通达信画矩形公式的使用使用通达信画矩形公式的过程很简单,首先可以找出价格趋势,判断出它是向上趋势还是向下趋势。
接着,可以在股票图形中找出“矩形”形状,判断此时股票是否进入了调整阶段,以及是否存在反转趋势。
若股票向上突破了此前的支撑位,就可以判断股票的价格将会持续上升,如果股票向下突破了前面的阻力位,则说明股票价格将会持续下降。
通过通达信画矩形公式,投资者可以更好地把握股市走势,发现投资机会,从而做出更明智的投资决定。
总结通达信画矩形公式是一种能够帮助投资者预测股市走势的有效方法,它可以帮助投资者找出价格趋势,判断出支撑位和阻力位,从而确定股市的未来发展趋势。
通过此方法,投资者可以更加清晰地了解股市的发展情况,从而做出更明智的投资决定。
最牛涨停板指标用实际操作来说话通达信指标公式源码
最牛涨停板指标用实际操作来说话通达信指标公式源码涨停板指标是指一种用来判断股票是否有涨停的技术指标。
在通达信软件中,有许多指标可以用来判断股票是否有涨停的可能性。
以下是其中几个指标的公式源码,并且附上了实际操作的说明。
1.涨停板连板指标涨停板连板指标是一种通过计算股票前几天的涨停板数量来判断当天是否有涨停的指标。
其公式源码如下:```N1:=4;//统计前N1天的股票连板数目CNT:=BARSLAST(CLOSE=REF(CLOSE,1),N1);//统计连板的次数```操作说明:当CNT大于2时,表示股票最近几天出现了连续两个或以上的涨停板,存在涨停可能性较高。
2.涨停板力度指标涨停板力度指标是一种通过计算股票当天涨停数量与跌停数量的比例来判断是否有涨停的指标。
其公式源码如下:```TDP:=BARSCOUNT((CLOSE-CLOSE[1])/CLOSE>0.09);//统计当天涨停的数量UDP:=BARSCOUNT((CLOSE-CLOSE[1])/CLOSE<-0.09);//统计当天跌停的数量RATIO:=(TDP-UDP)/(TDP+UDP);//计算涨停与跌停的比例```操作说明:当RATIO大于0.5时,表示股票当天涨停数量明显多于跌停数量,存在涨停的可能性较高。
3.涨停板炸板指标涨停板炸板指标是指通过计算股票当天开盘价与前一交易日收盘价的比例来判断股票是否有涨停的指标。
其公式源码如下:```R:=HIGH[1]/CLOSE[1];//计算开盘价与前一交易日收盘价的比例```操作说明:当R大于1.09时,表示股票当天开盘价涨幅超过9%,存在涨停的可能性较高。
以上只是通达信软件中的几个涨停板指标,投资者在进行实际操作时,应该综合考虑多个指标,并结合其他技术分析方法来进行判断和决策。
同时,涨停板是市场中的特殊现象,存在一定的风险,投资者应谨慎对待。
通达信指标公式源码通达信五分钟周期趋势矩形
通达信五分钟周期趋势矩形A:=BARSLAST(DATE!=REF(DATE,1))+1;T:=IF(PERIOD=1 ANDCURRBARSCOUNT<=96,BARSLAST(CURRBARSCOUNT=CONST(A+REF(A,A+1)+1)),DRA WNULL);H1:=FINDHIGH(H,T=8,8,1);H2:=FINDHIGH(H,T=16,8,1);H3:=FINDHIGH(H,T=24,8,1);H4:=FINDHIGH(H,T=32,8,1);H5:=FINDHIGH(H,T=40,8,1);H6:=FINDHIGH(H,T=48,8,1);H7:=FINDHIGH(H,T=56,8,1);H8:=FINDHIGH(H,T=64,8,1);H9:=FINDHIGH(H,T=72,8,1);H10:=FINDHIGH(H,T=80,8,1);H11:=FINDHIGH(H,T=88,8,1);H12:=FINDHIGH(H,0,8,1);L1:=FINDLOW(L,T=8,8,1);L2:=FINDLOW(L,T=16,8,1);L3:=FINDLOW(L,T=24,8,1);L4:=FINDLOW(L,T=32,8,1);L5:=FINDLOW(L,T=40,8,1);L6:=FINDLOW(L,T=48,8,1);L7:=FINDLOW(L,T=56,8,1);L8:=FINDLOW(L,T=64,8,1);L9:=FINDLOW(L,T=72,8,1);L10:=FINDLOW(L,T=80,8,1);L11:=FINDLOW(L,T=88,8,1);L12:=FINDLOW(L,0,8,1);STICKLINE(BETWEEN(T,1,6),CONST(REF(H1,BARSLAST(T=8))),CONST(REF(H1,BARSLAS T(T=8))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,1,6),CONST(REF(L1,BARSLAST(T=8))),CONST(REF(L1,BARSLAS T(T=8))),6,0),COLORYELLOW;STICKLINE(T=0 ORT=7,CONST(REF(H1,BARSLAST(T=8))),CONST(REF(L1,BARSLAST(T=8))),0,0),COLORYE LLOW;STICKLINE(BETWEEN(T,9,14),CONST(REF(H2,BARSLAST(T=16))),CONST(REF(H2,BARSL AST(T=16))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,9,14),CONST(REF(L2,BARSLAST(T=16))),CONST(REF(L2,BARSL AST(T=16))),6,0),COLORYELLOW;STICKLINE(T=8 ORT=15,CONST(REF(H2,BARSLAST(T=16))),CONST(REF(L2,BARSLAST(T=16))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,17,22),CONST(REF(H3,BARSLAST(T=24))),CONST(REF(H3,BARSSTICKLINE(BETWEEN(T,17,22),CONST(REF(L3,BARSLAST(T=24))),CONST(REF(L3,BARS LAST(T=24))),6,0),COLORYELLOW;STICKLINE(T=16 ORT=23,CONST(REF(H3,BARSLAST(T=24))),CONST(REF(L3,BARSLAST(T=24))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,25,30),CONST(REF(H4,BARSLAST(T=32))),CONST(REF(H4,BARS LAST(T=32))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,25,30),CONST(REF(L4,BARSLAST(T=32))),CONST(REF(L4,BARS LAST(T=32))),6,0),COLORYELLOW;STICKLINE(T=24 ORT=31,CONST(REF(H4,BARSLAST(T=32))),CONST(REF(L4,BARSLAST(T=32))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,33,38),CONST(REF(H5,BARSLAST(T=40))),CONST(REF(H5,BARS LAST(T=40))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,33,38),CONST(REF(L5,BARSLAST(T=40))),CONST(REF(L5,BARS LAST(T=40))),6,0),COLORYELLOW;STICKLINE(T=32 ORT=39,CONST(REF(H5,BARSLAST(T=40))),CONST(REF(L5,BARSLAST(T=40))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,41,46),CONST(REF(H6,BARSLAST(T=48))),CONST(REF(H6,BARS LAST(T=48))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,41,46),CONST(REF(L6,BARSLAST(T=48))),CONST(REF(L6,BARS LAST(T=48))),6,0),COLORYELLOW;STICKLINE(T=40 ORT=47,CONST(REF(H6,BARSLAST(T=48))),CONST(REF(L6,BARSLAST(T=48))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,49,54),CONST(REF(H7,BARSLAST(T=56))),CONST(REF(H7,BARS LAST(T=56))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,49,54),CONST(REF(L7,BARSLAST(T=56))),CONST(REF(L7,BARS LAST(T=56))),6,0),COLORYELLOW;STICKLINE(T=48 ORT=55,CONST(REF(H7,BARSLAST(T=56))),CONST(REF(L7,BARSLAST(T=56))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,57,62),CONST(REF(H8,BARSLAST(T=64))),CONST(REF(H8,BARS LAST(T=64))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,57,62),CONST(REF(L8,BARSLAST(T=64))),CONST(REF(L8,BARS LAST(T=64))),6,0),COLORYELLOW;STICKLINE(T=56 ORT=63,CONST(REF(H8,BARSLAST(T=64))),CONST(REF(L8,BARSLAST(T=64))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,65,70),CONST(REF(H9,BARSLAST(T=72))),CONST(REF(H9,BARS LAST(T=72))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,65,70),CONST(REF(L9,BARSLAST(T=72))),CONST(REF(L9,BARSSTICKLINE(T=64 ORT=71,CONST(REF(H9,BARSLAST(T=72))),CONST(REF(L9,BARSLAST(T=72))),0,0),COLO RYELLOW;STICKLINE(BETWEEN(T,73,78),CONST(REF(H10,BARSLAST(T=80))),CONST(REF(H10,BA RSLAST(T=80))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,73,78),CONST(REF(L10,BARSLAST(T=80))),CONST(REF(L10,BA RSLAST(T=80))),6,0),COLORYELLOW;STICKLINE(T=72 ORT=79,CONST(REF(H10,BARSLAST(T=80))),CONST(REF(L10,BARSLAST(T=80))),0,0),COL ORYELLOW;STICKLINE(BETWEEN(T,81,86),CONST(REF(H11,BARSLAST(T=88))),CONST(REF(H11,BA RSLAST(T=88))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,81,86),CONST(REF(L11,BARSLAST(T=88))),CONST(REF(L11,BA RSLAST(T=88))),6,0),COLORYELLOW;STICKLINE(T=80 ORT=87,CONST(REF(H11,BARSLAST(T=88))),CONST(REF(L11,BARSLAST(T=88))),0,0),COL ORYELLOW;STICKLINE(BETWEEN(T,89,94),CONST(REF(H12,BARSLAST(T=95))),CONST(REF(H12,BA RSLAST(T=95))),6,0),COLORYELLOW;STICKLINE(BETWEEN(T,89,94),CONST(REF(L12,BARSLAST(T=95))),CONST(REF(L12,BA RSLAST(T=95))),6,0),COLORYELLOW;STICKLINE(T=88 ORT=95,CONST(REF(H12,BARSLAST(T=95))),CONST(REF(L12,BARSLAST(T=95))),0,0),COL ORYELLOW;。
通达信指标公式源码 自动画线主图指标公式
N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4 ),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLORLIRED; 中枢低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLORLIGRE EN;{中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;} 趋势高:=PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;趋势低:=PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;{大折线}A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);D1:=FILTER(C1,10);{高点}A2:=REF(LOW,10)=LLV(LOW,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);D2:=FILTER(C2,10);{低点}E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT((D1 AND E1<E2)));H2:=D1 AND NOT((D2 AND E1>=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORMAGENTA,DOTLINE,LINETHICK1; DRAWLINE(HD,H,LD,L,0),COLORMAGENTA,DOTLINE,LINETHICK1;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L ),0),COLORWHITE,LINETHICK1;{趋势线}UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);DRAWLINE(XX,L,VV,L,1),COLORRED,LINETHICK2;UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);DRAWLINE(XX2,H,VV2,H,1),COLORGREEN,LINETHICK2;。
季线 月线 周线画矩形通达信指标公式源码
季线月线周线画矩形黄色虚线表示上涨周(阳周线)蓝色表示下降周(阴周线)红色虚线表示阳月绿色虚线表示阴月紫色实心线表示上涨季度白色实心框体表示下跌季度大体就是这些其余自己去观察WO:=O#WEEK;WC:=C#WEEK;WH:=H#WEEK;WL:=L#WEEK;T:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));T1:=CROSS(BACKSET(T=0,2),0.5);YO:=O#MONTH;YC:=C#MONTH;YH:=H#MONTH;YL:=L#MONTH;YT:=BARSLAST(MONTH!=REF(MONTH,1));YT1:=CROSS(BACKSET(YT=0,2),0.5);A0:=MOD(MONTH,3);JD:=BARSLAST(CROSS(A0,0.5));JT:=BARSLAST(JD<REF(JD,1));JT1:=CROSS(BACKSET(JT=0,2),0.5);JO:=O#SEASON;JC:=C#SEASON;JH:=H#SEASON;JL:=L#SEASON;{}STICKLINE(IF(ISLASTBAR,JT1=1,JC>=JO AND JT>0 ANDJT1=0 ),JH,JH,8,0),COLORLIMAGENTA;STICKLINE(IF(ISLASTBAR,JT1=1,JC>=JO AND JT>0 ANDJT1=0 ),JL,JL,8,0),COLORLIMAGENTA;STICKLINE(JC>=JO AND (JT=0 OR JT1=1 OR ISLASTBAR),JH,JL,0,0),COLORLIMAGENTA; STICKLINE(IF(ISLASTBAR,JT1=1,JC<JO AND JT>0 AND JT1=0),JH,JH,8,0),COLORWHITE; STICKLINE(IF(ISLASTBAR,JT1=1,JC<JO AND JT>0 AND JT1=0),JL,JL,8,0),COLORWHITE; STICKLINE(JC<JO AND (JT=0 OR JT1=1 OR ISLASTBAR),JH,JL,0,0),COLORWHITE; STICKLINE(IF(ISLASTBAR,T1=1,WC>=WO AND T>0 ANDT1=0 ),WH,WH,8,-1),COLORYELLOW;STICKLINE(IF(ISLASTBAR,T1=1,WC>=WO AND T>0 ANDT1=0 ),WL,WL,8,-1),COLORYELLOW;STICKLINE(WC>=WO AND (T=0 OR T1=1 OR ISLASTBAR),WH,WL,0,-1),COLORYELLOW; STICKLINE(IF(ISLASTBAR,T1=1,WC<WO AND T>0 ANDT1=0),WH,WH,8,-1),COLORBLUE;STICKLINE(IF(ISLASTBAR,T1=1,WC<WO AND T>0 AND T1=0),WL,WL,8,-1),COLORBLUE; STICKLINE(WC<WO AND (T=0 OR T1=1 OR ISLASTBAR),WH,WL,0,-1),COLORBLUE; STICKLINE(IF(ISLASTBAR,YT1=1,YC>=YO AND YT>0 ANDYT1=0 ),YH,YH,8,-1),COLORRED;STICKLINE(IF(ISLASTBAR,YT1=1,YC>=YO AND YT>0 ANDYT1=0 ),YL,YL,8,-1),COLORRED;STICKLINE(YC>=YO AND (YT=0 OR YT1=1 OR ISLASTBAR),YH,YL,0,-1),COLORRED; STICKLINE(IF(ISLASTBAR,YT1=1,YC<YO AND YT>0 ANDYT1=0),YH,YH,8,-1),COLORGREEN;STICKLINE(IF(ISLASTBAR,YT1=1,YC<YO AND YT>0 ANDYT1=0),YL,YL,8,-1),COLORGREEN;STICKLINE(YC<YO AND (YT=0 OR YT1=1 OR ISLASTBAR),YH,YL,0,-1),COLORGREEN;。
通达信?波浪矩阵主图指标公式源码
通达信波浪矩阵主图指标公式源码主图用法也比较简单,是对股价做了区域划分,比如有安全区,风险区域等,股价在哪个区域就做哪个区域的动作。
指标源码:N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);高区:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINET HICK2;低区:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LIN ETHICK2;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00F FFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF 00;高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FF FF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL),COLO R00FFFF;强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL),COLORFF00FF;突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL),COLOR00 00FF;警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL),COLO R00FFFF;压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL),COLO R00FF00;低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,CROSS DOT;低点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA, CROSSDOT;STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;DRAWBAND(高区,RGB(120,20,0),平衡,RGB(0,0,0));DRAWBAND(平衡,RGB(80,0,100),低区,RGB(0,0,0));DRAWBAND(高,RGB(100,100,0),压力,RGB(0,0,0));DRAWBAND(压力,RGB(0,80,0),警示,RGB(0,0,0));DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));STICKLINE(CURRBARSCOUNT=N,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR40808 0;STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0),COLORFF00FF;STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0),COLORFF00FF;STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0),COLORABABAB;STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0),COLOR00FFFF;STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFF80;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'【低吸区】--大胆买入'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=N/2+40,GD-KJ*0.25,'【拉升区】'),COLORRED;DRAWTEXT(CURRBARSCOUNT=N/2+40,DD+KJ*0.25,'【持股区】'),COLORYELLOW;第一防线:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4;第二防线:REFDATE(支撑,DATE),POINTDOT,COLORWHITE,LINETHICK4;DRAWKLINE(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(V OL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'启爆'),COLORCYAN;STICKLINE(启爆,C,O,3,1),COLORWHITE;STICKLINE(启爆,C,O,1,0),COLORGREEN;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
角度60:IF(TS>=0 AND低点+(差60度/天数横线)*TS<=高点,低点+(差60度/天数横线)*TS,DRAWNULL),COLORLIBLUE,DOTLINE;
差60度:=(高点-低点)*60/对角角度;
差45度:=(高点-低点)*45/对角角度;
差55度:=(高点-低点)*55/对角角度;
差50度:=(高点-低点)*50/对角角度;
差65度:=(高点-低点)*65/对角角度;
角度65:=IF(TS>=0 AND低点+(差65度/天数横线)*TS<=高点,低点+(差65度/天数横线)*TS,DRAWNULL),COLORLIBLUE,DOTLINE;
C2:=REF(C,1);
涨停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW;
实际操作最有帮助的画图矩形——当下适合每个分钟和周期使用
N:=30;
TS:=BARSLAST(L=LLV(L,N));
开始信号:=FILTERX(TS=0,BARSSINCE(C));
开始天数:=BARSLAST(开始信号);
天数横线:=CONST(开始天数);
低点:DRAWLINE(L=LLV(L,N),L,ISLASTBAR,REF(L,TS),1),COLOR00CC00;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
差:=(高点-低点)/天数横线;
收盘差:=CONST(C)-低点;
对角差:=高点-低点;
对角角度:ATAN((对角差/(对角差*((天数横线-1)/天数横线))-1)*100)*57.3,COLORFFFF00,NODRAW;
角度50:IF(TS>=0 AND低点+(差50度/天数横线)*TS<=高点,低点+(差50度/天数横线)*TS,DRAWNULL),COLORLIBLUE,DOTLINE;
角度55:IF(TS>=0 AND低点+(差55度/天数横线)*TS<=高点,低点+(差55度/天数横线)*TS,DRAWNULL),COLORLIBLUE,DOTLINE;
角度45:IF(TS>=0 AND低点+(差45度/天数横线)*TS<=高点,低点+(差45度/天数横线)*TS,DRAWNULL),COLORGREEN;
收盘角度:(收盘差*对角角度)/对角差,NODRAW;
收盘线:=IF(TS>=0 AND低点+(收盘差/天数横线)*TS<=高点,低点+(收盘差/天数横线)*TS,DRAWNULL);
高点:DRAWLINE(L=LLV(L,N),CONST(HHV(H),
TS),1),COLOR00CCCC;
STICKLINE(开始信号,L,CONST(HHV(H,天数横线)),0,0),COLOR00AA00;
STICKLINE(ISLASTBAR,低点,高点,0,0),COLOR00AA00;