买卖波段 同花顺指标公式源码

2024-10-07 投资技巧 17次阅读

注意本指标源码用于同花顺。



指标源码


01





BD1:=SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,5,1);

BD2:EMA(BD1,3),NODRAW;

BD3:=EMA(BD2,2);

BD4:=EMA(BD3,2);

BD5:=CROSS(BD3,BD4);

BD6:=CROSS(BD4,BD3);

STICKLINE(BD2>20 AND BD2<50,BD2-2,BD2+2,5,0),COLORYELLOW;

BD7:IF(CROSS(BD2,8) OR CROSS(BD2,15),BD2*3.0,0),COLORMAGENTA,LINETHICK2;

卖:IF(BD6,BD2,0),COLORYELLOW,NODRAW;

DRAWTEXT(BD5 AND BD3>20,BD2-12,'买'),COLORRED;

STICKLINE(BD5 AND BD3>20,BD2,0,1,0),COLORRED;

买:IF(BD5 AND BD3>20 ,BD2,0),COLORRED,LINETHICK8,NODRAW;

STICKLINE(BD2>80,BD2-2,BD2+2,5,0),COLORRED;

STICKLINE(BD2<20,BD2-2,BD2+2,5,0),COLORBLUE;

STICKLINE(BD2>50 AND BD2<80,BD2-2,BD2+2,5,0),COLORMAGENTA;

DRAWTEXT(BD7>1,BD7+5,' 抄底'),COLORYELLOW;

DRAWICON(BD7>1,BD7,4);//公众号:十万指标

DRAWTEXT(BD6,BD2+18,'卖'),COLORYELLOW;

STICKLINE(BD6,BD2,BD2+20,1,0),COLORGREEN;




图片示例

风险提示:本指标公式仅作为知识分享,供交流学习使用,不构成任何投资建议,不作为投资依据。  

 


猜你感兴趣: