又是一个好指标,散户的福音。30分钟看比较好。做好T+0
源码:
BOLL0:=MA(CLOSE,10);
UPPER0:=BOLL0+2*STD(CLOSE,10);
LOWER0:=BOLL0-2*STD(CLOSE,10);
DRAWBAND(UPPER0,RGB(100,200,100),BOLL0,0);
DRAWBAND(BOLL0,RGB(50,150,50),LOWER0,0);
BOLL1:=MA(CLOSE,20);
UPPER1:=BOLL1+2*STD(CLOSE,20);
LOWER1:=BOLL1-2*STD(CLOSE,20);
DRAWBAND(UPPER1,RGB(255,220,0),BOLL1,0);
DRAWBAND(BOLL1,RGB(255,160,0),LOWER1,0);
BOLL2:=MA(CLOSE,30);
UPPER2:=BOLL2+2*STD(CLOSE,30);
LOWER2:=BOLL2-2*STD(CLOSE,30);
DRAWBAND(UPPER2,RGB(0,160,255),BOLL2,0);
DRAWBAND(BOLL2,RGB(0,160,255),LOWER2,0);
BOLL3:=MA(CLOSE,60);
UPPER3:=BOLL3+2*STD(CLOSE,60);
LOWER3:=BOLL3-2*STD(CLOSE,60);
DRAWBAND(UPPER3,RGB(200,160,255),BOLL3,0);
DRAWBAND(BOLL3,RGB(150,100,255),LOWER3,0);
BOLL4:=MA(CLOSE,120);
UPPER4:=BOLL4+2*STD(CLOSE,120);
LOWER4:=BOLL4-2*STD(CLOSE,120);
DRAWBAND(UPPER4,RGB(0,100,255),BOLL4,0);
DRAWBAND(BOLL4,RGB(0,100,255),LOWER4,0);
UMID:=(BOLL4+UPPER4)/2;
LMID:=(BOLL4+LOWER4)/2;
DRAWBAND(UMID,RGB(0,170,255),BOLL4,0);
DRAWBAND(BOLL4,RGB(0,140,255),LMID,0);
DIF1:=EMA(CLOSE,10)-EMA(CLOSE,120);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
STICKLINE(MACD1>0,BOLL4,BOLL4+MACD1,0.35,0),COLORRED;
STICKLINE(MACD1<0,BOLL4,BOLL4+MACD1,0.35,0),COLORBLUE;
MA120:BOLL4,COLORRED,LINETHICK5;
IF(BOLL4<REF(BOLL4,1),BOLL4,DRAWNULL),COLORBLUE,LINETHICK5;
MA60:BOLL3,COLORRED,LINETHICK4;
IF(BOLL3<REF(BOLL3,1),BOLL3,DRAWNULL),COLORBLUE,LINETHICK4;
MA30:BOLL2,COLORRED,LINETHICK3;
IF(BOLL2<REF(BOLL2,1),BOLL2,DRAWNULL),COLORBLUE,LINETHICK3;
MA20:BOLL1,COLORRED,LINETHICK2;
IF(BOLL1<REF(BOLL1,1),BOLL1,DRAWNULL),COLORBLUE,LINETHICK2;
MA10:BOLL0,COLORRED,LINETHICK1;
IF(BOLL0<REF(BOLL0,1),BOLL0,DRAWNULL),COLORBLUE,LINETHICK1;
DRAWKLINE(H,O,L,C);
高:(SMA(HIGH,13,2))*(1.05),COLOR0000FF;
低:(SMA(LOW,13,2))*(0.94999998),COLOR00FF00;
平:SMA(LOW,3,1),COLOR00FFFF;
短:SMA(CLOSE,2,1),COLORFF0000;
VAR1:=IF((CLOSE>180),91.3,0.91299998);
短支:(INTPART((CLOSE)/(VAR1)))*(VAR1),COLOR0000FF,CIRCLEDOT,LINETHICK1;
短压:短支+VAR1,COLOR008000,CIRCLEDOT,LINETHICK1;
VAR2:=(CLOSE>REF(短压,1)) AND (CLOSE>REF(高,1)) AND ((VOL)/(REF(VOL,1))>2) AND (VOL>MA(VOL,120));
DRAWICON(VAR2,LOW,1),COLORFF0000;
|