当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:买卖一线牵,主升浪航班,顶底公式副图

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、买卖一线牵

一条红线引导买卖清仓,特意奉献给各位同学,请细细琢磨使用( 顶尖财经 股票学院: http://58188.com )

{买卖一线牵}
M:=55;N:=34;
LCCC:=REF(CLOSE,1);
RSII:=((SMA(MAX((CLOSE-LCCC),0),3,1)/SMA(ABS((CLOSE-LCCC)),3,1))*100);
VAR1:=IF(YEAR>=2038 AND MONTH>=1,1,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
AAAA:=IF(VAR8>100,100,VAR8)*VAR1,COLORRED;
RSVV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KKKK:=SMA(RSVV,3,1);
DDDD:=SMA(KKKK,3,1);
幸运线:90,COLORYELLOW;
风险线:15,DOTLINE,COLORCYAN;
清仓线:5,COLORGREEN;
操作线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORMAGENTA;
DRAWICON(CROSS(操作线,幸运线),90,1);
DRAWTEXT(CROSS(操作线,幸运线),92,'买入'),COLORRED;
DRAWICON(CROSS(操作线,风险线),15,2);
DRAWTEXT(CROSS(操作线,风险线),17,'卖出'),COLORGREEN;
DRAWICON(CROSS(操作线,清仓线) OR 操作线=清仓线,5,37);
DRAWTEXT(CROSS(操作线,清仓线) OR 操作线=清仓线,4,'清仓'),COLORYELLOW;


2、主升浪航班

{公式名称: 主升浪航班

公式描述: 
无参数
公式类型: 技术指标公式-未知
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:无
用法注释:无
公式源码:}
 
VAR1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
Q:DMA((2*CLOSE+LOW+HIGH)/4,VAR1),COLORMAGENTA,LINETHICK3;
VAR2:=CLOSE/Q;
VAR3:=MA(VAR2*(2*CLOSE+HIGH+LOW)/4,3);
VAR4:=(VAR3-Q)/Q/3;
VAR5:=VAR3-VAR4*VAR3;
J:IF(VAR5<=Q,Q,DRAWNULL),COLORCYAN,LINETHICK3;
A:VAR5,COLORYELLOW,LINETHICK2;
X:IF(VAR5<=Q,VAR5,DRAWNULL),COLORGREEN,LINETHICK2;
VAR6:=MA(HIGH/REF(CLOSE,1),13)*CLOSE;
VAR7:=MA(LOW/REF(CLOSE,1),13)*CLOSE;
VAR8:=FORCAST(CLOSE,3);
VAR9:=FORCAST(CLOSE,4);
VAR10:=FORCAST(CLOSE,5);
VAR11:=(VAR8+VAR9+VAR10)/3;
高点:REF(VAR6,1),COLORMAGENTA,LINETHICK0;
低点:REF(VAR7,1),COLORFF5500,LINETHICK0;
实际高点:HIGH,COLORRED,LINETHICK0;
实际低点:LOW,COLORGREEN,LINETHICK0;
明日高点:VAR6,COLORMAGENTA,LINETHICK0;
MA1:MA(CLOSE,5),COLORWHITE;
MA2:MA(CLOSE,38),COLORLIRED;
MA3:MA(CLOSE,48),COLORYELLOW;
MA4:MA(CLOSE,58),COLORBLUE;
MA5:MA(CLOSE,68),COLORGREEN;
MA6:MA(CLOSE,78),COLORCYAN;
VAR12:=IF(CURRBARSCOUNT<20 AND CLOSE<100,CONST(LLV(LOW,20)),DRAWNULL);
VAR13:=IF(CURRBARSCOUNT<20 AND CLOSE<100,CONST(HHV(CLOSE,20)),DRAWNULL);
价格还低:VAR12+0.1;
DRAWICON(MA(LOW,20)/价格还低<1.02 AND LOW/价格还低<1.02,价格还低,26);
VAR14:=STRCAT(4,STRCAT(STRCAT(STRCAT(5,HYBLOCK),STRCAT(6,DYBLOCK)),STRCAT(7,GNBLOCK)));
VAR15:=STRCAT(STRCAT(8,CON2STR(TOTALCAPITAL/1000000,2)),9);
VAR16:=STRCAT(STRCAT(10,CON2STR(CAPITAL/1000000,2)),9);
VAR17:=STRCAT(STRCAT(11,CON2STR(CAPITAL/TOTALCAPITAL*100,2)),12);
VAR18:=STRCAT(STRCAT(13,CON2STR(CAPITAL/1000000*CLOSE,2)),9);
VAR19:=STRCAT(14,CON2STR(HHV((BARSCOUNT(CLOSE)=0)*(DATE+19000000),0),0));
VAR20:=STRCAT(15,STRCAT(STRCAT(STRCAT(STRCAT(VAR15,VAR16),VAR17),VAR18),VAR19));
VAR21:=STRCAT(16,CON2STR(CLOSE/FINANCE(33),2));
VAR22:=STRCAT(17,CON2STR(CLOSE/(FINANCE(20)/FINANCE(1)),2));
VAR23:=STRCAT(18,CON2STR(CLOSE/FINANCE(34),2));
VAR24:=STRCAT(19,CON2STR(FINANCE(33)/FINANCE(34)*100,2));
VAR25:=STRCAT(20,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
VAR26:=STRCAT(21,CON2STR(FINANCE(30)/FINANCE(20)*100,2));
VAR27:=STRCAT(22,CON2STR(FINANCE(23)/FINANCE(20)*100,2));
VAR28:=STRCAT(23,STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(VAR21,VAR22),VAR23),VAR24),VAR25),VAR26),VAR27));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,VAR14),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.09,0,VAR20),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.18,0,VAR28),COLORMAGENTA;
VAR29:=STRCAT(HYBLOCK,24);
VAR30:=STRCAT(VAR29,FGBLOCK);
VAR31:=STRCAT(VAR30,DYBLOCK);
VAR32:=STRCAT(VAR31,24);
DRAWTEXT_FIX(ISLASTBAR,0.005,0.28,0,STRCAT(VAR32,GNBLOCK)),COLORMAGENTA;
拉升成本:COST(75),COLORRED;



3、顶底公式副图

80,COLOR996699,DOTLINE;80,COLOR996699,DOTLINE;
20,COLORGREEN,DOTLINE;20,COLORGREEN,DOTLINE;
底:10,COLORCC6633,LINETHICK2;
90,COLOR9966FF,LINETHICK2;90,COLOR9966FF,LINETHICK2;
50,COLORWHITE,DOTLINE;50,COLORWHITE,DOTLINE;
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);
HC60跌幅:1-(C/HHV(C,60)),NODRAW;
长期线:A+100,COLORBLUE,LINETHICK2;
短期线:B+100,COLORRED;
中期线:D+100,COLORYELLOW,LINETHICK2;
见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));
顶部区域:(中期线) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4,COLORRED;
顶部:=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;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;
短期超跌底部:(中期线<10 AND CROSS(短期线,中期线)),COLORYELLOW,NODRAW;
DRAWICON(短期超跌底部,中期线,5);
低吸:HC60跌幅>0.20 AND 短期线<10 AND 中期线<10 AND ABS(C-O)/O<0.01,COLORWHITE,NODRAW;
DRAWTEXT(低吸,28,'低吸'),COLORWHITE;DRAWTEXT(低吸,28,'低吸'),COLORWHITE;

上一篇:通达信源码:红线精准买卖,半仓进,机构操盘线

下一篇:通达信源码:ZIG4 高点按最高价低点按最低价当价格变化量超过N%时转向