3.{頂?shù)譳線}
{===================== 功能開(kāi)關(guān) =====================} VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=VAR2/VAR1*100-70; VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=SMA(VAR3/VAR1*100,3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VAR10:=IF(VAR9>100,VAR9-100,0); VARA:=HHV(HIGH,34); ERT:=MA(CLOSE,3); YAXG:=MA(CLOSE,55); 防線B:=EMA((VAR6-VAR8)/(VARA-VAR8)*100,8); B1:=EMA(防線B,5); 上漲:=防線B-B1>0; 下跌:=防線B-B1<0; {MY-RSI 周線專(zhuān)用} LC := REF(CLOSE,1); 八周RSI:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100; 頂部:=86,pointdot,COLORCYAN,linethick3; 底部:=20,pointdot,COLORMAGENTA,linethick3; 八周RSI死叉:=CROSS(84,八周RSI); OSC:=C-REF(MA(C,13),5); 分界:=MA(OSC,8); DIFF := EMA(OSC,7) - EMA(OSC,12); DEA := EMA(DIFF,7); MACD := 2*(DIFF-DEA); Z_F:=IF(C>REF(H,1),EMA(L,5),IF(C<REF(EMA(L,5),1),H,EMA(L,5))); K_d:=BARSLAST(C<=Z_F); X_H:=K_d=1 and BARSLAST(MACD<REF(MACD,1)); {===================== 【解模板】===================== } DRAWGBK((DATE > 0),COLORRGB(40,40,60),COLORRGB(10,10,10),1); {K柱} STICKLINE(八周RSI死叉,OSC,REF(OSC,1),10,0),LINETHICK4,COLORGREEN;//逃頂 STICKLINE(上漲,OSC,REF(OSC,1),7,0),LINETHICK2,COLORRED;//持股 STICKLINE(X_H,OSC,REF(OSC,1),10,0),LINETHICK4,COLORMAGENTA;//啟動(dòng) STICKLINE(下跌,OSC,REF(OSC,1),7,0),LINETHICK2,ColorFFA900;//空倉(cāng) STICKLINE(CROSS(ref(MACD,1),MACD) and MACD<ref(MACD,1),OSC,REF(OSC,1),7,0),LINETHICK2,COLORYELLOW;//減倉(cāng) 動(dòng)能線:OSC,ColorFFB5FF; 加速線:(DEA-DIFF)*9.8,COLORGREEN; {字} DRAWTEXT(BARPOS=SYSPARAM(3),0,' 啟動(dòng)'),ALIGN4,COLORMAGENTA; DRAWTEXT(BARPOS=SYSPARAM(3),0,' \n 持股'),PXDN3,ALIGN4,COLORRED; DRAWTEXT(BARPOS=SYSPARAM(3),0,' \n \n 逃頂'),PXDN6,ALIGN4,COLORGREEN; DRAWTEXT(BARPOS=SYSPARAM(3),0,' \n \n \n 減倉(cāng)'),PXDN9,ALIGN4,COLORYELLOW; DRAWTEXT(BARPOS=SYSPARAM(3),0,' \n \n \n \n 空倉(cāng)'),PXDN12,ALIGN4,ColorFFA900; |
|
來(lái)自: 于曉東 > 《我的圖書(shū)館》