当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:波段利器,波段时机,趋势波段,主图指标
软件名称:[B]波段利器,波段时机,趋势波段,主图指标[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:分享版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2024-06-10 00:15:29
软件简介:
波段利器,波段时机,趋势波段,主图指标
黄箭头是不错的介入点。
源码分享:
SHORT:=12;
LONG:=26;
M:=12;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
DIF转折点:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORGREEN,POINTDOT;
金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
变格:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
顶参考:=IF(变格>=DIF转折点,变格,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
TY:=H;
上拐:IF(DIF转折点< 变格,DIF转折点,DRAWNULL),COLORRED,LINETHICK4;
下拐:IF(DIF转折点>=变格,DIF转折点,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;
ZJ:=上拐,COLOR0000FF;
HY:=金死叉价,COLORFF00FF;
IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;
IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2,NODRAW;
IF(HY< REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NODRAW;
STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;
STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;
STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;
STICKLINE(CLOSE< ZJ,H,L,0,0),COLORYELLOW;
STICKLINE(CLOSE< ZJ,O,C,2.5,0),COLORYELLOW;
STICKLINE(C< HY AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C< HY AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C< HY AND C>O,O,C,2.8,1),COLORCYAN;
STICKLINE(C< HY AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C< HY AND C<=O,O,C,2.8,0),COLORCYAN;
HD0:=CROSS(DIF,DEA);
买入准备:DRAWICON(CROSS(变格,DIF转折点),上拐,34);
卖出准备:DRAWICON(CROSS(DIF转折点,变格),下拐,35);
SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),GNBLOCK),ZDBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN;
[url=http://www.70822.com/soft/sort013/sort05/down-173892.html]波段利器,波段时机,趋势波段,主图指标[/url]