魔鬼中长线指标 通达信公式(附图)

[复制链接]
查看85 | 回复0 | 2021-8-20 16:12:31 | 显示全部楼层 |阅读模式

LL:=26;
S:=12;
M:=9;
DIFF :=( EMA(CLOSE,S) - EMA(CLOSE,LL))*100;
DEA :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
绿柱消失阳根起:IF(DIFF<0,DIFF,0),STICK,LINETHICK7,COLOR00FF00;
0,STICK,LINETHICK1,COLOR000000;
红柱上涨:IF(DIFF>=0,DIFF,0),STICK,LINETHICK7,COLORRED;
IF(DEA>=0,DEA,0),STICK,LINETHICK7,COLORMAGENTA;
IF(DEA<0,DEA,0),STICK,LINETHICK7,COLORYELLOW;
绿柱跌:IF(DIFF<0,DIFF,0),STICK,LINETHICK7,COLORGREEN;
卖出:=IF(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),-20,0),COLORWHITE;
IF(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),-20,0),STICK,LINETHICK5,COLORGREEN;0,STICK,LINETHICK2,COLORWHITE;
买入:=IF(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1),0,20),COLORRED;
IF(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1),20,0),STICK,LINETHICK5,COLOR00FF00,COLORRED;0,STICK,LINETHICK2,COLOR00FF00,COLORRED;
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
逃跑线: 80,COLORYELLOW;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
生命线: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13),LINETHICK2,COLORCYAN;
魔鬼线: EMA(生命线,3),LINETHICK1,COLORYELLOW,;
低吸: 20;
强弱分界: 50,LINETHICK1,COLORRED;
VAR4:=IF(CROSS(生命线,魔鬼线),40,14);
VAR5:=IF(CROSS(魔鬼线,生命线),25,78);
DRAWTEXT(ISLASTBAR,-40,'绿柱跌'),COLORWHITE;
DRAWTEXT(ISLASTBAR,40,'红柱涨'),COLORWHITE;

14W92402S30-11M6.jpg

14W92402S30-11M6.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则