MACD量能定位顶底判多空: VARE1:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1); VARE2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1); VARE3:=IF(VARE1>0.010, 0.900, 1) AND IF(VARE1>(-0.025), 1, 1.200); DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); VARE4:=VARE3*(VARE2-VARE1)*100; VARE5:=SUM(VARE4, 10); VARE6:=SMA(VARE5, 40, 1); VARE7:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,88,0); VARE8:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND VARE7>0, 91, 0); KX:=BARSSINCE(CLOSE); HHN:=CONST(HHV(DIFF,KX)); HLN:=CONST(LLV(DEA,KX)); RC1:=CONST((HHN+HLN)/2); SS:=((HHN-HLN)/200); MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999; MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033; MACD中轴:=0+-(-100*SS+RC1); DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080; DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00; MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW; MACD超跌:=CONST(LLV(MACD修正,KX)); MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部); MACD多头:DIFF修正+-MACD超跌线,COLOR339999; 空头:DEA修正+-MACD超跌线,COLOR00FF00; 追击:IF(VARE8>90,30,0),STICK,LINETHICK3,COLORBLUE; DRAWTEXT(VARE8>90,30,'追击'),COLORYELLOW; VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); WWWCHNMONEYCOM:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)); IF(VAR1>5,IF(VAR1<100,VAR1,VAR2-10),0), COLORSTICK; 中轴:=MACD中轴+-MACD超跌线; 量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW; 超前DEA:=(EMA(MACD多头,7)); 超前MACD:=2*(MACD多头-超前DEA)+中轴; 主力增减,指标加密,无未来 DIF:EMA(CLOSE,9)-EMA(CLOSE,18); DEA:EMA(DIF,7),LINETHICK1; VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100; VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13); VAR5:=LLV(LOW,34); VAR6:=HHV(VAR4,34); VAR7:=IF(LLV(LOW,56),1,0); A:=(CLOSE-LLV(LOW, 21))/(HHV(HIGH, 21)-LLV(LOW, 21))*100; A1:=SMA(A, 9, 1); A2:=SMA(A1, 3, 1); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; VAR9:=EMA(CLOSE,5); VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10); MACD:=2*(DIF-DEA); STICKLINE(VAR9>REF(VAR9,1),0,VAR9*0.08,4,1),COLOR10E410; 减仓:IF(VAR9>REF(VAR9,1),VAR9,0),COLOR10E410,LINETHICK0; STICKLINE(VAR9<REF(VAR9,1),0,VAR9*0.08,4,1),COLOR1010FF; 增仓:IF(VAR9<REF(VAR9,1),VAR9,0),COLOR1010FF,LINETHICK0; STICKLINE(VAR8>REF(VAR8,1),0,VAR8,4,1),COLOR10FFFF; STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0; STICKLINE(MACD<0,MACD,0,0,0),COLORF00FF0; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0 ),COLORFFFF00; 短跑:EMA(A1, 3),COLORRED; KD:3*SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1),3,1), COLORYELLOW; 提示准备买入: IF(KD<=10,20,0)STICK,LINETHICK2,COLORYELLOW ; 主力进场:IF(VAR8>REF(VAR8,1),VAR8*8,0),COLOR10FFFF,LINETHICK0; STICKLINE(VAR8<REF(VAR8,1),0,VAR8,4,1),COLORFFF810; 主力持仓:(LOW*5),COLORFF10FF,LINETHICK0; 增减力度:VAR10,COLORFF7676; IF(DIF<0,DIF,0),COLORRED,LINETHICK1; IF(DIF<0,0,DIF),COLORRED,LINETHICK1; IF(DIF<DEA,DIF,DEA),COLOR00FF00,LINETHICK1; IF(DIF>DEA,DEA,DEA),COLORWHITE,LINETHICK1; XL1:=MA(LOW,2)*0.96; XL2:=MA(LOW,26)*0.85; XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2); DRAWTEXT(KD<=98 AND REF(KD>98,1),100,'落袋为安')COLORGREEN; STICKLINE(KD<=98 AND REF(KD>98,1),90,110,5,0)COLORBLUE; 顶部:110,COLORRED; 跨栏:88; STICKLINE(XL3,0,VAR8*3,4,0),COLOR006EFF; DRAWTEXT(XL3,VAR8*2,'买'),COLOR006EFF; ↑买:DRAWICON(XL3,0,4),COLORRED; 金叉:=CROSS(DIF,DEA) AND DIF<0.3; STICKLINE(金叉,0,-0.38,3,0),COLOR0000FF; WWWCHNMONEYCOM:IF(VAR8<REF(VAR8,1),VAR8*10,0),COLORFFF810,LINETHICK0; DRAWTEXT(KD<88 AND REF(KD>88,1),88, '短跑'),COLORRED,LINETHICK5; 高空低多:(顶尖财经:股票学院 http://www.58188.com) 趋势线: 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); 见底信号: 2.5; 买点准备: IF(趋势线<=2.5,100,0); {奇妙波段} YLP—实战趋势线:=SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,3,1),3,1); X:=SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1); X1:=SMA((CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100,5,1); YLP—奇妙波段:=MA((3*X-2*SMA(X,3,1)),3);见顶信号: 99;卖点准备: IF(趋势线<=99,100,0); |