趨勢王源碼如下: 趨勢王 做票要看趨勢,跟色指標(biāo)看就知道啦 V1:=LLV(LOW,10); V2:=HHV(HIGH,30); 價(jià)格線:EMA(((CLOSE-V1)/(V2-V1))*(100),4),COLORGREEN; IF(價(jià)格線>REF(價(jià)格線,1)*1.01,價(jià)格線 ,DRAWNULL),COLORRED; IF(價(jià)格線<REF(價(jià)格線,1),價(jià)格線 ,DRAWNULL),COLORBLUE; VAR06:=(2*CLOSE+HIGH+LOW)/4; VAR07:=LLV(LOW,13); VAR08:=HHV(HIGH,13); VAR09:=EMA((VAR06-VAR07)/(VAR08-VAR07)*100,13); VARA1:=EMA(0.667*REF(VAR09,1)+0.333*VAR09,2); {A:VAR9-50; B:VARA1-50; STICKLINE(A>B,A,B,2,0),COLORRED; STICKLINE(A<=B,A,B,2,0),COLORGREEN; 0,COLORRED;} STICKLINE(VAR09>VARA1,VAR09,VARA1,3,0),COLORRED; STICKLINE(VAR09<=VARA1,VAR09,VARA1,3,0),COLORGREEN; 80,COLORRED,DOTLINE; 20,,COLORGREEN,DOTLINE; DRAWTEXT(ISLASTBAR,80,'頂點(diǎn)'),COLORRED; DRAWTEXT(ISLASTBAR,20,'低點(diǎn)'),COLORGREEN; DRAWTEXT_FIX(1,0,0,0,'★ A - 見紅關(guān)注-逢低買入 ★ '),COLORRED; DRAWTEXT_FIX(1,0.14,0,0,'★ B - 見綠警示-逢高減倉 ★ '),COLORGREEN; DRAWTEXT_FIX(1,0.28,0,0,'★ C - 見藍(lán)風(fēng)險(xiǎn)-高拋避險(xiǎn) ★ '),COLORCYAN;
|