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

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

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

1、红线精准买卖

正所谓大道至简,公式也是如此,简单、实用就好,在不使用明显未来函数的基础上尽量精准。我修改了一个老指标,删繁就简,保留精华,一条红线引导买卖清仓,用了一年,自我感觉良好,特意奉献给各位同学,请细细琢磨使用。如果觉得还行,别忘了给个赞噢。
 
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,0,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);
DRAWICON(CROSS(操作线,风险线),15,2);
DRAWICON(CROSS(操作线,清仓线) OR 操作线=清仓线,5,37);




2、半仓进

半仓进,这公式,牛市熊市都效果明显( 顶尖财经 股票学院: http://58188.com )

YS1:=(HIGH+LOW+CLOSE*2)/4;
{半仓进}
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
涨:=EMA(RK6,10)+100/2-5;
跌:=EMA(涨,4);
VAR11:=SUMBARS(VOL,FINANCE(7)*100);
VAR22:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR3:=(CLOSE-VAR22)/VAR22*100;
VAR4:=HHV(VAR3,VAR11);
VAR5:=LLV(VAR3,VAR11);
VAR6:=(VAR3-VAR5)/(VAR4-VAR5)*100;
K:=SMA(VAR6,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
MA1:=MA(J,3);
注意进半仓:FILTER(J>MA1 AND J<=3,5)=1 AND 跌<0;



3、机构操盘线 短趋势 中趋势 黄金坑 起爆 飞龙在天 抓板

{机构操盘线V2}
 
限时日:=1;
限时:=1;
AA9:=C;
AAA:=REF(C,2),COLORGREEN;
AAA2:=MA(C,5);
AAA3:=MA(C,26);
AAA1:=MA((3*H+C)/4,2),COLORLICYAN;
NOTEXT1:=FORCAST(EMA(AAA,1),7),COLORGREEN;
 
短趋势:FORCAST(EMA(AA9,16),7)*限时,COLOR00FF00,LINETHICK6;
中趋势:FORCAST(EMA(AA9,55),7)*限时,DOTLINE,COLORFFFF00;
 
NOTEXT5:IF(AAA2>短趋势 OR C>短趋势,短趋势,DRAWNULL)*限时,COLOR0000FF,LINETHICK6;
NOTEXT6:IF(短趋势>=中趋势,中趋势,DRAWNULL)*限时,DOTLINE,COLOR0000FF;
 
ZJC1:=AAA2>短趋势 OR C>短趋势;
ZJC2:=短趋势>=中趋势;
ZJC3:=ZJC1 AND ZJC2;
{出水芙蓉}
T1:=BARSLAST(L=LLV(L,13));
T2:=BARSLAST(CROSS(短趋势,中趋势));
 
X1:=C/REF(C,急涨周期)-1>=急涨幅度/100 ;
X2:=REF(C,底部周期+急涨周期+急跌周期)/REF(C,急涨周期+底部周期)-1<=急跌幅度/100 AND BARSCOUNT(C)>60;
黄金坑:X1 AND X2,NODRAW;
D:=FILTER(黄金坑,10);
STICKLINE(黄金坑 AND D,O,C,3,0),COLORMAGENTA;
 
 
 
STICKLINE(黄金坑 AND D,L,H,3,1)*限时,LINETHICK2,COLORFF00FF;
STICKLINE(黄金坑 AND D,O,C,3,1)*限时,LINETHICK2,COLORFF00FF;
DRAWTEXT(黄金坑 AND D,L,'黄金坑')*限时,COLORFF00FF;
 
 
{起爆}
MA89:=MA(CLOSE,13);
MA144:=MA(CLOSE,21);
MA233:=MA(CLOSE,34); 
MA377:=MA(CLOSE,55); 
上穿:=CROSS(C,MA377)+CROSS(C,MA89)+CROSS(C,MA144)+CROSS(C,MA233);
 
起爆:(C>O AND 上穿>2 AND C/REF(C,1)-1>0.049 AND C/REF(C,1)-1<0.097 AND C>MAX(MA89,MAX(MA144,MAX(MA233,MA377))))*限时 AND C>MAX(MA(C,144),MA(C,233)),NODRAW,COLOR4080FF;
STICKLINE(起爆,O,C,3,0)*限时,COLOR4080FF;
DRAWTEXT(起爆,H*1.01,'起爆')*限时,COLOR4080FF;
 
 
{飞龙在天}
飞龙在天:(HHV(H,100)/LLV(L,100)-1<=30/100 AND CROSS(C,REF(HHV(H,100),1)) AND C/REF(C,1)-1>=0.049 AND BARSCOUNT(C)>50)*限时,NODRAW,COLORBFCB2E;
STICKLINE(飞龙在天,O,C,3,0)*限时,COLORBFCB2E;
DRAWTEXT(飞龙在天,H*1.02,'飞龙在天1')*限时,COLORBFCB2E;
 
 
 
ZB:=(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 && CLOSE/OPEN>1.03 && CLOSE>REF(CLOSE,2) AND C/REF(C,1)>1.0572)*限时;
DRAWTEXT(ZB AND ZJC3 ,L*0.99,'抓板')*限时,COLORAFFF00;
抓板:(ZB AND ZJC3)*限时,NODRAW,COLOR00FFFF;
 
STICKLINE(ZB AND ZJC3 ,REF(C,1)*1.05,C,3,0)*限时,COLORYELLOW;
STICKLINE(ZB AND ZJC3 , O , REF(C,1)*1.05 , 3 , 0 )*限时,COLORRED;
 
DRAWTEXT(CROSS(DATE,限时日) OR DATE=限时日,H*1.08,'本指标已过时效'),COLOR00FFFF;

上一篇:通达信源码:金波段,主力资金,黄金分割坐标线

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