{盛唐量圖}
{參數(shù)N:(1,100,5) K(0,1,0)} 量:V,NODRAW; 換手:IF(PERIOD=5 AND C<300,V/CAPITAL*100,V/3),NODRAW; DRAWBAND(100,RGB(180,100,100),0,RGB(0,0,0)); DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100/CEILING(C/8)+50; DEA:=EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)*100/CEILING(C/8)+50; MACD:=(DIF-DEA)*2+50; 注意:=LLV(LOW,10); 防頂:=HHV(H,25); 來(lái)到:=EMA((C-注意)/(防頂-注意)*4,4); VARA:=EMA(REF(CLOSE,1),4); 色彩峰:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*30)+50; DRAWICON(CROSS(3.5,來(lái)到),色彩峰*1.01,13); DRAWBAND(色彩峰,RGB(00,100,80),50,RGB(0,0,0)); DRAWBAND(50,RGB(0,150,150),0,RGB(0,0,0)); STICKLINE(MACD>=50,50,MACD,4,0),COLOR666666; STICKLINE(MACD>=50 AND MACD>REF(MACD,1),50,MACD,3,0),COLOREAEAEA; STICKLINE(MACD<50 AND MACD>REF(MACD,1),50,(50-MACD)*0.5+50,0,0),COLORFFFFFF; TT:=240/FROMOPEN; 比:=TT; WJ:=(H+L+C)/3; V1:=IF(H=L,1,H-MAX(O,C)); V2:=IF(H=L,1,MAX(C,O)-WJ); V3:=IF(H=L,1,MIN(O,C)-L); V4:=IF(H=L,1,WJ-MIN(C,O)); V5:=VOL/IF(H=L,4,H-L); V6:=(V1*V5); V7:=(V2*V5); V8:=(V3*V5); V9:=(V4*V5); 買盤1:=DYNAINFO(23)*比; 賣盤1:=DYNAINFO(22)*比; 買盤2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8)); 賣盤2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7)); 買盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,買盤1,買盤2); 賣盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,賣盤1,賣盤2); 買賣差1:=買盤-賣盤; 換手買:=IF(PERIOD=5 AND C<300,買盤/CAPITAL*100,買盤/3); 換手賣:=IF(PERIOD=5 AND C<300,賣盤/CAPITAL*100,賣盤/3); 買賣差:=換手買-換手賣; 買賣:=換手買+換手賣; 昨V:=REF(買賣,1); 昨換手買:=REF(換手買,1); 昨換手賣:=REF(換手賣,1); 前V:=REF(買賣,2); 前換手買:=REF(換手買,2); 前換手賣:=REF(換手賣,2); 大前V:=REF(買賣,3); 大前換手買:=REF(換手買,3); 大前換手賣:=REF(換手賣,3); 最大1:=MAX(大前V,前V); 最大2:=MAX(昨V,買賣); 最大:=MAX(最大1,最大2),NODRAW; MM0:=最大/58,NODRAW; MM1:=CONST(INTPART(大前V/MM0)),NODRAW; MM2:=CONST(INTPART(前V/MM0)),NODRAW; MM3:=CONST(INTPART(昨V/MM0)),NODRAW; MM4:=CONST(INTPART(買賣/MM0)),NODRAW; MM11:=CONST(INTPART(大前換手買/MM0)),NODRAW; MM22:=CONST(INTPART(前換手買/MM0)),NODRAW; MM33:=CONST(INTPART(昨換手買/MM0)),NODRAW; MM44:=CONST(INTPART(換手買/MM0)),NODRAW; MM111:=CONST(INTPART(大前換手賣/MM0)),NODRAW; MM222:=CONST(INTPART(前換手賣/MM0)),NODRAW; MM333:=CONST(INTPART(昨換手賣/MM0)),NODRAW; MM444:=CONST(INTPART(換手賣/MM0)),NODRAW; HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14); AK:=EMA((DMP-DMM)*1,3)*100+50,COLORFFFFFF; AD:=EMA((MA(DMP,3)-MA(DMM,3))*1,3)*100+50,COLORFFFFFF; 絕對(duì)A:=40/100; VAR1:=HHV(HIGH,18); 獵熊HIGH:=(VAR1-LOW)/VAR1; 獵熊LOW:=(VAR1-HIGH)/VAR1; 南熊線:=獵熊HIGH; TR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N); PDI:= DMP*100/TR; MDI:= DMM*100/TR; ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6); 基本超跌線:=MA(HHV(獵熊LOW,N),21); 西熊線:=EMA(COUNT(CLOSE>REF(CLOSE,1),12),3 )/24; 北熊線:=ADX*HHV(南熊線,60)/HHV(ADX,60); T:=ABS(IF(北熊線+南熊線-西熊線*2>0,北熊線+南熊線-西熊線*2,0)); 點(diǎn)熊線:=EMA(T,3); 點(diǎn)熊輔線:=(SLOPE (點(diǎn)熊線,7)+1)*REF(點(diǎn)熊線,1); DRAWBAND(點(diǎn)熊線*100,RGB(255,00,00),0,RGB(00,00,00)); DRAWBAND(點(diǎn)熊輔線*100,RGB(255,255,00),0,RGB(0,00,00)); STICKLINE(C>=O,0,(換手買+換手賣)*N,2.2,1),COLORRED; STICKLINE(C<O,0,(換手買+換手賣)*N,2.2,1),COLORFFFF00; STICKLINE(買賣差>=0,0,換手買*N,1.5,0),COLORRED; STICKLINE(買賣差>=0 AND C>=MA(C,30),0,換手買*N,2.2,0),COLORRED; STICKLINE(買賣差>=0,0,換手賣*N,0.8,0),COLOR998800; STICKLINE(買賣差>=0 AND C>=MA(C,30),0,換手賣*N,1,0),COLORDDCC00; STICKLINE(買賣差<0,0,換手買*N,1.8,0),COLORRED; STICKLINE(買賣差<0 AND C>=MA(C,30),0,換手買*N,2.2,0),COLORRED; STICKLINE(買賣差<0,0,換手賣*N,0.8,0),COLOR998800; STICKLINE(買賣差<0 AND C>=MA(C,30),0,換手賣*N,1,0),COLORDDCC00; STICKLINE(1,0,MAX(換手買*N,換手賣*N),0,0),COLORFFFFFF; VAR11:=(2*CLOSE+HIGH+LOW)/4; VAR22:=LLV(LOW,34); VAR33:=HHV(HIGH,34); 散戶:= EMA((VAR11-VAR22)/(VAR33-VAR22)*100,13); 新莊:= EMA(0.667*REF(散戶,1)+0.333*散戶,2); 散戶1:=IF(K=0,散戶,DRAWNULL); 新莊1:=IF(K=0,新莊,DRAWNULL); AK1:=IF(K=0,AK,DRAWNULL); AD1:=IF(K=0,AD,DRAWNULL); DRAWBAND(散戶1,RGB(255,255,00),新莊1,RGB(0,255,00)); DRAWBAND(AK,RGB(255,00,00),AD,RGB(0,255,255)); 逢低吸吶:IF(CROSS(散戶,新莊) AND 散戶<40 AND CURRBARSCOUNT<30,25,10),COLORRED,LINETHICK2; 逢高減磅:IF(CROSS(新莊,散戶) AND 新莊>75 AND CURRBARSCOUNT<30,75,90),COLORGREEN,LINETHICK2; P1:=IF(BARSLAST(CURRBARSCOUNT=MM1),1,0); P2:=IF(BARSLAST(CURRBARSCOUNT=MM2),1,0); P3:=IF(BARSLAST(CURRBARSCOUNT=MM3),1,0); P4:=IF(BARSLAST(CURRBARSCOUNT=MM4),1,0); STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P1),94,100,MM1*3,1),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P2),84,90,MM2*3,1),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P3),74,80,MM3*3,1),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P4),64,70,MM4*3,1),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P1 AND REF(C,3)>=REF(O,3)),94,100,MM1*3,1),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P2 AND REF(C,2)>=REF(O,2)),84,90,MM2*3,1),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P3 AND REF(C,1)>=REF(O,1)),74,80,MM3*3,1),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P4 AND C>=O),64,70,MM4*3,1),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P1),94.5,99.5,MM11*3,0),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P2),84.5,89.5,MM22*3,0),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P3),74.5,79.5,MM33*3,0),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P4),64.5,69.5,MM44*3,0),COLOR0000FF; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P1),96,98,MM111*3,0),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P2),86,88,MM222*3,0),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P3),76,78,MM333*3,0),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND CONST(P4),66,68,MM444*3,0),COLORFFFF00; STICKLINE(K=0 AND CURRBARSCOUNT=60 AND C>0,0,100,0,0),COLOR00FFFF; SAT:=((買盤+賣盤)/C)/(HHV(V,20)/HHV(C,20)); 量能飽和:=IF(SAT>1,1,SAT)*100; STICKLINE(K=0 AND CURRBARSCOUNT=60,48 ,38,100,1),COLOR00DDDD; STICKLINE(K=0 AND CURRBARSCOUNT=60,47,39,量能飽和,0),COLOR0033FF; STICKLINE(K=0 AND CURRBARSCOUNT=60,44,42,量能飽和,0),COLOR00DDFF; 紅紅的天:=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); IF(CROSS(紅紅的天,2),70,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF77FF; L1:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100-10; 鳳K:SMA(L1,3,1),COLORFFFFFF; 鳳D:SMA(鳳K,3,1),COLORFFFFFF; A:=EMA((MA(DMP,3)-MA(DMM,3))*1.1,3)/2+0.125; B:=EMA((DMP-DMM)*1.1,3)/2+0.125; 完美理想:=獵熊LOW >=0.5 AND 基本超跌線>=0.5 AND 獵熊LOW >基本超跌線 ; 第一理想:=完美理想=0 AND 獵熊LOW>絕對(duì)A AND 基本超跌線>絕對(duì)A AND 獵熊LOW>基本超跌線; 殘缺理想:=獵熊LOW>0.3 AND 基本超跌線>0.3 AND 獵熊LOW>基本超跌線 AND 第一理想=0 AND 完美理想=0; 點(diǎn)熊成金:=點(diǎn)熊線>基本超跌線 AND CROSS(點(diǎn)熊輔線,點(diǎn)熊線)AND 點(diǎn)熊輔線>REF(點(diǎn)熊輔線,1); 捕獲小熊:=CROSS(點(diǎn)熊線,0.125); 選1:=CROSS(B,A) AND (完美理想 OR 第一理想 OR 殘缺理想); 選2:=(點(diǎn)熊成金 OR 捕獲小熊) AND CROSS(B,A) AND 基本超跌線<0.15; STICKLINE(選1 OR 選2 OR ( CROSS(AK,AD) AND CROSS(鳳K,鳳D) AND 鳳K<75) OR (CROSS(AK,AD) AND AD<40 ),49,50,8,0),COLOR00DDDD; |
|
來(lái)自: 牛頭牛 > 《公式指標(biāo)》