永发信息网

大师辛苦一下可否把这两个指标合并为一个副图(通达信软件)

答案:2  悬赏:0  手机版
解决时间 2021-03-21 22:51
大师辛苦一下可否把这两个指标合并为一个副图(通达信软件)
最佳答案
{第一个指标}
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0,0),COLORF00FF0;
STICKLINE(MACD1STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFF:DIF1,COLOR33FF33;
DEA2:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
低位金叉:= CROSS(DIFF,DEA2) AND DIFF<(-0.1);
STICKLINE(低位金叉,0,-0.3,1,0),COLOR00FFFF;
DRAWTEXT(低位金叉,-0.3,' 低位金叉'),COLOR00FFFF;
JCCOUNT:= COUNT(CROSS(DIFF,DEA2),BARSLAST(DEA2>=0));
二次金叉:= CROSS(DIFF,DEA2) AND DEA2<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.15,1,0),COLORFF00FF;
DRAWICON(二次金叉,DEA2*1.04,1),COLOR0000FF;
DRAWTEXT(二次金叉,-0.15,' 二次金叉'),COLORFF00FF;
AD1:= BARSLAST(REF(CROSS(DIFF,DEA2),1));
M底背离:= REF(CLOSE,AD1+1)>CLOSE AND DIFF>REF(DIFF,AD1+1) AND CROSS(DIFF,DEA2);
STICKLINE(M底背离,0,0.15,1,0),COLOR00FF00;
DRAWLINE(AD1=0,DEA2,M底背离,DEA2,0),LINETHICK3,COLORWHITE;
DRAWTEXT(M底背离,0.15,' M底背离'),COLOR00FF00;
AD2:= BARSLAST(REF(CROSS(DEA2,DIFF),1));
M顶背离:= REF(CLOSE,AD2+1)DIFF AND CROSS(DEA2,DIFF);
DRAWLINE(AD2=0,DEA2,M顶背离,DEA2,0),LINETHICK3,COLORBLUE;
AA:=C>REF(C,4);
NT:=BARSLASTCOUNT(AA);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,MACD*1.02,VAR2STR(AY,0)),COLORLIRED;
DRAWTEXT(NT=9,MACD*1.02,'9'),COLORGREEN;
B1:=C;
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,MACD*0.98,VAR2STR(AY1,0)),COLORGREEN;
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;
DRAWICON(CROSS(DEA1,DIF1),DEA1,2);
{第二个指标参数把KD线关闭了}
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
STICKLINE(K>D,K,D,2.5,0),COLORRED,LINETHICK1,NODRAW;
STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK1,NODRAW;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWLINE(A1=0,1.2,底背离,1.5,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1)D AND CROSS(D,K);
DRAWLINE(A2=0,1.2,顶背离,1.5,0),COLORGREEN,LINETHICK2;
DRAWTEXT(底背离>0,1.2,'底背离'),COLORRED;
DRAWTEXT(顶背离>0,1.3,'顶背离'),COLORGREEN;
全部回答
可以
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
点钞比赛主持词
now,she is in the supermarket .she must no
找美特斯邦威一件风衣商品码239050最好有价格
in the regulations is that you other peop
带"陈"字的菜名字有哪些?
被疯狗咬了,没出血只是稍微破了皮,当时是衬
今天坐公车,在路上看到一个MV,里面内容大概
波导手机开机出现英文无命令怎么办
求室内活动场地吊顶布置图。
介绍老虎用英语至少三句话
被情伤后振作的句子,被情伤的诗句该怎样写才
某元素原子的价电子构型为2s22p5,下列有关该
南京跃和保 你觉得很垃圾的人 是谁?(越多越
靠,是不是天下所有的的老太婆都一个逼样
玉米粥熬多长时间,玉米粥怎样熬出来香,才好
推荐资讯
单选题Many _______ of years&nbs
生石灰(主要成分是CaO)与水反应会放出大量
从哲学角度分析《别了,司徒雷登》
快递别人签收了而我又不想要了怎么办
如图是选自历届世博会会徽中的图案,其中是中
设logm2>logn2(m>0,m≠1,n>0,n≠1),则
西北工业大学每年的学费大概是多少
9.86的一半是多少?列式计算:________.
单选题下列句子中标点符号使用有误的一项是A.
与人际关系有关的诗句,人际关系的诗句
直接写出得数4500÷15=430+80=560×0=125×8=
This book tells life story of John Smith,
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?