紅色為資金線,出現(xiàn)紅色信號(hào)底買入,出現(xiàn)綠色信號(hào)頂賣出; 指標(biāo)用到了未來函數(shù) 指標(biāo)源碼: V1:=ZIG(3,12); V2:IF(REF(V1,2)>REF(V1,1) AND V1>REF(V1,1),50,0),COLORRED,LINETHICK2; V3:IF(REF(V1,2)<REF(V1,1) AND V1<REF(V1,1),50,0),COLORGREEN,LINETHICK2; VAR1:=ZIG(3,12)<REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)>REF(ZIG(3,12),2); VAR2:=ZIG(3,12)>REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)<REF(ZIG(3,12),2); DRAWTEXT(VAR1,50,'頂'),COLORYELLOW; DRAWTEXT(VAR2,50,'底'),COLORYELLOW; 資金趨勢:EMA(30*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)*3, COLORRED,LINETHICK1; VAR3:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); 買點(diǎn):= VAR3,COLORRED; DRAWTEXT(買點(diǎn)>0,45,'低吸點(diǎn)'),COLORMAGENTA; STICKLINE(買點(diǎn),0,50,2,0),COLORMAGENTA,LINETHICK1;
|
|