{高低位} X:=21; TTY:=H; AAT:=REF(TTY,X)=HHV(TTY,2*X+1); BBT:=FILTER(AAT,34); CCT:=BACKSET(BBT,X+1); HD10T:=FILTER(CCT,34); AA1T:=REF(TTY,X)=LLV(TTY,2*X+1); BB1T:=FILTER(AA1T,34); CC1T:=BACKSET(BB1T,X+1); LD10T:=FILTER(CC1T,34); 前高:REF(H,BARSLAST(HD10T)),COLORBLUE,LINETHICK0; 前低:REF(L,BARSLAST(LD10T)),COLORRED,LINETHICK0; T10T:=BARSLAST(HD10T) AND BARSLAST(LD10T) AND NOT(LD10T); STICKLINE(T10T,前高,前高,20,0),COLORBLUE; STICKLINE(T10T,前低,前低,20,0),COLORRED; {黄金柱} 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3)); 三日价涨A:=C>=REF(C,1); 三日价涨B:=C<REF(C,1); 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3); 百日低量:=(VOL=LLV(VOL,100)); 倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1)); 四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4)) AND REF(C,3)>=REF(C,4); 四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)AND REF(C,3)>=REF(C,4); 前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0; 倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 黄金柱:=倍量黄金柱 OR 高量黄金柱; 次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次黄金柱:=次倍量黄金柱 OR 次高量黄金柱; 准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立; 准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立; 准黄金柱:=准倍量黄金柱 OR 准高量黄金柱; 倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立; 将军柱:=倍量将军柱 OR 高量将军柱; 次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立; 次将军柱:=次倍量将军柱 OR 次高量将军柱; 准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立; 准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立; 准将军柱:=准倍量将军柱 OR 准高量将军柱; BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4); FILTER100:=FILTER(BACKSET100,5); BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,5); BACKSET102:=BACKSET(次黄金柱,4); FILTER102:=FILTER(BACKSET102,5); BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER(BACKSET103,5); BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,5); BACKSET105:=BACKSET(次将军柱,4); FILTER105:=FILTER(BACKSET105,5); BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,5); DRAWTEXT(FILTER101,LOW*0.986,'↖黄'),COLORYELLOW; STICKLINE(FILTER101,OPEN,CLOSE,7,0)COLOR0035FF; STICKLINE(FILTER101,OPEN,CLOSE,5.8,0)COLOR0064FF; STICKLINE(FILTER101,OPEN,CLOSE,4.3,0)COLOR0093FF; STICKLINE(FILTER101,OPEN,CLOSE,2.8,0)COLOR00C2FF; STICKLINE(FILTER101,OPEN,CLOSE,2.3,0)COLOR00FFFF; DRAWTEXT(FILTER102,LOW*0.986,'↖次黄'),COLORYELLOW; STICKLINE(FILTER102,OPEN,CLOSE,6,0),COLORYELLOW; DRAWTEXT(FILTER103,LOW*0.986,'↖准黄'),COLORFF00FF; STICKLINE(FILTER103,OPEN,CLOSE,6,0),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖将'),COLORRED; STICKLINE(FILTER104,OPEN,CLOSE,7,0)COLOR0035FF; STICKLINE(FILTER104,OPEN,CLOSE,4.8,0)COLOR0064FF; STICKLINE(FILTER104,OPEN,CLOSE,3.3,0)COLOR0093FF; STICKLINE(FILTER104,OPEN,CLOSE,2.8,0)COLOR00C2FF; STICKLINE(FILTER104,OPEN,CLOSE,2.3,0)COLOR00FFFF; DRAWTEXT(FILTER105,LOW*0.986,'↖次将'),COLORFF00FF{,COLORYELLOW}; STICKLINE(FILTER105,OPEN,CLOSE,6,0),COLORYELLOW; DRAWTEXT(FILTER106,LOW*0.986,'↖准将'),COLORFF00FF{,COLORYELLOW}; STICKLINE(FILTER106,OPEN,CLOSE,6,0),COLORYELLOW; {将军柱下划线} K1:=SUMBARS(FILTER104,1); {双划线} STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORRED; STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),1,0),COLORYELLOW; STICKLINE(K1,REF(L,K1-1),REF(L,K1-1),1,0),COLORGREEN;{低位线} K2:=SUMBARS(FILTER101,1); STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW; K3:=SUMBARS(FILTER102,1); STICKLINE(K3,REF(L,K3-2),REF(L,K3-2),4,0),COLORYELLOW; {倍量黄金柱} BBL:=((V>REF(V,1)*1.9 AND C>REF(C,1)) AND (BACKSET101 OR BACKSET102 OR BACKSET103 OR BACKSET104 OR BACKSET105 OR BACKSET106)); BL:=FILTER(BBL,3);{三天过滤} STICKLINE(BL,OPEN,CLOSE,3.5,0)COLOR0035FF; STICKLINE(BL,OPEN,CLOSE,1.8,0)COLOR0064FF; STICKLINE(BL,OPEN,CLOSE,1.3,0)COLOR0093FF; STICKLINE(BL,OPEN,CLOSE,0.8,0)COLOR00C2FF; STICKLINE(BL,OPEN,CLOSE,0.3,0)COLOR00FFFF; DRAWTEXT(BL,LOW*0.99,'B'),COLORYELLOW; {黄金柱下划线} KA1:=SUMBARS(BL,1); {双划线} STICKLINE(KA1,REF(L,KA1-2),REF(L,KA1-2),10,0),COLORRED; STICKLINE(KA1,REF(L,KA1-2),REF(L,KA1-2),1,0),COLORYELLOW; STICKLINE(KA1,REF(L,KA1-1),REF(L,KA1-1),4,0),COLORGREEN;{低位线};
{立桩量} 立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1); 立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0))); 立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2)); BACKSET300:=BACKSET(立桩量三日不破,4); BACKSET301:=BACKSET(立桩量三日突破,4); 立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH,'←立柱'),COLORGREEN; {芙蓉出水,一穿三} MA5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); MA30:=MA(CLOSE,30); MA60:=MA(CLOSE,60); MA120:=MA(CLOSE,120); MA240:=MA(CLOSE,240); AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10)); BB1:=REF(COUNT(C<MA60,AA1)=AA1,1); CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB1 AND CC1; {DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;} STICKLINE(芙蓉出水,H,L,5,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,5,1),LINETHICK2,COLORFF00FF; MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); ZJ:=AMOUNT/10000;{资金} TM:=V-MA(V,10);{量填满} 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ; {DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;} STICKLINE(一穿三,OPEN,CLOSE,5,0),COLORFF00FF; 高低位选股: (REF(C,1)<前高 AND C>前高) OR (REF(C,1)<前低 AND C>前低),LINETHICK0; 黄金柱选股:BACKSET101,LINETHICK0,COLORYELLOW; 将军柱选股:BACKSET104,LINETHICK0,COLORRED; 二合一选股:BACKSET101 OR BACKSET104,LINETHICK0,COLORCYAN; 流通亿股:CAPITAL/10000,COLORBLUE,LINETHICK0;
MACD二次翻红(副图)
DIF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED; DEA:EMA(DIF,9),COLORBLUE; MACD:2*(DIF-DEA),COLORSTICK; FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4); FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1; FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1); FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018; FH5:=FH1 AND FH2 AND MACD<0.10; 二次翻红:(FH3 OR FH4 OR FH5),LINETHICK0,colorred; 低买:CROSS(DIF,DEA) AND DIF<0,LINETHICK0; 加油:CROSS(DIF,DEA) AND DIF>0,LINETHICK0; DRAWTEXT(二次翻红,-0.1,'↖翻红'),COLORRED; DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA-0.02,'↖低买'),COLORFF00FF; DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA-0.05,'↖加油'),COLORYELLOW;