您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

支撑压力参考指标源码[同花顺公式]

相关标签: 支撑压力 、 博弈大师压力支撑源码 、 压力支撑指标 、 支撑与压力现货实战 、 支撑压力位公式通达信 、 主图支撑压力指标 、 t+0支撑压力买卖公式 、 压力支撑公式 、 股票支撑压力黄金分割 、

 

 

支撑压力参考指标源码

 

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); //文章来至程序化交易网 cxh99.com//
坚定: 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; //文章来至程序化交易网 cxh99.com//

 

//本文来至程序化交易网 cxh99.com//

 

 

 

(责任编辑:程序化交易网整理)

 

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容