1.大师辛苦一下可否把这两个指标合并为一个副(通达信软件)
2.请大师:如何将通达信rsi变色副图指标改成主图指标
大师辛苦一下可否把这两个指标合并为一个副(通达信软件)
{ 第一个指标}
DIF1:=EMA(CLOSE,大师大师) - EMA(CLOSE,);
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),COLORFFF0;
STICKLINE(MACD1<MACD2,0,MACD1,0,0),COLORCYAN;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,,1),COLORWHITE;
DIFF:DIF1,COLORFF;
DEA2:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
低位金叉:= CROSS(DIFF,DEA2) AND DIFF<(-0.1);
STICKLINE(低位金叉,0,-0.3,1,0),COLORFFFF;
DRAWTEXT(低位金叉,-0.3,' 低位金叉'),COLORFFFF;
JCCOUNT:= COUNT(CROSS(DIFF,DEA2),BARSLAST(DEA2>=0));
二次金叉:= CROSS(DIFF,DEA2) AND DEA2<0 AND COUNT(JCCOUNT=2,)=1;
STICKLINE(二次金叉,0,-0.,1,0),COLORFFFF;
DRAWICON(二次金叉,DEA2*1.,1),COLORFF;
DRAWTEXT(二次金叉,-0.,' 二次金叉'),COLORFFFF;
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.,1,0),COLORFF;
DRAWLINE(AD1=0,DEA2,M底背离,DEA2,0),LINETHICK3,COLORWHITE;
DRAWTEXT(M底背离,0.,' M底背离'),COLORFF;
AD2:= BARSLAST(REF(CROSS(DEA2,DIFF),1));
M顶背离:= REF(CLOSE,AD2+1)<CLOSE AND REF(DIFF,AD2+1)>DIFF AND CROSS(DEA2,DIFF);
DRAWLINE(AD2=0,DEA2,M顶背离,DEA2,0),LINETHICK3,COLORBLUE;
AA:=C>REF(C,4);
NT:=BARSLASTCOUNT(AA);
TJ:=NT=9;
TJ:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ>0,9) OR BACKSET(TJ>0,NT))*NT;
DRAWTEXT(AY>0,MACD*1.,VAR2STR(AY,0)),COLORLIRED;
DRAWTEXT(NT=9,MACD*1.,'9'),COLORGREEN;
B1:=C;
NT0:=BARSLASTCOUNT(B1);
TJ:=NT0=9 ;
TJ:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ>0,9) OR BACKSET(TJ>0,NT0))*NT0;
DRAWTEXT(AY1>0,MACD*0.,VAR2STR(AY1,0)),COLORGREEN;
DRAWTEXT(NT0=9,MACD*0.,'9'),COLORRED;
DRAWICON(CROSS(DEA1,DIF1),DEA1,2);
{ 第二个指标参数把KD线关闭了}
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*,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)<CLOSE AND REF(D,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;
请大师:如何将通达信rsi变色副图指标改成主图指标
LC:=REF(CLOSE,1);RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*,LINETHICK1;
MA6 :MA(RSI6,6),COLORGREEN;
IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2;
公式的计算方式不能作为主图使用、
买卖买卖神之路源码买卖买卖神之路源码