以下是通达信精确,让你精确把握指标公式源码和截图
通达信精确买卖,让你精确把握波段指标公式源码:
VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
操盘线:SMA(VAR1,5,1),LINETHICK2,COLORRED;
线:SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;
买入航标:IF(CROSS(操盘线,趋势线)AND趋势线 25,50,0),LINETHICK2,COLORRED;
DRAWTEXT(买入航标 0,50,'买入'),LINETHICK1,COLORRED;
卖出时间:IF(CROSS(趋势线,操盘线)AND操盘线 70,80,100),COLORGREEN;
DRAWTEXT(卖出时间 100,80,'卖出'),LINETHICK1,COLOR00FF00;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;
撤:IF(V4 =0,V4,0),COLORBLUE;
主力进:IF(V4 =0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
进场:IF(VB =0,VB,0),COLORRED;
大盘资金撤走:IF(VB =0,VB,0),COLORGREEN;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线 =13,0,20,5,0),COLORCC9900;
AA:=(趋势线 =13)ANDFILTER((趋势线 =13),15);
DRAWTEXT(AA,30,'准备现金'),COLORCC9900;
买入股票:STICKLINE(趋势线 =13ANDV12 13,0,50,5,0),COLOR0099FF;
BB:=(趋势线 =13ANDV12 13)ANDFILTER((趋势线 =13ANDV12 13),10);
DRAWTEXT(BB,60,'买入股票'),COLOR0099FF;
卖临界:STICKLINE(趋势线 90AND趋势线 REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:FILTER(趋势线 90AND趋势线 REF(趋势线,1)AND主力进 REF(主力进,1),8);
DRAWTEXT(见顶清仓,90,''),COLORYELLOW;
CC:=(趋势线 =90ANDV12)ANDFILTER((趋势线 =90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线 13,0,30,10,0),COLORRED;
STICKLINE(大盘资金撤走AND趋势线 90,0,30,10,0),COLORGREEN;
STICKLINE(主力进AND趋势线 13,0,40,10,0),COLORFF00FF;
STICKLINE(主力撤AND趋势线 90,0,40,10,0),COLORBLUE;
DRAWGBKlast(C 0,strip(RGB(100,100,0),RGB(0,0,200),0));0,DOTLINE;
B1:=(HHV(H,8)-C)/(HHV(H,8)-LLV(LOW,8))*100-70;
B2:=SMA(B1,8,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6 60,B6-60,0),LINETHICK0;
PARTLINE(B7,(B7 REF(B7,1))-1,rgb(0,200,200),1,rgb(255,0,0)),LINETHICK2,LAYER0;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),4,0),COLOR0022FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),3,0),COLOR0055FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),2,0),COLOR0077FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),1,0),COLOR0099FF;
{小于零部分}
B8:=B6-60;
PARTLINE(B8,(B8 REF(B8,1))-1,rgb(0,255,0),1,rgb(255,0,0)),DOTLINE,LAYER7;
0,DOTLINE;
B1:=(HHV(H,8)-C)/(HHV(H,8)-LLV(LOW,8))*100-70;
B2:=SMA(B1,8,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6 60,B6-60,0),COLOR00FF00,LINETHICK2;
IF(B7 REF(B7,1),B7,DRAWNULL),COLOR0000FF,LINETHICK2;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),3,0),COLOR0022FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),2,0),COLOR0055FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),1,0),COLOR0077FF;
STICKLINE(REF(B7,1) B7,B7,REF(B7,1),0,0),COLOR0099FF;
{小于零部分}
B8:B6-60,COLOR00FF00,DOTLINE;
IF(B8 REF(B8,1),B8,DRAWNULL),COLOR00FF00,DOTLINE;
IF(B8 REF(B8,1),B8,DRAWNULL),COLOR0000FF,DOTLINE;
通达信精确买卖,让你精确把握波段指标公式截图