MYGB1:=REF(JJ,2)<0 AND REF(JJ,1)<0 AND JJ<0 AND ABS(REF(JJ,2))<ABS(REF(JJ,1)) AND ABS(REF(JJ,1))>ABS(JJ);
MYGB3:=REF(JJ,2)>0 AND REF(JJ,1)>0 AND JJ>0 AND ABS(REF(JJ,2))<ABS(REF(JJ,1)) AND ABS(REF(JJ,1))>ABS(JJ);
STICKLINE(MYGB1,0,JJ,0.1,0),COLORMAGENTA;
STICKLINE(MYGB3,0,JJ,0.1,0),COLORYELLOW;
逃頂:=IF(PEAKBARS(3,15,1)=1,0.5,1.5),COLORGREEN;
M:=C/REF(C,1)<=1.02 AND V/REF(V,1)>=2 AND K>D;
N:=O>REF(C,1) AND HIGH/(C-O)>=2 AND K>D;
G:=C/REF(C,1)>=1.312*REF(V,1) AND K>D;
紅包:=IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),1,(0)),COLORYELLOW;
DRAWTEXT(紅包,D,'買'),,COLORYELLOW;
T:=COUNT(REF(C,1)/C>1.03,3)=3;
DRAWTEXT(REF(紅包,1)=1 AND REF(T,1),D*0.98,'少買') ,LINETHICK2,COLORCYAN;
DRAWTEXT(REF(紅包,1)=1 AND REF(COUNT(REF(C,1)/C>1.09,2)=2,1),D,'介入'),
LINETHICK2,COLORCYAN;
Q:=REF(紅包,1)=1 AND O>REF(L,1);
DRAWTEXT(Q AND REF(T,1),逃頂*0.98,'堅買') ,LINETHICK2,COLORYELLOW;
DRAWTEXT(Q AND REF(COUNT(REF(C,1)/C>1.09,2)=2,1),逃頂*0.98,'快買'), LINETHICK2,COLORYELLOW;
============================副圖 SKDJ 大盤頂?shù)?/P>
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
K:EMA(RSV,3);
D:MA(K,3);
DRAWBAND(K,RGB(200,10,10),D,RGB(10,200,10));
20,POINTDOT,COLORCYAN;
50,COLORRED,POINTDOT;
80,POINTDOT,COLORWHITE;
IF(K>D,K,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(K<D,K,DRAWNULL),COLORCYAN,LINETHICK1;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
趨勢線:=LLV(階段底部,1),COLORWHITE,LINETHICK0;
STICKLINE((階段底部 < 0),20,25,1,0),LINETHICK6,COLORYELLOW;
STICKLINE(CROSS(階段底部,0),20,30,1,0),LINETHICK6,COLORRED;
STICKLINE((趨勢線 >230 ),90,85,1,0),LINETHICK6,COLORGREEN;
============================副圖 漲跌都賺
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW)/4);
20,POINTDOT;
90,COLORFFFF00,POINTDOT;
VAR4:=LLV(LOW,3);
VAR5:=HHV(HIGH,3);
C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),3)*VAR1),COLORFF00FF;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF;
DRAWBAND(C1,RGB(250,10,10),C2,RGB(10,250,10));
條件:=CROSS(C1,C2) AND C1<40;
條件0:=CROSS(C2,C1) AND C1>90;
DRAWICON(條件,C2*0.98,1);
DRAWICON(條件0,C1*1.02,2);
============================主圖 秀才7號
CDP:=(REF(H,1)+REF(L,1)+2*REF(C,1))/4;
高:CDP+(H-L),COLORGREEN,NODRAW;
賣:CDP*2-L,COLORCYAN,NODRAW;
阻:((H+O+L+C)/4)-L+DYNAINFO(21),COLORWHITE,NODRAW;
支:DYNAINFO(20)-(((H+L+8*C)/10)-L),COLORYELLOW,NODRAW;
買:CDP*2-H,COLORMAGENTA,NODRAW;
低:CDP-(H-L),COLORRED,NODRAW;
價:C,COLORWHITE,NODRAW;
(南方財富網(wǎng)SOUTHMONEY.COM)