好股查询: 行情资金 DDX查询 超赢 千股千评 消息提示 股票公告 概念题材 机构评级 大小非 十大股东 股本结构 股票高管 股吧 涨停 停牌 基本概况
您的位置:好查股网 > 好查股公式 > 公式正文
股票公式搜索:

通达信BS压力支撑源码[好查股公式]

2022/9/7 20:18:27

VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
 VAR2:=CROSS(VAR1,0.9);
 VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
 VAR4:=CROSS(VAR3,0.9);
 {STICKLINE(VAR2,HIGH,HIGH*1.01,5,0),COLORGREEN;
 STICKLINE(VAR4,LOW,LOW*0.99,5,0),COLORGREEN;}
 VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));
 PLOYLINE(VAR5,VAR5),COLORMAGENTA;
 VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);
 VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
 VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)
 AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);
 VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);
 VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);
 VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)
 AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);
 {坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.01,5,0),COLORRED;
 STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.99,5,0),COLORRED;
犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.01,5,0),COLORYELLOW;
 STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.99,5,0),COLORYELLOW;
等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.01,5,0),COLORGREEN;
 STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.99,5,0),COLORGREEN;}
压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLORRED;
 STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLORRED;
支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLORMAGENTA;
 STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLORMAGENTA;
现价:CLOSE,POINTDOT,COLORWHITE;
 DRAWTEXT(CROSS(C,压力) ,L*0.98,'T'),COLOR00FF00;
 DRAWTEXT(CROSS(支撑,C) ,L*0.98,'H'),COLOR00FF00;
 BU:=CROSS(HIGH,SAR(3,1,20));
 SEL:=CROSS(SAR(3,1,20),LOW);
 DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;
 DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;

好查股公式指标
好查股网查股:资金行情查询 实时DDX查询 大智慧超赢数据 千股千评 最新提示 股票公告 题材概念 个股评级查询 股东查询 股票高管查询 基本概况查询
手机版 | 电脑端
在线客服
本站股票数据全部免费,内容仅供参考,不构成投资建议,据此操作,风险自担。
本站不为所提供数据的错误或因依此信息所采取的任何行为负责。站内广告不代表好查股网的观点! 豫ICP备2021024630号-1