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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信先胜稳赢通道指标 平衡线 反弹线


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

以下是通达信先胜稳赢通道指标 平衡线 反弹线

通达信先胜稳赢通道指标 平衡线 反弹线

源码

AZ:=HHV(H,20),COLORCCFFFF,LINETHICK2;
AX:=LLV(L,20),COLORYELLOW,LINETHICK2;
STICKLINE(C>0,AX-0.5,AZ+0.5,1000000000000,0),COLOR335500;
DRAWTEXT_FIX(1,0.00,0.04,0,'操作说明:通道趋势平稳向上,出红色块一路持股!做波段在回档线买“出笑脸),在了结线卖出“小跑人”,股价到达止赢线更卖“出哭脸”!')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK));

突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;

VAR1111:=1;
平衡线:= EMA(EMA(EMA(HIGH,5),5),5)*VAR1111;
反弹线:=平衡线*0.86 ;
回挡线买: 平衡线*0.91,LINETHICK2 COLOR00FF00;
VAR2:=平衡线*0.85;
了结线卖: 平衡线*1.08,LINETHICK2 COLOR00FF00;
止赢线更卖:平衡线*1.15,LINETHICK2 ;
绿山水:=MA(MA(CLOSE,5),1),LINETHICK2,COLORGREEN;
红山水:MA(MA(CLOSE,5),8),LINETHICK2,COLORGREEN;
IF(红山水>=绿山水,绿山水,红山水),LINETHICK4,COLORRED;
DRAWICON(CROSS(C,红山水),L*0.99,1);
DRAWICON(CROSS(C,突破),L*0.98,5);
MA8:=MA(CLOSE,10),COLORYELLOW;
生命线60:MA(CLOSE,60)LINETHICK4,COLORRED;
STICKLINE(C>=O AND O>0,HIGH,LOW,0.5,0),COLOR0000CD;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,3,0),COLOR070084;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,2.5,0),COLOR0000A3;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,2,0),COLOR0000B7;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,1.5,0),COLOR0000CD;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,1,0),COLOR0000E9;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,0.5,0),COLOR0754E9;
STICKLINE(C>=O AND O>0,CLOSE,OPEN,0.5,0),COLOR68B8FF;
STICKLINE(C<O AND O>0,HIGH,LOW,0.5,0),COLORFFBE00;
STICKLINE(CLOSE<OPEN AND OPEN>0,HIGH,LOW,0.5,0),COLORFFBE00;
STICKLINE(CLOSE<OPEN AND OPEN>0,CLOSE,OPEN,3,0),COLORCA6500;
STICKLINE(CLOSE<OPEN AND OPEN>0,CLOSE,OPEN,2.5,0),COLORE17100;
STICKLINE(C>1.099*REF(C,1),O,C,2,0),COLORYELLOW;
STICKLINE(C>1.099*REF(C,1),O,C,2,0),COLORYELLOW;
DRAWTEXT(CROSS(C,红山水),L*0.97,'买'),COLORYELLOW;
ZTSJ:=BARSLAST(C>REF(C,1)*1.099 AND C=H);
回:=ZTSJ>=2 AND ZTSJ<=7 AND L<=REF(C*0.95,ZTSJ) AND L=LLV(L,ZTSJ);
DRAWICON(回,L*0.98,19);
STICKLINE(C>1.099*REF(C,1),O,C,2,0),COLORYELLOW;
STICKLINE(C>1.099*REF(C,1),O,C,2,0),COLORYELLOW;
DRAWICON(CROSS(H,止赢线更卖) OR CROSS(C,止赢线更卖),H*1.03,4);
DRAWICON(CROSS(H,了结线卖) OR CROSS(C,了结线卖),H*1.03,15);





回复

举报

QQ|

GMT+8, 2024-11-19 20:21

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