MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORFF00FF;
A1:=(3*C+L+O+H)/6;
DKX:(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+14*REF(A1,6)
+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)+8*REF(A1,12)
+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+2*REF(A1,18)+
REF(A1,20))/210,COLOR80FFFF;
DKM10:MA(DKX,10),LINETHICK2,COLORGREEN;
STICKLINE(DKX>DKM10 ,DKX,DKM10,1,0),COLORGREEN,LINETHICK2;
STICKLINE(DKX<DKM10,DKX,DKM10,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(DKX,DKM10),DKM10,'●'),COLORRED;
VA:=MAX(REF(C,1),REF(O,1));
VA1:=MIN(REF(C,1),REF(O,1));
VOK:=IF(O<VA1 AND C>VA,1,0);
STICKLINE(VOK=1 ,O ,C ,3,0 ),COLOR008FFF;
STICKLINE(VOK=1 ,H ,L ,1,0 ),COLOR008FFF;
VOK1:=IF(REF(C,1)<REF(C,2) AND O>REF(C,1) AND L>REF(L,1) AND C>REF(C,1)
OR REF(C,1)<REF(O,1) AND O>REF(C,1) AND L>REF(L,1) AND C>REF(C,1),1,0);
STICKLINE(VOK1=1 ,O ,C ,3,0 ),COLORFF00FF;
STICKLINE(VOK1=1 ,H ,L ,1,0 ),COLORFF00FF;
{RSI黄金线}
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
GAO:=HHV(C,60)-LLV(C,60);
RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);
黄金线:重心+GAO*(RSI-0.5),COLORRED;
多空平衡线:=EMA(EMA(EMA(HIGH,7.23379625),7.23379625),1);
最低安全线:多空平衡线*0.8263889,COLORGRAY,LINETHICK2;
高位止赢线: 多空平衡线*1.12170138,COLOR0089BB,LINETHICK2;
A:=黄金线>REF(黄金线,1);
AA:=BACKSET(A,2);
DRAWLINE(AA,黄金线,A,黄金线,0),COLORRED;
B:=黄金线<REF(黄金线,1);
B1:=BACKSET(B,2);
DRAWLINE(B1,黄金线,B,黄金线,0),COLOR00FF00;
上一篇:通达信【杜非自然缠论】指标公式主图贴图 下一篇:通达信行业共振公式