股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信乘风操盘主副图指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 11:11:33

以下是通达信乘风操盘主副图指标

{乘风买卖主图}

DRAWGBK(C>0,RGB(80,60,60),RGB(50,100,200),0,' ',0);


BOLL2:MA(CLOSE,N/1.5),LINETHICK2,COLORAA00AA;
UB2:BOLL2+2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00;
LB2:BOLL2-2*STD(CLOSE,N/1.5),LINETHICK1,COLOR00FF00;


BOLL:MA(CLOSE,N/3),LINETHICK1,COLOR00DDFF;
UB:BOLL+2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000;
LB:BOLL-2*STD(CLOSE,N/3),LINETHICK1,DOTLINE,COLORFF0000;

ZMA5:MA.MA1#DAY,COLOR0000FF,NODRAW;


STICKLINE(H>=MA(C,20)+2*STD(C,20) AND H/BOLL2>=1.1,H*1.005,L*0.995,5,1),COLOR00FF00;
STICKLINE(L<MA(C,20)-2*STD(C,20),H*1.005,L*0.995,5,1),COLOR00FFFF;
STICKLINE(H>=MA(C,10)+2*STD(C,10) AND H/BOLL2>=1.1,H,L,4.5,0),COLOR00AA00;
STICKLINE(L<MA(C,10)-2*STD(C,10),H,L,4.5,0),COLOR000033;

STICKLINE(C<O,H,L,0.02,0),COLOR999000;
STICKLINE(C>=O,H,L,0.02,0),COLOR000088;
STICKLINE(C<O,C,O,3.2,0),COLOR777000;
STICKLINE(C<O,C,O,2.1,0),COLOR888000;
STICKLINE(C<O,C,O,1,0),COLOR999000;
STICKLINE(C>=O,C,O,3.2,0),COLOR000066;
STICKLINE(C>=O,C,O,2.1,0),COLOR000077;
STICKLINE(C>=O,C,O,1,0),COLOR000088;

{走强}
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,H,L,0.02,0),COLORFFE600;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,H,L,0.02,0),COLOR0000FF;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,3.2,0),COLORDDC400;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,2.1,0),COLOREED500;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C<O,C,O,1,0),COLORFFE600;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,3.2,0),COLOR0000DD;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,2.1,0),COLOR0000EE;
STICKLINE((C*3+O*2+H+L)/7>=COST((COST(98)-COST(2))/(COST(98)+COST(2))*100) AND C>=O,C,O,1,0),COLOR0000FF;
{主升}
主升:=(C*3+O*2+H+L)/7>=(MA(C,60)+MA(C,60)+2*STD(C,60))/2;
STICKLINE(C<O AND 主升,H,L,0.02,0),COLORFFFFFF;
STICKLINE(C>=O AND 主升,H,L,0.02,0),COLORFF00FF;
STICKLINE(C<O AND 主升,C,O,3.2,0),COLORBBBBBB;
STICKLINE(C<O AND 主升,C,O,2.1,0),COLORCCCCCC;
STICKLINE(C<O AND 主升,C,O,1,0),COLORDDDDDD;
STICKLINE(C>=O AND 主升,C,O,3.2,0),COLORBB00BB;
STICKLINE(C>=O AND 主升,C,O,2.1,0),COLORCC00CC;
STICKLINE(C>=O AND 主升,C,O,1,0),COLORDD00DD;

STICKLINE((REF(C,1)-C)/REF(C,1)>=0.095 AND C=O AND H=L,C,O,4,0),COLORFFF000;
STICKLINE((C-REF(C,1))/REF(C,1)>=0.095 AND C=O AND H=L,C,O,4,0),COLOR00FFFF;
{BOLL3:MA(CLOSE,N),LINETHICK2,COLOR000088;
UB3:BOLL3+2*STD(CLOSE,N),LINETHICK2,COLORFFF000;
LB3:BOLL3-2*STD(CLOSE,N),LINETHICK2,COLORFFF000;}

IF(PERIOD<5,ZMA5,DRAWNULL),COLOR0000FF,LINETHICK1;
BOLL2,LINETHICK2,COLORAA00AA;
UB2,LINETHICK1,COLOR00FF00;
LB2,LINETHICK1,COLOR00FF00;
BOLL,LINETHICK1,COLOR00DDFF;
UB,LINETHICK1,DOTLINE,COLORFF0000;
LB,LINETHICK1,DOTLINE,COLORFF0000;

超跌:=ZMA5/L>1.19;
DRAWICON(PERIOD<5 AND ZMA5/L>=1.18,H*1.015,26);
DRAWICON(PERIOD<5 AND H/ZMA5>=1.18,H*1.015,15);
DRAWICON(PERIOD<5 AND H/MIN(UB,UB2)>=1.025,L*0.96,6);
DRAWICON(PERIOD<5 AND MAX(LB,LB2)/L>=1.02,L*0.96,5);

{乘风买卖副图}
BOLL20:=MA(CLOSE,20);
UB20:=BOLL20+2*STD(CLOSE,20);
LB20:=BOLL20-2*STD(CLOSE,20);
BOLL10:=MA(CLOSE,10);
UB10:=BOLL10+2*STD(CLOSE,10);
LB10:=BOLL10-2*STD(CLOSE,10);

N:=9;M:=3;
RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;
K:SMA(RSV,M,1),COLOREE90FF,LINETHICK2,NODRAW;
D:SMA(K,M,1),COLORFFFFFF,NODRAW;
J:IF(3*K-2*D>100,100,3*K-2*D),COLOR999000,NODRAW;
RSF6:100-SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLOR00FFFF,LINETHICK2,NODRAW;

XXX2:DRAWLINE(CROSS(D,K),HHV(K,15),REF(CROSS(D,K),1),REF(HHV(K,15),1),1),COLORFFF000,DOTLINE;
XXX1:DRAWLINE(CROSS(K,D) AND REF(K,1)<35,LLV(K,15),REF(CROSS(K,D) AND REF(K,1)<35,1),REF(LLV(K,15),1),1),COLOR0000FF,DOTLINE;

DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
MACD:=20*(DIF-DEA);
MACDABS:=IF(PERIOD=1,10*ABS(MACD),IF(PERIOD=2,5*ABS(MACD),IF(PERIOD=3,4*ABS(MACD),IF(PERIOD=4,3*ABS(MACD),IF(PERIOD=5,2*ABS(MACD),ABS(MACD))))));
STICKLINE(MACD>0,MACDABS,0,2,1),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACDABS,0,2,1),COLORC0C0C0;
STICKLINE(MACD<0,MACDABS,0,2,1),COLORAA0000;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),MACDABS,0,2,1),COLOR2255DD;


RSF6,COLOR00FFFF,LINETHICK2;
K,COLOREE90FF,LINETHICK2;
D,COLORFFFFFF;
J,COLOR999000;


底部:IF((L<LB10 OR L<LB20) AND (J<0 OR K<20),85,100),COLORFFFFFF,LINETHICK2;
J抄底:IF(CROSS(J,0) AND (COUNT(L<LB10,3)>0 OR COUNT(L<LB20,3)>0),75,100),COLOR00FFFF,LINETHICK2;
K抄底:IF(CROSS(K,D) AND REF(K,1)<35 AND (COUNT(L<LB10,3)>0 OR COUNT(L<LB20,3)>0),75,100),COLORFF00FF,LINETHICK2;


高位风险:IF(H>UB20 AND H>UB10 AND K>95,25,0),COLOR00FF00,LINETHICK2;
背离风险:IF((H>UB20 OR H>UB10) AND MIN(UB20,UB10)/MAX(UB20,UB10)>0.95 AND K<HHV(K,20) AND COUNT(K>95,20)>0,35,0),COLORFF0000,LINETHICK2;






回复

举报

QQ|

GMT+8, 2024-11-18 02:19

快速回复 返回顶部 返回列表