将两个指标公式改为通达信指标公式,并生成长 【求助】请将以下两个指标公式改为通达信指标公式并分享
[通达信] 0,COLORFF00FF,LINETHICK1; DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA : EMA(DIFF,M),COLORyellow,LINETHICK1; MACD : 2*(DIFF-DEA), COLORSTICK; partline(diff,diff>=ref(diff,1),rgb(255,0,0),diff<ref(diff,1),rgb(0,255,0)),linethick1; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(CLOSE,A1+1)>CLOSE AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); DRAWTEXT(FILTER(B1>0,5),MACD ,'M底'),COLORGREEN,ALIGN1;{MACD底背离} C1:=BARSLAST(REF(CROSS(DEA,DIFF),1)); D1:=REF(CLOSE,C1+1)<CLOSE AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); DRAWTEXT(FILTER(D1>0,5),MACD ,'M顶'),COLOR00ffFF,ALIGN1;{MACD顶背离}; 第2个指标; TYP := (HIGH + LOW + CLOSE)/3; ZJ1:=(HIGH+LOW+CLOSE*2)/4; ZJ2:=EMA(ZJ1,14); PC:=STD(ZJ1,14); CCI1:=(ZJ1-ZJ2)/PC*100; MC:=EMA(CCI1,7); 黄下穿红准备卖:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); 下穿必卖:150,linethick1,COLORff9900; 红色大顶线:220,POINTDOT ,colorred,linethick3; 强弱界线:-8 ,COLORyellow,LINETHICK1; LC:=REF(CLOSE,1); 止损价位:(LC*1.0035*97+0.2)/99.65,COLORRED,LINETHICK0; RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; A:=SMA(R,3,1); B:=SMA(A,3,1); CCC:=(B/2+40)*1.1; D:=SMA(CCC,3,1); 【回抽】:IF(CROSS(D,RSI5),50,0),STICK,COLORRED,LINETHICK3; 【逃命】:IF(CROSS(80,RSI5),-50,0),STICK,COLORGREEN,LINETHICK2; partline(黄下穿红准备卖,黄下穿红准备卖>=ref(强弱界线,1),rgb(250,0,0),黄下穿红准备卖<ref(强弱界线,1),rgb(0,250,0)),linethick1; 先谢谢了 |
推荐主题
楼主 |
2楼 |