短线是银(通达信)几个实用公式合集
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
DRAWKLINE(INDEXH, INDEXO, INDEXL, INDEXC);
A:=(INDEXC);
MA(A,5),COLORWHITE;
MA(A,10),COLORYELLOW;
MA(A,20),COLORMAGENTA;
MA(A,60),COLORGREEN;
MA(A,120),COLORLIGRAY;
{大盘指数K线副图指标}
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:INDEXC,COLORWHITE,NODRAW;
±:INDEXC-REF(INDEXC,1),COLORLIGRAY,NODRAW;
沪深:"000300$CLOSE",NODRAW;
_±:"000300$CLOSE"-REF("000300$CLOSE",1),COLORLIGRAY,NODRAW;
五:MA(INDEXC,5),COLORWHITE;
十:MA(INDEXC,10),COLORYELLOW;
六十:MA(INDEXC,60),COLORGREEN;
一百二十:MA(INDEXC,120),COLORMAGENTA;
{上证指数K线副图指标}
DRAWKLINE("999999$H","999999$O","999999$L","999999$C");
上证:"999999$C",COLORWHITE,NODRAW;
_±:"999999$C"-REF("999999$C",1),COLORLIGRAY,NODRAW;
五:MA("999999$C",5),COLORWHITE;
十:MA("999999$C",10),COLORYELLOW;
二十:MA("999999$C",20),COLORMAGENTA;
六十:MA("999999$C",60),COLORGREEN;
通达信大盘指数K线副图指标
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:INDEXC,COLORWHITE,NODRAW;
±:INDEXC-REF(INDEXC,1),COLORLIGRAY,NODRAW;
沪深:"000300$CLOSE",NODRAW;
_±:"000300$CLOSE"-REF("000300$CLOSE",1),COLORLIGRAY,NODRAW;
量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORRED,NODRAW;
换手率:VOL/CAPITAL*100,COLORGREEN,NODRAW;
大盘指数:=INDEXC,NODRAW,COLORLIMAGENTA ;
涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;
跌家数:INDEXDEC,NODRAW,COLORGREEN;
MA1:MA(INDEXC,5),COLORMAGENTA,LINETHICK3;
MA2:MA(INDEXC,10),COLORYELLOW;
MA3:MA(INDEXC,60),COLORGREEN,LINETHICK3;
红绿灯指标公式:
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
绿灯行:C>A,COLORGREEN;
红灯停:C
黄灯观望:A>=C AND C>=B,COLORYELLOW ;
STICKLINE(C>A,0,2,8,0),COLORGREEN,LINETHICK2;
STICKLINE(C
STICKLINE(A>=C AND C>=B,0,2,8,0),COLORYELLOW,LINETHICK2;
冷暖气带公式
DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA;
MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1;
MA120:MA(CLOSE,120),COLORLIRED,LINETHICK1;
MA240:MA(CLOSE,240),COLORBLUE;
DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做记号}
DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号} DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号}
DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号}
DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做记号}
DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号}
DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}
DRAWICON(CROSS(MA120,MA60),MA120,2); {60日下穿120日做记号}
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★抄底') ,LINETHICK2,COLORRED;
STICKLINE(C<0.905*REF(C,1),C,O,5,0),COLORWHITE;
STICKLINE(C>1.095*REF(C,1),C,O,5,0),COLORYELLOW;
OBV公式
V A:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,V A),0);
MAOBV1:EMA(OBV,5);
MAOBV2:MA(OBV,30);
MAOBV3:MA(OBV,100);
芝麻量点公式
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK;
MA VOL1:MA(VOLUME,D1);
MA VOL2:MA(VOLUME,D2);
MA VOL3:MA(VOLUME,D3);
MA VOL4:MA(VOLUME,D4);
A1:=REF(CLOSE,1);
B1:=V B2:=MA(V,5)/2>V AND V>B1; STICKLINE(B2,V,0,2,0),COLORLIMAGENTA; STICKLINE(B1,V,0,2,0),COLORYELLOW; 倍 量:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NO DRAW,COLORRED; STICKLINE(倍量>=1,0,VOL,0.5,0),COLORRED;