(function(){ var ua = navigator.userAgent.toLowerCase(); var bIsIpad = ua.match(/ipad/i) == "ipad"; var bIsIphoneOs = ua.match(/iphone os/i) == "iphone os"; var bIsAndroid = ua.match(/android/i) == "android"; var bIsWM=ua.match(/windows mobile/i)=="windows mobile"; var host = "https://m.wendeyipi.com"; var pathname = window.location.pathname; if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){ window.location.href =host + pathname; } })();

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

2024-10-07 07:18:02 投资技巧 49次阅读 投稿:

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



指标源码


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;




图片示例

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

 


声明:稳稳财经是理财投资基础知识平台! 并不指导专业性投资! 投资有风险,入市需谨慎!