九毛八公式指标
请老师帮忙把通达信的简洁有效测顶指标修改成大智慧的 NC:=17;N1:=14;M0:=35;M1:=5;M2:=5; TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,NC))/(0.017*STDP(TYP,NC)); {DRAWICON(CROSS(CCI,3) AND CCI>REF(CCI,1),L*0.98,34);} DRAWICON(CROSS(100,CCI) AND CCIOPEN,FAR2,REF(CLOSE,1)); FAR4:=IF(FAR1,FAR3-0.35*AT1,0); DRAWNUMBER(FAR1,H*1.01,FAR4)COLORYELLOW; RSV:=(CLOSE-LLV(LOW,M0))/(HHV(HIGH,M0)-LLV(LOW,M0))*100; K:=SMA(RSV,M1,1),COLOR80C000; D:=SMA(K,M2,1),COLORYELLOW; J:=3*K-2*D,COLORWHITE; FAR5:=J-K; FAR6:=FAR5/REF(FAR5,1); FAR7:=FAR5/REF(FAR5,3); FAR8:=FAR5/REF(FAR5,5); FAR9:=ABS(D-(FAR6+FAR7+FAR8)/7)+ABS(K-REF(D,1)); DRAWNUMBER(FAR1,H*1.05,FAR9),COLORGREEN; 离场参考价:FAR4,NODRAW,COLORYELLOW; 风险系数值:IF(FAR1,FAR9,0),NODRAW,COLORGREEN;(0
公式模块:
NC:=17;N1:=14;M0:=35;M1:=5;M2:=5;
TYP:=(HIGH+LOW+CLOSE)/3; cci:=(TYP-MA(TYP,NC))/(0.017*STDP(TYP,NC)); DRAWICON(crOSS(100,CCI) AND CCI<REF(CCI,1),H*1.02,5); MTR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); AT1:=MA(MTR,N1); FAR1:=CROSS(100,CCI) AND CCI<REF(CCI,1); FAR2:=(REF(OPEN,1)+REF(LOW,1))/2; FAR3:=IF(REF(OPEN,1)>OPEN,FAR2,REF(CLOSE,1)); FAR4:=IF(FAR1,FAR3-0.35*AT1,0); DRAWTEXT(FAR1,H*1.01,NUMTOSTRN(FAR4,2)),COLORYELLOW,ALIGN1; RSV:=(CLOSE-LLV(LOW,M0))/(HHV(HIGH,M0)-LLV(LOW,M0))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); J:=3*K-2*D; FAR5:=J-K; FAR6:=FAR5/REF(FAR5,1); FAR7:=FAR5/REF(FAR5,3); FAR8:=FAR5/REF(FAR5,5); FAR9:=ABS(D-(FAR6+FAR7+FAR8)/7)+ABS(K-REF(D,1)); DRAWTEXT(FAR1,H*1.05,NUMTOSTRN(FAR9,2)),COLORGREEN,ALIGN1; 离场参考价:FAR4,LINETHICK0,COLORYELLOW; 风险系数值:IF(FAR1,FAR9,0),LINETHICK0,COLORGREEN;