1、空中加油组合 空中加油组合包括3个公式:多周期MACD 红柱成交量 FYCH( 股 民 学 院 : http://www.58188.com ) {公式名称: FYCH 公式描述: 无参数 公式类型: 技术指标公式-其他类型 画线方法: 主图叠加 公式源码:} VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,20); VAR4:=MA(CLOSE,40); VAR5:=MA(CLOSE,60); MA120:MA(CLOSE,120),COLORBROWN,LINETHICK2; MA250:MA(CLOSE,250),COLORBLUE,LINETHICK2; MA600:MA(CLOSE,300),COLORRED,LINETHICK2; VAR6:=MA(REF(HHV((CLOSE+LOW+OPEN+HIGH)/4,30),1),3); VAR7:=MA((CLOSE+LOW+OPEN+HIGH)/4,13); VAR8:=EMA((CLOSE+LOW+OPEN+HIGH)/4,21); STICKLINE(CLOSE<VAR8 AND CLOSE>OPEN,HIGH,LOW,0,0),COLORRED; STICKLINE(CLOSE<VAR8 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED; STICKLINE(CLOSE<VAR8 AND CLOSE<OPEN,HIGH,LOW,0,0),COLOR007700; STICKLINE(CLOSE<VAR8 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR005500; STICKLINE(CLOSE<VAR8 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR006600; STICKLINE(CLOSE<VAR8 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR007700; STICKLINE(CLOSE>VAR8 AND CLOSE<OPEN,HIGH,LOW,0,0),COLORFFDD44; STICKLINE(CLOSE>VAR8 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFF7700; STICKLINE(CLOSE>VAR8 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLORFFAA22; STICKLINE(CLOSE>VAR8 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLORFFDD44; STICKLINE(CLOSE>VAR8 AND CLOSE>OPEN,HIGH,LOW,0,0),COLOR00EEFF; STICKLINE(CLOSE>VAR8 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR00AAFF; STICKLINE(CLOSE>VAR8 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR00CCFF; STICKLINE(CLOSE>VAR8 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR00EEFF; STICKLINE(CLOSE>VAR7 AND CLOSE>OPEN,HIGH,LOW,0,0),COLORFF66AA; STICKLINE(CLOSE>VAR7 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF11FF; STICKLINE(CLOSE>VAR7 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLORFF44FF; STICKLINE(CLOSE>VAR7 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFF66FF; STICKLINE(CLOSE>VAR7 AND CLOSE<OPEN,HIGH,LOW,0,0),COLOR999999; STICKLINE(CLOSE>VAR7 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR555555; STICKLINE(CLOSE>VAR7 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR777777; STICKLINE(CLOSE>VAR7 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR999999; STICKLINE(CLOSE>VAR6 AND CLOSE>OPEN,HIGH,LOW,0,0),COLOR0000DD; STICKLINE(CLOSE>VAR6 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099; STICKLINE(CLOSE>VAR6 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000BB; STICKLINE(CLOSE>VAR6 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000DD; VAR9:=VAR1>VAR3 AND VAR1>VAR2 AND CROSS(VAR2,VAR3); VAR10:=VAR3>VAR5 AND VAR3>VAR4 AND CROSS(VAR4,VAR5); VAR11:=VAR1>VAR5 AND VAR1>VAR2 AND CROSS(VAR2,VAR5); VAR12:=VAR5>MA120 AND CROSS(VAR5,MA120); VAR13:=VAR5<MA120 AND CROSS(MA120,VAR5); VAR14:=MA120>MA250 AND CROSS(MA120,MA250); VAR15:=VAR1>VAR2 AND VAR2>VAR3 AND CROSS(VAR1,VAR3) AND CROSS(VAR2,VAR3); DRAWTEXT(VAR15,LOW-0.12,1),COLOR0011FF; STICKLINE(VAR15,HIGH,LOW,0.5,1),COLOR0011FF; STICKLINE(VAR15,OPEN,CLOSE,6,1),COLOR0011FF,LINETHICK2; DRAWTEXT(VAR9,LOW-0.12,2),COLORYELLOW; STICKLINE(VAR9,HIGH,LOW,0.5,1),COLORYELLOW; STICKLINE(VAR9,OPEN,CLOSE,6,1),COLORYELLOW,LINETHICK2; DRAWTEXT(VAR10,LOW-0.12,3),COLOR0099FF; STICKLINE(VAR10,HIGH,LOW,0.5,1),COLOR0099FF; STICKLINE(VAR10,OPEN,CLOSE,6,1),COLOR0099FF,LINETHICK2; DRAWTEXT(VAR11,LOW-0.12,4),COLOR36C0C1; STICKLINE(VAR11,HIGH,LOW,0.4,1),COLOR36C0C1; STICKLINE(VAR11,OPEN,CLOSE,6,1),COLOR36C0C1,LINETHICK2; DRAWTEXT(VAR14,MA250-0.08,5),COLORRED; DRAWTEXT(CROSS(MA250,MA600),MA250,6),COLORMAGENTA,LINETHICK4; VAR16:=MA(VOL,5); VAR17:=MA(VOL,10); VAR18:=MA(VOL,20); VAR19:=VAR16>=VAR18 AND CROSS(VAR17,VAR18) AND REF(VAR17,1)<REF(VAR18,1); DRAWTEXT(VAR19,LOW-0.12,7),COLORWHITE; STICKLINE(VAR19,HIGH,LOW,0.4,1),COLORWHITE; STICKLINE(VAR19,OPEN,CLOSE,6,1),COLORWHITE,LINETHICK2; VAR20:=BARSLAST(VAR5>VAR3 AND (VAR3=VAR2 OR VAR3>VAR2)); VAR21:=REF(COUNT(CLOSE<VAR5,VAR20)=VAR20,1); VAR22:=CROSS(CLOSE,VAR5) AND VOL>MA(VOL,5) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3; VAR23:=VAR21 AND VAR22; DRAWTEXT(VAR23,HIGH+0.12,8),COLORMAGENTA; STICKLINE(VAR23,HIGH,LOW,0.5,1),COLORMAGENTA; STICKLINE(VAR23,OPEN,CLOSE,4,1),COLORMAGENTA,LINETHICK2; VAR24:=MA(CLOSE,5); VAR25:=MA(CLOSE,10); VAR26:=MA(CLOSE,30); VAR27:=AMOUNT/10000; VAR28:=VOL-MA(VOL,10); VAR29:=VAR24>OPEN AND VAR25>OPEN AND VAR26>OPEN AND VAR24<CLOSE AND VAR25<CLOSE AND VAR26<CLOSE AND CLOSE>OPEN; DRAWTEXT(VAR29,LOW-0.12,9),COLORWHITE; STICKLINE(VAR29,HIGH,LOW,0.5,1),COLORWHITE; STICKLINE(VAR29,OPEN,CLOSE,3,1),COLORWHITE,LINETHICK2; VAR30:=(3*CLOSE+HIGH+LOW+OPEN)/6; VAR31:=(8*VAR30+7*REF(VAR30,1)+6*REF(VAR30,2)+5*REF(VAR30,3)+4*REF(VAR30,4)+3*REF(VAR30,5)+2*REF(VAR30,6)+REF(VAR30,8))/36; VAR32:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR31; VAR33:=FILTER(VAR32,5); STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR33)),REF(HIGH,BARSLAST(VAR33)),1,0),COLORCYAN; STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR33)),REF(LOW,BARSLAST(VAR33)),1,0),COLORYELLOW; VAR34:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0); STICKLINE(VAR34,OPEN,CLOSE,1.5,0),COLORYELLOW; VAR35:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0); STICKLINE(VAR35,OPEN,CLOSE,1.5,0),COLORWHITE; {公式名称: 红柱成交量 公式描述: 参数数量: 3 参数1: M1, 最小: 1, 最大: 1000, 缺省: 5 参数2: M2, 最小: 1, 最大: 1000, 缺省: 10 参数3: M3, 最小: 1, 最大: 1000, 缺省: 60 公式类型: 技术指标公式-其他类型 画线方法: 副图 公式源码:} VOLUME:VOL,VOLSTICK; MAVOL1:MA(VOLUME,M1); MAVOL2:MA(VOLUME,M2); MAVOL3:MA(VOLUME,M3); VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; VAR1:=VOL>REF(VOL,1)*1.9; VAR2:=VOL<REF(LLV(VOL,13),1); VAR3:=VOL<REF(LLV(VOL,55),1); STICKLINE(VAR1,0,VOL,1,0),COLORYELLOW; STICKLINE(VAR3,0,VOL,1,0),COLORMAGENTA; VAR4:=CLOSE/REF(CLOSE,3)>=1.1; VAR5:=BACKSET(VAR4,2); OK:STICKLINE(VAR5 AND COUNT(VAR5,2)=1,VOL,0,3,0),COLORRED; {公式名称: 多周期MACD 公式类型: 技术指标公式-其他类型 画线方法: 副图 公式源码:} DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2; DEA:EMA(DIFF,9),LINETHICK2; MACD:(DIFF-DEA)*2,COLORSTICK; DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.01,87); DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,88); DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,89); DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,90); DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,91); DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,92); DRAWBAND(DIFF,RGB(224,224,224),DEA,RGB(255,255,96)); X_1:=EMA(CLOSE,30)-EMA(CLOSE,100); X_2:=EMA(X_1,45); DRAWBAND(X_2,RGB(0,150,50),X_1,RGB(155,50,50)); F60:EMA(CLOSE,12/2)-EMA(CLOSE,26/2),COLORCYAN; A60:EMA(F60,9/2); DRAWBAND(F60,RGB(0,224,224),A60,RGB(255,96,96)); F30:EMA(CLOSE,12/4)-EMA(CLOSE,26/4),COLORGREEN; A30:EMA(F30,9/4); DRAWBAND(F30,RGB(0,224,0),A30,RGB(255,96,255)); DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.01,87); DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,88); DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,89); DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,90); DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,91); DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,92); 2、清泉子低位进 清泉子低位进( 股 民 学 院 : http://www.58188.com ) {参数数量: 2 参数1: N, 最小: 2, 最大: 100, 缺省: 10 参数2: N1, 最小: 2, 最大: 100, 缺省: 6 公式类型: 技术指标公式-其他类型 画线方法: 副图 公式源码:} N:=10;N1:=6; VAR1:=REF(LOW,1); VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3); VAR4:=LLV(LOW,38); VAR5:=HHV(VAR3,38); VAR6:=IF(LLV(LOW,90),1,0); VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; STICKLINE(VAR7,0,VAR7,6,1),COLORFFAAFF; 趋势线:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD; VAR8:=REF(趋势线,1)<REF(趋势线,2) AND 趋势线<(-30) AND 趋势线>=REF(趋势线,1) OR (REF(CROSS((-30),趋势线),1) AND CROSS(趋势线,(-30))) OR 趋势线=(-30); VAR9:=REF(趋势线,1)<REF(趋势线,2) AND 趋势线<(-20) AND 趋势线>(-25) AND 趋势线>=REF(趋势线,1) OR (REF(CROSS((-20),趋势线),1) AND CROSS(趋势线,(-20))); WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)); WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)); 买进:VAR8; STICKLINE(买进,(-1),200,3,0),COLORRED; 上市天数:BARSCOUNT(CLOSE),NODRAW,COLORWHITE; 买入天数:BARSLAST(买进),NODRAW,COLORCYAN; VAR10:=REF(CLOSE,买入天数); VAR11:=VAR10*1.05; VAR12:=VAR10*0.85; 涨幅:(CLOSE-VAR10)/VAR10*100,NODRAW,COLORYELLOW; VAR13:=CLOSE>VAR11; VAR14:=CLOSE<VAR12; VAR15:=VAR13 AND COUNT(REF(VAR13,1),买入天数)=0 AND COUNT(REF(VAR14,1),买入天数)=0; VAR16:=VAR14 AND COUNT(REF(VAR14,1),买入天数)=0 AND COUNT(REF(VAR13,1),买入天数)=0; DRAWICON(VAR15,50,1); DRAWICON(VAR16,50,2); 止赢次数:SUM(VAR13 AND COUNT(REF(VAR13,1),买入天数)=0 AND COUNT(REF(VAR14,1),买入天数)=0,上市天数),NODRAW,COLORCYAN; 止损次数:SUM(VAR14 AND COUNT(REF(VAR14,1),买入天数)=0 AND COUNT(REF(VAR13,1),买入天数)=0,上市天数),NODRAW,COLORYELLOW; 总操作次数:止赢次数+止损次数,NODRAW,COLORCYAN; 成功率:止赢次数/总操作次数*100,NODRAW,COLORYELLOW; VAR17:=止赢次数*10; VAR18:=止损次数*2; 净赢幅:VAR17-VAR18,NODRAW,COLORCYAN; 3、超牛高位逃顶 {超牛高位逃顶} A:=EMA(C,10); A11:=EMA(C,60); A2:A-A11; MID: MA(A2,26); UPPER:= MID +1.8*STD(A2,26)COLORWHITE; LOWER:= MID - 1.8*STD(A2,26)COLORGREEN; DRAWBAND(MID,RGB(0, 0, 205),A2,RGB(139, 62, 47)); MA(A2,26)COLORYELLOW, LINETHICK2; UR:= MID +1.8*STD(A2,26)COLORWHITE; LR:= MID - 1.8*STD(A2,26)COLORGREEN; 高位:=HHV(A2,450),COLORGREEN, LINETHICK2; 低位:=LLV(A2,450),COLORRED,LINETHICK2; VAR1K:=(高位-低位); 高:高位-VAR1K*0.115,COLORYELLOW,LINETHICK1; 高中:高位-VAR1K*0.05,COLORYELLOW; 高1:=高位-VAR1K*0.0000015,COLORYELLOW,LINETHICK1; 低:高位-VAR1K*1,COLORGREEN,LINETHICK1; 低中:高位-VAR1K*0.92,COLORGREEN,LINETHICK1; 低1:=高位-VAR1K*0.85,COLORGREEN,COLORGREEN; A2A:A-A11,COLORLIMAGENTA, LINETHICK2; MID1: MA(A2,18),COLORWHITE,LINETHICK2; STICKLINE(CROSS(A2A,MID1),0,A2,2.2,0 ),COLORYELLOW; STICKLINE(CROSS(MID,A2),0,MID1,2.2,0 ),COLORGREEN; A2, COLORSTICK; DRAWTEXT(CROSS(A2A,MID1),MID1-0.01,'←多'),COLORYELLOW; DRAWTEXT(CROSS(A2,LR),A2,'←试盘'),COLORCYAN; DRAWTEXT(CROSS(MID,A2),MID1+0.012,'逃顶'),COLORGREEN; DRAWTEXT(CROSS(MID,A2) AND A2<0 ,0.012,'空中空'),COLORCYAN; G:=CONST(IF(CURRBARSCOUNT<=81,HHV(H,BARSLAST(CURRBARSCOUNT=81)),0)); D:=CONST(IF(CURRBARSCOUNT<=81,LLV(L,BARSLAST(CURRBARSCOUNT=81)),0)); STICKLINE(DATE!=REF(DATE,1) AND PERIOD<5,高1,低,1,0)COLORLIGRAY; STICKLINE(MONTH!=REF(MONTH,1) AND PERIOD<8,高1,低,0,-1),COLORLIGRAY; |