1、OBV趋势图 极品OBV优化后,起名OBV趋势图 公式的用法: 黄柱持股,绿柱走人,粉红柱观察。顺势而为,惊喜不断。 {OBV趋势图} {极品OBV M 1 100 13 N 1 100 5} DRAWGBK(C>0,RGB(0,120,0),RGB(0,70,0),0,' ',0); VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MA130:=MA(OBV,13); DRAWBAND(MA130,RGB(0,0,80),OBV1,RGB(160,0,000)); A1:=REF(OBV1,5)=HHV(OBV1,2*5+1); B1:=FILTER(A1,5); C1:=BACKSET(B1,5+1); D1:=FILTER(C1,5); T线:=REF(OBV,BARSLAST(D1)),COLORFFFF00,NODRAW; {STICKLINE(C>0,T线,T线,6,0),COLORFFFF00; DRAWICON(CROSS(OBV,T线),T线*0.99,1);} OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLOR00FFFF; MOBV:MA(OBV,13),COLORFF00FF; AAAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主动买盘:=IF(CLOSE>OPEN,AAAA*(HIGH-LOW),IF(CLOSE<OPEN,AAAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主动卖盘:=IF(CLOSE>OPEN,AAAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AAAA*(HIGH-LOW),VOL/2)); 买占比:=主动买盘/(主动买盘+主动卖盘)*100; WJ:=(HIGH+LOW+CLOSE)/3; VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ); VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN)); VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW); VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5); 买入量:=(VD9+VD8);卖出量:=(VD6+VD7); 买入资金:=买入量*CLOSE/100;卖出资金:=卖出量*CLOSE/100; ZIF:=EMA(OBV,12)-EMA(OBV,26); ZEA:=EMA(ZIF,9); ZBC:=2*(ZIF-ZEA); ZJS:=1.25*ZIF-0.25*ZEA; ZQS:(ZJS*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORFFFFFF,NODRAW; FX:=(ZIF*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORYELLOW,DOTLINE; FQS:(ZEA*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORFFFFFF,NODRAW; PHX:=(ZQS+FQS)/2,COLORMAGENTA; ZFC:ZQS-FX,COLOR00FFFF,NODRAW; FPX:=FX-PHX; STICKLINE(C,ZQS,FQS,1,1),COLORDD0000; STICKLINE(ZQS>FQS,ZQS,FQS,1,0),COLOR000080; STICKLINE(C,FX,PHX,1,1),COLORGREEN; STICKLINE(FX>PHX,FX,PHX,1,0),COLOR00FFFF; STICKLINE(FX>PHX AND FPX<REF(FPX,1),FX,PHX,1,0),COLOR00FF00; STICKLINE(FX<PHX AND FPX>REF(FPX,1),FX,PHX,1,0),COLORLIRED; DRAWBAND(ZQS,RGB(250,0,0),ZQS,RGB(250,0,0)); DRAWBAND(FQS,RGB(0,250,250),FQS,RGB(0,250,250)); {股 民 学 院 : http://www.58188.net 整理} 2、QMACD QMACD 只做大概率 {公式名称: QMACD 公式描述: 只做大概率 } VAR1:=5; VAR2:=14; VAR3:=REF(CLOSE,1); VAR4:=SMA(MAX(CLOSE-VAR3,0),VAR1,1)/SMA(ABS(CLOSE-VAR3),VAR1,1)*100; VAR5:=100*(HHV(HIGH,VAR2)-CLOSE)/(HHV(HIGH,VAR2)-LLV(LOW,VAR2)); VAR6:=CROSS(VAR4,20) OR CROSS(VAR4,VAR5) OR CROSS(82,VAR5) OR CROSS(VAR4,34); VAR7:=VOL>REF(VOL,1)*1.91; VAR8:=IF(OPEN<CLOSE,(CLOSE-OPEN)/REF(CLOSE,1),0); VAR9:=IF(OPEN>CLOSE,(OPEN-CLOSE)/REF(CLOSE,1),0); VAR10:=SUM(VAR8-VAR9,5); VAR11:=0.382*(HIGH+LOW-OPEN-CLOSE)+0.382*OPEN+0.618*CLOSE+0.618*IF(CLOSE<200,AMOUNT/VOL/100-CLOSE,HIGH+LOW-OPEN-CLOSE); VAR12:=MA(VAR11-REF(VAR11,1),5); VAR13:=EMA(VAR12,12)-EMA(VAR12,26); VAR14:=EMA(VAR13,9); VAR15:=VAR11+VAR10; VAR16:=MA(VAR15-REF(VAR15,1),5); VAR17:=EMA(VAR16,12)-EMA(VAR16,26); VAR18:=EMA(VAR17,9); VAR19:=(VAR17-VAR18)*2; NNN:VAR6 AND VAR13>VAR18 AND VAR19>REF(VAR19,1) AND VOL<HHV(VOL,17) AND COUNT(VAR7,21)>2; {股 民 学 院 : http://www.58188.net 整理} 3、顶底买卖点 和RSI和KD类似,有买卖点提示信号,没有未来函数信号不漂移。 很适合震荡和波段行情,效果很好。 SJ:=1; A:=TIME; B:=A=1500 OR A=1515; TEMPNUM:=BARSLAST(B); LCLOSENUM:=IF(TEMPNUM=0,REF(TEMPNUM,1)+1,TEMPNUM); NUM:=IF(PERIOD=5,1,LCLOSENUM);LCLOSE:=REF(CLOSE,NUM); H1:=MAX(LCLOSE,H); L1:=MIN(LCLOSE,L); P1:=H1-L1; 阻力:=L1+P1*7/8,COLORGREEN; 支撑:=L1+P1*0.5/8,COLORRED; 中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); 趋势线:EMA(V11,3),LINETHICK1,COLORYELLOW; V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100; 准备买入:STICKLINE(趋势线<11,趋势线,11,5,0),COLORRED; AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线; BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线; BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11); BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6); BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3); BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1); BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0); BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1; 下单买入:STICKLINE(BB=1 AND C<中线,11,52,1,0),COLORRED; {DRAWICON(BB=1 AND C<中线,55,1);} DRAWTEXT(BB0,60,'买'),COLORRED; DRAWTEXT(AA,16,'准备买入'),COLOR00FFFF; 准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),COLORGREEN; CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线; DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线; DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线); DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线); DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线); DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线); DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线); DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1; 下单卖出:STICKLINE(DD=1 AND C>中线,89,49,1,0),COLORGREEN; {DRAWICON(DD=1 AND C>中线,55,2);} DRAWTEXT(DD0,40,'卖'),COLORGREEN; DRAWTEXT (CC,84,'准备卖出'),COLORFFFF00; 顶:89*SJ,COLORGREEN; 底:11*SJ,COLORRED; 中:50*SJ,POINTDOT,COLORWHITE; |