VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
趋势: EMA((VAR2-VAR4)/(VAR5-VAR4)*100,1)*VAR3;
量能: EMA(0.667*REF(趋势,1)+0.333*趋势,3)*VAR3;
DRAWTEXT(CROSS(趋势,量能) AND 趋势< 50 AND 29< 趋势,20,’短快进’),COLOR00FF00;
DRAWTEXT(CROSS(量能,趋势) AND 趋势>40 AND 71>趋势,50,’短快出’),COLOR00FFFF;
DRAWTEXT(CROSS(趋势,量能) AND 趋势< 30,0,’逢低吸’),COLOR3399CC;
DRAWTEXT(CROSS(量能,趋势) AND 趋势>70,75,’逢高减’),COLORFFFF33;
DRAWICON(CROSS(趋势,量能) AND 趋势< 30,20,1);
DRAWICON(CROSS(量能,趋势) AND 趋势 >70,80,2);
VAR9:=CLOSE-REF(CLOSE,3);
VARA:=EMA(EMA(VAR9,3),3)/EMA(EMA(ABS(VAR9),3),4)*100;
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20)*100;
卖出: IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWTEXT(VARA>0 AND CROSS(VARC,VARA),90,’中线逃吧!’),COLOR0033FF;
DRAWBAND( 趋势,RGB(250,0,250),量能,RGB(0,250,0));
DRAWICON(卖出< 0,100,2);
1、 本站所有指标公式源码资源均是从网络采集和会员提供所得,仅供用来学习研究,请于下载后的24h内自行删除,正式商用请购买正版。如若本站内容侵犯了原著者的合法权益,请携带相关版权文件联系我们进行下架或删除。
2、文章内文字内容均为本站原创发布,任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。原文链接:https://www.zhibiao123.cn/182479.html,转载请注明出处。