这个分析家的指标,请高手帮我修改成通达信版本的,谢谢
MA1:MA(CLOSE, 5),Color0000FF;
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,30);
MA5:MA(CLOSE,60),LINETHICK5 ,Color0000FF;
STICKLINE(C>O,C,O,8,0),COLOR0000AA;
STICKLINE(C>O,C,O,5,0),COLOR0000CC;
STICKLINE(C>O,C,O,3,0),COLOR0000DD;
STICKLINE(C>O,H,L,0,0),COLOR0000FF;
{宋氏专用版:}
STICKLINE(C<O,C,O,8,0),Color008C00;
STICKLINE(C<O,C,O,5,0),Color009F00;
STICKLINE(C<O,C,O,3,0),Color01B900;
STICKLINE(C<O,H,L,0,0),Color01C700;
Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var2:=SMA(Var1,5,1);
Var3:=SMA(Var2,8,1);
Var4:=CROSS(Var2,Var3) AND Var3<20;
Var5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND Var4;
Var6:=IF(CLOSE>1000,Var4,Var5);
H1:EMA(CLOSE,8),linethick2,colorwhite;
H2:EMA(H1,20),linethick2,coloryellow;
DRAWICON(CROSS(H1,H2)AND CLOSE<EMA(CLOSE,60) ,LOW,1);
DRAWICON(Var6,H,2);
STICKLINE(H1>H2,H1,H2,1,0.8),COLORRED;
STICKLINE(H1<H2,H1,H2,1,0.8),COLORGREEN;
x1:=EMA(C,7);
drawtext(filter(var3 and var2 and count(x1<ref(x1,1),5)>2 and x1>ref(x1,1),3),l-0.01,'☆短进'),Color00FFFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'★ 快跑 '),COLORYELLOW;
DRAWGBKLAST(ma1<ma2,'3');
DRAWGBKLAST(ma1>ma2,'4');
A1:=BARSLAST(ref(cross(macd.diff,macd.dea),1));
B1:=ref(c,A1+1)>c and ref(macd.diff,A1+1)<macd.diffand cross(macd.diff,macd.dea);
DRAWTEXT(FILTER(B1>0,5),l-0.01,'M 底背'),COLORGREEN;
A2:=BARSLAST(ref(cross(kdj.k,kdj.d),1));
B2:=ref(c,A2+1)>c and ref(kdj.k,A2+1)<kdj.kand cross(kdj.k,kdj.d);
DRAWTEXT(FILTER(B2>0,5),l-0.25,'K 底背'),COLORYELLOW;
A3:=BARSLAST(ref(cross(RSI.RSI1,RSI.RSI2),1));
B3:=ref(c,A3+1)>c and ref(RSI.RSI1,A3+1)<RSI.RSI1 and cross(RSI.RSI1,RSI.RSI2);
DRAWTEXT(FILTER(B3>0,5),l-0.4,'R 底背'),COLORCYAN;
C1:=BARSLAST(ref(cross(macd.dea,macd.diff),1));
D1:=ref(c,C1+1)<c and ref(macd.diff,C1+1)>macd.diffand cross(macd.dea,macd.diff);
DRAWTEXT(FILTER(D1>0,5),h+0.01,'M 顶背'),COLORRED;
C2:=BARSLAST(ref(cross(kdj.d,kdj.k),1));
D2:=ref(c,C2+1)<c and ref(kdj.k,C2+1)>kdj.kand cross(kdj.d,kdj.k);
DRAWTEXT(FILTER(D2>0,5),h+0.25,'K 顶背'),COLOR0066FF;
C3:=BARSLAST(ref(cross(RSI.RSI2,RSI.RSI1),1));
D3:=ref(c,C3+1)<c and ref(RSI.RSI1,C3+1)>RSI.RSI1and cross(RSI.RSI2,RSI.RSI1);
DRAWTEXT(FILTER(D3>0,5),h+0.4,'R 顶背'),COLORMAGENTA;