指标说明 ZM—表示指数MSD;ZX—指险;GM—股MSD;GX—股险;GS—股势;WL—威廉(参数80);W—威廉(参数134);R—强弱RSI;K—随机K值;D—随机D值。 指标源码 H指:EMA(100*(INDEXDATA("1a0001",&CLOSE)-LLV(INDEXDATA("1a0001",&LOW),N))/(HHV(INDEXDATA("1a0001",&HIGH),N)-LLV(INDEXDATA("1a0001",&LOW),N)),Q); ZM:EMA(100*(INDEXC-LLV(INDEXL,N))/(HHV(INDEXH,N)-LLV(INDEXL,N)),Q); GM:=EMA(100*(C-LLV(LOW,N))/(HHV(H,N)-LLV(LOW,N)),Q); VAR1:=IF(MA(CLOSE,88),1,0); VAR2:=1/WINNER(CLOSE); VAR3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100); VAR4:=WINNER(AMOUNT/VOL/100)*100*VAR1; GS:=VAR4; W2:=100-(100*(HHV(HIGH,134)-CLOSE)/(HHV(HIGH,134)-LLV(LOW,134))); LC:=REF(CLOSE,1); R:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; TR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),14,1); DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),14,1); ZI: DMP*100/TR; DI: DMM*100/TR; W:= SMA(ABS(DI-ZI)/(DI+ZI)*100,6,1); SQ:IF(DI>ZI,0,W),linethick2,coloryellow; LOWV:=LLV(LOW,9); HIGHV:=HHV(HIGH,9); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3); K:=EMA(RSV,3); D:=MA(K,3); 水: ABS((COST(50)-CLOSE)/CLOSE*100)*Var1,LINESTICK, colorgreen; ZS:=IF(ZM>50,ZM,1); TC:(2*ZS+GM+GS+W2+R+D)/6,linethick2,COLOR0000FF; QD:30.9; 弱:38.2; 趋强:61.8; 强:75; DRAWTEXT(CROSS(弱,ZM),弱,'空仓'); DRAWTEXT(CROSS(ZM,弱),ZM,'轻仓'); DRAWTEXT(CROSS(ZM,趋强),ZM,'中仓'); DRAWTEXT(CROSS(ZM,强),ZM,'持续才重仓'); DRAWTEXT(CROSS(趋强,TC),趋强,'改错'),RGB(0,255,255); DRAWTEXT(CROSS(趋强,SQ),趋强,'止损'),RGB(0,255,255); DRAWTEXT(CROSS(ZI,QD),ZI,'买'); DRAWTEXT(CROSS(SQ,QD),SQ,'多买'); |
