一共是 3个公式,私募使用的。珍藏 公式用法: 看财神买点附图,只要出现财神图标,就是个股最佳买点 {财神主图} 空:=EMA(C,5); 均衡:EMA(空,5),COLORWHITE; 中轨:HHV(MA(H,13),13),COLORRED,LINETHICK2; 趋势:LLV(MA(H,13),1),COLORBLUE,LINETHICK2; VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5); VARC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=REF(VAR1,1); VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100; VAR4:=FILTER(IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5); VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11); A2:=(100 * (CLOSE - (MA(CLOSE,30)))) / (MA(CLOSE,30)); A3:=100 - ((90 * ((HHV(HIGH,20)) - CLOSE)) / ((HHV(HIGH,20)) - (LLV(LOW,20)))); A4:=100 - (MA(((100 * ((HHV(HIGH,6)) - CLOSE)) / ((HHV(HIGH,6)) - (LLV(LOW,6)))),28)); A5:=MA(A4,6); 红持股:=IF((A3 < A5),A5,A3),COLORRED; DRAWTEXT(红持股 AND VAR5,L*0.95,'追'),COLOR00FF00; DRAWICON(红持股 AND VAR5,L*0.98,25); VAR6:=REF(CLOSE,1); VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100; DRAWTEXT(CROSS(84,VAR7),H*1.04,'逃顶'),COLORYELLOW ; DRAWICON(CROSS(84,VAR7),H*1.02,9); VA3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; VA4:=SMA(VA3,9,1); VA5:=SMA(VA4,9,1); VA6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100); VA7:=REF(VA6,1)>13 AND REF(VA6,1)/VA6>1.23 AND CLOSE/REF(CLOSE,1)>1.03; 感恩庄家:= VA7 AND REF(CLOSE,1)<=COST(5) ; DRAWTEXT(感恩庄家,L*0.96,'杀底'),COLORFFFFFF ; 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED; STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED; STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN; STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN; 小股民:=EMA(CLOSE,5),COLORWHITE; 操盘:=MA(CLOSE,9),COLORCYAN,LINETHICK2; 界点:=MA(CLOSE,20),COLORMAGENTA; {财神买点副图} N:=3;{几日内达标,可以随意调,如10,15等} M:=500;{统计多少日,一年为250日,也可以调成二年,为500} P:=1.02;{制定涨幅,1.02为涨百分二.也可以调到1.10,即涨幅为百分之十} MA13:=MA(C,13); MA34:=MA(C,34); MA55:=MA(C,55); YY1:=O<MA13 AND C>MA13; YY2:=O<MA34 AND C>MA34; YY3:=O<MA55 AND C>MA55; YY4:=C/O>=M; YY5:=V>HHV(H,10); YY6:=MA13>=REF(MA13,1); AQ:=YY1 AND YY2 AND YY3 AND YY4 AND YY5 AND YY6; DRAWTEXT(AQ,60,'财神来到'),COLORRED; DRAWTEXT(AQ,40,'买点出现'),COLORRED; DRAWTEXT(AQ,20,'波段操作'),COLORRED; STICKLINE(AQ,58,55,14,0),COLOR00CCCC; STICKLINE(AQ,57,56,12,0),COLOR009999; STICKLINE(AQ,45,48,4,0),COLOR0077AA; STICKLINE(AQ,54,50,10,0),COLOR0088DD; STICKLINE(AQ,55,48,6,0),COLOR00AAFF; STICKLINE(AQ,53,52,4,0),COLOR000000; STICKLINE(AQ,53,50,1,0),COLOR0077EE; STICKLINE(AQ,60,55,7,0),COLOR8800CC; STICKLINE(AQ,60,63,4,0),COLOR7700AA; IF(AQ,57,DRAWNULL),LINETHICK4,POINTDOT,COLOR00FF00; STICKLINE(AQ,26,20,12,0),COLORFFFFFF; STICKLINE(AQ,33,25,14,0),COLOR8800CC; STICKLINE(AQ,46,32,16,0),COLORRED; STICKLINE(AQ,37,34,8,0),COLOR00AAFF; STICKLINE(AQ,50,44,2,0),COLOR000000; STICKLINE(AQ,49,49,1,0),COLOR0000EE; DRAWICON(AQ,39,9); DRAWBMP(AQ,N,'01'); STICKLINE(AQ,0,80,1,0),COLORRED; DRAWICON(AQ,85,9); 一年内选股:SUM(AQ,M)NODRAW,COLORWHITE;{提示:作预警要删除NODRAW} 三日2%:=(HHV(H,N)>REF(C,N)*P AND REF(CROSS(AQ,0.8),N));{显示成功符号} 一年成功数:SUM(三日2%,M),NODRAW; 成功率:(一年成功数/一年内选股)*100,NODRAW; {财神到副图} RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3); J1:=IF(CLOSE>QJ,VOL,0); J2:=IF(CLOSE<QJ,VOL,0); 量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW; 趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW; VAR3:=(量能-趋势); VAR44:=SMA(RV,3,1); VAR55:=SMA(VAR44,3,1); STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF; STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00; DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1); DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2); DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50)); KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF; DD:=SMA(KK,3,1),COLOR00FFFF; DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF; 共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD)); STICKLINE(共振点>0,0,100,2,0),COLOR008888; STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA; STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD; STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF; VAR1:=1; VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4); VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2; C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2; 条件:=CROSS(C1,C2) AND C1<40; 条件0:=CROSS(C2,C1) AND C1>90; TJ1:=CROSS(C1,C2); TJ2:=CROSS(C2,C1); TJ3:=CROSS(C1,C2) AND REF(C1,1)<20; TJ4:=CROSS(C2,C1) AND REF(C1,1)>80; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57; VAR400:=EMA(VAR300,5); 操盘:=3*VAR300-2*VAR400; A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O; STICKLINE(A1,30,0,4,0),COLOR770077; STICKLINE(A1,30,0,3,0),COLOR990099; STICKLINE(A1,30,0,2,0),COLORBB00BB; STICKLINE(A1,30,0,1,0),COLORDD00DD; STICKLINE(A1,30,0,0.3,0),COLORFF00FF; DRAWTEXT(A1,36,'财神到'),COLORRED; 财神到家:A1,NODRAW; 低金叉进:20,COLORFF00FF,LINETHICK1; 高死叉出:90,COLORBLUE,LINETHICK1; {股 民 学 院 : http://www.58188.net 整理} |