http冒號//blog點(diǎn)sina點(diǎn)com點(diǎn)cn/zhao588588
回復(fù) 2011-01-08 08:28
啊沙鷗
10樓
http冒號//blog點(diǎn)9666點(diǎn)cn/blog/110/11/17/8544點(diǎn)html 這里保存了幾個公式
回復(fù) 2011-01-10 10:27
啊沙鷗
11樓
尋找俺的牛股等幾個公式
這個公式是 后知后覺 老師 以前發(fā)的 ,,我?guī)椭笥蜒b家里的電腦上了.今天無意看到,發(fā)出來給大家使用,。
.................................................................................................................................
注意:裝在主圖疊加上 。
參數(shù) N1 1.00 100.00 5.00
N2 1.00 100.00 5.00
N 1.00 100. 00 9.00
牛A: MA(CLOSE,13); 牛B: (EMA(CLOSE,N1)*7+EMA(CLOSE,N2)*3)/10; 牛C: MA(CLOSE,120); VRA:=REF(CLOSE,1); VRB:=SMA(MAX(CLOSE-VRA,0),6,1)/SMA(ABS(CLOSE-VRA),6,1)*100; VRC:=(2*CLOSE+HIGH+LOW)/4; VR0:=LLV(LOW,34); VR1:=HHV(HIGH,34); VR2:=EMA((VRC-VR0)/(VR1-VR0)*100,6); VR3:=EMA(0.667*REF(VR2,1)+0.333*VR2,4); STICKLINE(牛B>牛A,牛A,牛B,0.1,1); STICKLINE(牛B<牛A,牛A,牛B,0.1,1); {黑馬均線} VA1:=(REF(HIGH,1)+REF(LOW,1))/2; VA2:=MA(CLOSE,20)+2*STD(CLOSE,20); VA3:=REF(CLOSE,1); VA4:=SMA(MAX(CLOSE-VA3,0),7,1)/SMA(ABS(CLOSE-VA3),7,1)*100; VA5:=CROSS(79,VA4); VA6:=FILTER(VA5,4); D:=MA(CLOSE,80)-MA(CLOSE,10)/3; VA7:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); X1:=CROSS(VA1,VA2) OR VA6; X2:=CROSS(84,VRB);
STICKLINE(X1 OR X2,HIGH*1.01,HIGH*1.03,6,0); Y1:=IF(COUNT(CLOSE0.3 AND COUNT(VA2>VA3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0); Y2:=IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSEY3:=CROSS(VA7,10); Y4:=IF(COUNT(CLOSE0.3 AND COUNT(VR2>VR3,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0);
STICKLINE(Y1 OR Y2 OR Y3 OR Y4,LOW*0.99,LOW*0.97,3,0); ............................................................................
短線快槍.....副圖
A01:=(C-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3)); A11:=SMA(A01,2,1); A21:=SMA(A11,2,1); A31:=3*A11-2*A21 ; A41:=2*A31-0.5; 生命線:C*(1-(A41-A21)/15),COLORRED,LINETHICK2; 弱: IF(MA(CLOSE,4)>SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01),COLORCYAN,COLORBLUE; 強(qiáng):IF(SMA(LOW,21,2)*1.01>=REF(SMA(LOW,21,2)*1.01,1),SMA(LOW,21,2)*1.01,DRAWNULL),LINETHICK1,COLORMAGENTA; DRAWTEXT(CROSS(C,IF(MA(CLOSE,4)>SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01,SMA(LOW,21,2)*1.01)),LOW,'△'),COLORYELLOW; DRAWTEXT(CROSS(C,生命線),LOW,'△'),COLORGREEN; DRAWTEXT(FILTER(EMA(EMA(C,5),5)>REF(EMA(EMA(C,5),5),1)AND HHV(MA(H,13),13)REF(C,1),11),L*0.98,'追漲'),COLORGREEN; DRAWTEXT(CROSS(84,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100),H*1.03,'逃頂'),COLORRED; 阻力: PEAK(1,5,1),COLOR66CC00; 支撐: TROUGH(2,5,1),COLORFFB97A; .....................................................................................................
支撐壓力...最好裝主圖
VAR1:=IF(DATE>=10201201,0,1); VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55); VAR3:=EMA(CLOSE,3); VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1; VAR5:=VAR2-VAR3; 風(fēng)險(xiǎn)線:EMA(VAR4,45)*1.15; 必賣線:EMA(VAR4,55)*1.3; 底線:EMA(VAR4,40)*0.85; 鐵底線:EMA(VAR4,88)*0.7,COLORRED; 成本線:EMA(VAR4,55),COLORGREEN; 持倉:STICKLINE(VAR5>=0,VAR3,VAR2,0.5,0),LINETHICK2; 減倉:STICKLINE(VAR5<0,VAR3,VAR2,0.5,0),LINETHICK2,COLORYELLOW; 價值中樞: (成本線+底線)/2,COLORFFFF00; ...............................................................................................
名字自己起.......裝主圖
VAR1:=REF(CLOSE,2);
會員專用: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
極品逃亡: IF(會員專用< REF(會員專用,1) AND 會員專用>79,會員專用,0);
DRAWTEXT(極品逃亡 ,70 ,'★<-極品逃亡'),COLORYELLOW,LINETHICK1;
DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C=1.01,L-L*0.02,'★<--極品絕底初現(xiàn)'),LINETHICK1;
DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),L,'★<--極品絕底'),COLORBLUE, LINETHICK1;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
特殊會員專用:3*Q3-2*Q4,COLORWHITE,LINETHICK2;
Q8:=HHVBARS(HIGH, 50);
Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;
跨越:EMA(Q3, 3),COLORRED;
DRAWTEXT(CROSS(特殊會員專用, 8) AND Q10<-13,20,'*大底來'),COLORYELLOW,LINETHICK5;
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
機(jī)構(gòu)做空能量線: SMA(VAR12,3,1),COLORGREEN,LINETHICK2;
大底來: 0,POINTDOT;
大底: 0,POINTDOT;
DRAWTEXT(CROSS(跨越,機(jī)構(gòu)做空能量線) ,大底+40,'進(jìn)入強(qiáng)勢區(qū)域'),COLORYELLOW,LINETHICK1;
DRAWTEXT(CROSS(特殊會員專用,跨越) ,大底+20,'進(jìn)入拉升區(qū)域'),LINETHICK1;
DRAWTEXT(CROSS(跨越,特殊會員專用) ,大底+70,'注意調(diào)整'),COLORFFAA66,LINETHICK1;
●注意買入點(diǎn): DRAWTEXT(REF(CROSS(機(jī)構(gòu)做空能量線,跨越),25) AND 機(jī)構(gòu)做空能量線>1.005*跨越,跨越,'●<-注意買入點(diǎn)'),COLORBLUE,LINETHICK1;
★逢低買入: DRAWTEXT(REF(CROSS(跨越,特殊會員專用),82) AND 跨越>1.3*特殊會員專用,特殊會員專用,'★<<-逢低買入'),LINETHICK1;
回復(fù) 2011-01-10 10:31
啊沙鷗
12樓
主動買盤.這個公式好用,,可以看到主力買盤占有多大比例.建議安裝
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 成交:VOL,POINTDOT; 主動買盤:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT; 主動賣盤:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT; STICKLINE(VOL>0,VOL,0,2,1),COLORWHITE; STICKLINE(主動買盤>0,0,主動買盤,2,0),COLORRED; STICKLINE(主動賣盤<0,0,主動賣盤,2,0),COLOR00FF00;
回復(fù) 2011-01-10 15:33
啊沙鷗
13樓
智能箱體.......
注意:安裝到主圖
MA05:MA(C,5)LINETHICK3,COLOR00CCFF; MA10:=MA(C,10); MA20:=MA(C,20); MA30:=MA(C,30); VAR1:=MA(CLOSE,5),COLOR00FFFF; VAR6:=MA(CLOSE,54),COLORFF9900; VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2; VARA:=REF(CLOSE,1); VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100; DRAWTEXT(DATE>700101 AND CROSS(84,VARE),HIGH,'注意'),COLORGREEN; VARF:=(2*CLOSE+HIGH+LOW)/4; VAR10:=LLV(LOW,23); VAR11:=HHV(HIGH,23); VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6); VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4); DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VAR12>VAR13,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),LOW,'注意'),COLORYELLOW; RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100; K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=3*K24-2*D24; 壓力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FFFF,LINETHICK1; 支撐位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORFFFF00,LINETHICK1; 支撐價:LLV(LOW,34) ,COLORFF00FF,LINETHICK3; 阻力價:HHV(HIGH,19),COLORFF9900, LINETHICK3; 十日均價:MA(C,5),COLOR00FFFF,LINETHICK2; 漲:IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2; 平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLOR00FFFF,LINETHICK3; 跌:IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2; DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,'★M底背'),COLOR00FFFF;{MACD底背離} DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,'★M頂背'),COLOR00FF00;{MACD頂背離}; 五日乖離率:=(C-MA05)/MA05*100; BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416; 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; 三拾日乖離率:=(C-MA30)/MA30*100,NODRAW; {股旁網(wǎng)-股票公式網(wǎng)站 ■■■} VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1); BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416; 強(qiáng)勢狙擊:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 加倉:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA10>REF(MA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ; 清倉:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10<REF(MA10,1),10); DRAWTEXT(加倉 ,LOW*0.98,'←加倉'),COLORRED; JC:=CROSS(0,五日乖離率) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10>REF(MA10,1) ; 減倉:=FILTER(JC,10); MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30; 買入:=FILTER(MR,10); DRAWTEXT(減倉,HIGH*1.02,'←風(fēng)險(xiǎn)'),COLORCYAN; DRAWTEXT(買入,LOW*0.98,'←買底'),COLORYELLOW; DRAWTEXT(清倉 ,HIGH*1.02,'←清倉'),COLORGREEN; DRAWTEXT(強(qiáng)勢狙擊,LOW*0.98,'←強(qiáng)勢狙擊'),COLORYELLOW; VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100); MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); DRAWTEXT(CROSS(88,RSI),(HIGH * 1.01),'R背'),COLOR00FF00; X1:=(C+L+H)/3; BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10; 上:=EMA(C,3),COLORBLUE,LINETHICK1; 中:=EMA(C,5),COLORWHITE,LINETHICK1; 下:=EMA(中,5),COLOR00FF00,LINETHICK1; QQ:= C<中; MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ; V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1)); V3:=(1+7/100)*(DMA(CLOSE,V1)); V5:=MA((LOW+HIGH+CLOSE)/3,5); {收盤價=4日內(nèi)收盤價的最高值 AND 昨收=4日內(nèi)收盤價的最低值} VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2); {收盤價=4日內(nèi)收盤價的最低值 AND (昨收<2日前的收盤價} VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1); {昨收=4日內(nèi)收盤價的最低值 AND 收盤價>=2日前的收盤價} VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1); {昨收=4日內(nèi)收盤價的最高值 AND 收盤價<2日前的收盤價} VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2); {今日V5向上形成拐點(diǎn)} VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN; VAR08:=VAR07 AND COUNT(VAR06,2); VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); {漲停} STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1), COLOR00FFFF; {跌停} STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1), COLORGREEN; TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1; 立樁量:=FILTER(TJ1,5); TJ2:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(HIGH,3),1,0))); 突破:=TJ2=1; TJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0))); 三天法則:=TJ3=1; 成立:=三天法則 AND 突破; 條件成立:=FILTER(成立,3); DRAWTEXT(條件成立,L*0.99,'成立'),COLOR00FFFF; DRAWTEXT(立樁量,L*0.99,'樁量'),COLOR0000FF; {綠} STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.0,0),COLOR00CC00; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.7,0),COLOR003300; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.1,0),COLOR006600; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR009900; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.9,0),COLOR00CC00; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.3,0),COLOR00FF00; {紅} STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0),COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.0,0),COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.7,0),COLOR000077; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.1,0),COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.9,0),COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.3,0),COLOR0000FF; {藍(lán)色} STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,3.0,0),COLORFFFF33; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.7,0),COLORFF3333; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,2.1,0),COLORFF6633; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORFF9933; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.9,0),COLORFFCC33; STICKLINE(VAR03,OPEN,(OPEN+CLOSE)/2,0.3,0),COLORFFFF33; {灰} STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,3.0,0),COLOR00FFFF; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.7,0),COLOR0033FF; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,2.1,0),COLOR0066FF; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR0099FF; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.9,0),COLOR00CCFF; STICKLINE(VAR04 AND MM,OPEN,(OPEN+CLOSE)/2,0.3,0),COLOR00FFFF;
回復(fù) 2011-01-10 15:43
啊沙鷗
14樓
圖片看不清楚,,可以-----右鍵---圖片另存為----存到自己電腦里打開 放大看.
回復(fù) 2011-01-10 15:45
wqz004
15樓
謝謝樓主
回復(fù) 2011-01-11 16:22
啊沙鷗
16樓
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27); DEA:EMA(DIFF,9); MACD:=2*(DIFF-DEA); STICKLINE(MACD>=0,MACD,0,2,1),COLORF00FF0; STICKLINE(MACD<0,MACD,0,2,1),COLORWHITE; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00AAFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00BBFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00CCFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00DDFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00EEFF; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR00FFFF; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0000AA; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0011BB; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0022CC; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0033DD; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0044EE; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0055FF; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORAA00BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORBB11BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORCC22BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORDD33BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOREE44BB; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFF55BB; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFAA00; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFBB11; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFCC22; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFDD33; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFEE44; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORFFFF55; IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1; IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1; IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1; IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1; 低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1; STICKLINE(低位金叉,0,-0.18,2,0),COLORYELLOW; DRAWTEXT(低位金叉,-0.1,' 低位金叉'),COLORYELLOW; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,0,-0.18,2,0),COLORFF00FF; DRAWICON(二次金叉,DEA*1.04,13) ; DRAWTEXT(二次金叉,-0.1,' 二次金叉'),COLORFF00FF; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(底背離,0,0.13,2,0),COLOR00FF00; DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK2; DRAWTEXT(底背離,0.1,' 底背離'),COLOR00FF00; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK2;
公式 MACD指標(biāo) 副圖.........000690
|