大智慧阴阳乾坤主图指标
源码
input:n(5,1,100,1);
当前价:ma(c,1),LINETHICK0,PRECIS2;
MTM:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,N),N)/EMA(EMA(ABS(MTM),N),N);
买1:=IF(LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)),1,0);
卖1:=IF(HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) AND CROSS(MA(DX1,2),DX1),1,0);
DRAWTEXT(filter(卖1=1,5),high*1.02, ' '),color00ff00,ALIGN1;
DRAWTEXT(filter(买1=1,5),low*0.99, ' '),colorRED,ALIGN1;
DRAWICON(filter(买1=1,5),low*0.99,7),ALIGN1;
DRAWICON(filter(卖1=1,5),high*1.04, 8),ALIGN1;
阴阳分界线:EMA(C,17),LINETHICK1,COLORwhite;
QQ号:EMA(C,1),LINETHICK1,COLORwhite;
阴阳卖出带:EMA(C,17),LINETHICK1,COLORwhite;
阴阳买入带:EMA(C,17),LINETHICK1;
阴阳卖出线:EMA(C,17),LINETHICK1,COLORRED;
阴阳买入线:EMA(C,17),LINETHICK1,colorFF0000;
阳上:阴阳分界线+3*STD(C,17),LINETHICK1,COLORRED;
阳下:阴阳分界线+2*STD(C,17),LINETHICK1,COLORRED;
阴上:阴阳分界线-2*STD(C,17),LINETHICK1,colorFF0000;
阴下:阴阳分界线-3*STD(C,17),LINETHICK1,colorFF0000;
DRAWBMP(CROSS(阴下,LOW),阴下*0.96,'红宝石'),ALIGN1;
DRAWBMP(CROSS(HIGH,阳上),HIGH*1.035,'绿宝石'),ALIGN1;
黄金生命线:(EMA(CLOSE,17) * 1.0);
PARTLINE(黄金生命线,CLOSE >黄金生命线),LINETHICK2,colorFF00FF;
PARTLINE(黄金生命线,黄金生命线> CLOSE),LINETHICK2,color00ff00;
DRAWTEXTREL(0,0,'sanhu8.com'),LINETHICK2,Coloryellow;