小鲁157 发表于 2016-4-4 15:10
刚学半年 发表于 2016-9-21 11:27
#在这里快速回复#MA8:=MA(CLOSE,10),COLOR00FFFF; MA63:=MA(CLOSE,63),COLOR00FF00; MA144:=MA(CLOSE,144),COLORFF00FF, LINETHICK2; 强势5:=MA(C,5),COLORWHITE,LINETHICK1; VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3; VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0; VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100; VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150); 买1:=VAR10; 买2:=(VAR11+VAR13+VAR15+VAR17); 卖1:=(VAR12+VAR14+VAR16+VAR18); B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; DRAWTEXT(买1>0 OR 买2>0,LOW*1,'买入'),COLORRED; S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN; {DRAWTEXT(卖1>0,HIGH*1,'卖出'),COLORGREEN;} {股灵吧决策} VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34)); F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE; 生命线:MA(CLOSE,22),LINETHICK2,COLORRED; N:=10; T1:=CONST(HHVBARS(V,N)); T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00FF; IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF; DRAWTEXT(ISLASTBAR,T0,' 量能平台'),COLORCC00CC; MA135:=MA(VOL,135); TJ1:=VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND VOL<=MA135*3.5; LJL:=FILTER(TJ1,3); TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0); ST:=TJ3=1; CL:=FILTER(ST,3); STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW; DRAWTEXT(LJL,L*1,'支撑'),COLORF00FF0; A:MA(C,22)COLORBLUE,,LINETHICK2; X:=A IF(X-1,A,DRAWNULL)COLORRED,,LINETHICK2; MA5:=MA(CLOSE,5),COLORWHITE; MA10:=MA(CLOSE,10),COLORYELLOW; MA30:=MA(CLOSE,30),COLORMAGENTA; MA60:=MA(CLOSE,60),COLORGREEN; MA120:=MA(CLOSE,120),COLORLIMAGENTA; MA240:=MA(CLOSE,240),COLORBLUE,NODRAW; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,20),COLORFF00FF ; 量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1) DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10)); BB1:=REF(COUNT(C CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB1 AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF; STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,3,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 MA1OPEN ; DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF; STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF; TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORGREEN; {高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW; STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;} 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) 三日价涨A:=C>=REF(C,1); 三日价涨B:=C 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3); TIM:=IF(DATE<1140214,1,0); 缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM; 四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM; 四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM; 前三引用不成立:=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,3),NODRAW; BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黄金柱,4); FILTER102:=FILTER(BACKSET102,3); BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER(BACKSET103,3); BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次将军柱,4); FILTER105:=FILTER(BACKSET105,3); BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3); 黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0; 黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) 黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)); 黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2)); BACKSET201:=BACKSET(黄金线下影线,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黄金线实体下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黄金线上影线,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黄金线实体上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黄金线实体中间,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黄金线实体中间1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黄金线实体中间2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黄金线实体中间3,4); FILTER2053:=FILTER(BACKSET2053,3),NODRAW; BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201)); BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202)); BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203)); BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204)); BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205)); BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051)); BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052)); BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053)); 最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053); DAY1:=SUMBARS(FILTER100,1),NODRAW; HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW; HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW; HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW; HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW; HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW; 黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW; 立桩量:=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*1.01,'↙立桩量'),COLOR00FF00; DRAWTEXT(FILTER101,LOW*1,'↖黄金柱'),COLORYELLOW; STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW; DRAWTEXT(FILTER102,LOW*1,'↖次黄金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*1,'↖将军柱'),COLORYELLOW; STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW; K1:=SUMBARS(FILTER104,1); STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW; K2:=SUMBARS(FILTER101,1); STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW; X1:=(C+L+H)/3; BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10; EMA3:=EMA(C,3); DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10), LOW*1,'★∠45'),COLORFFFFFF; 总股本:=FINANCE(1)/100000000,POINTDOT,COLOR0000FF; 流通股本:=FINANCE(7)/100000000,POINTDOT,COLORYELLOW; 解禁股:=IF((流通股本-REF(流通股本,1))>0,(流通股本-REF(流通股本,1)),0),COLORYELLOW;{流通股增加} DRAWTEXT(解禁股>0, HIGH*1.05,'解禁'),COLORGREEN; 冻结:=IF((流通股本-REF(流通股本,1))<0,(REF(流通股本,1)-流通股本),0),COLORGREEN;{流通股减少}; DRAWTEXT(冻结>0, HIGH*1.05,'冻结'),COLORGREEN; 波峰距离: PEAKBARS(3,百分比,1),NODRAW; 波谷值:=TROUGH(2,百分比,1); 波谷距离:=TROUGHBARS(2,百分比,1);{HTTP://U.178448.COM/SPACE.PHP?UID=30578} 距离:=CURRBARSCOUNT,NODRAW; {WEN98编写} CC2:=REF(C,1); 比前跌率:=(CC2-C)*100/CC2; 本日跌率:=(O-C)*100/O; 距离FK1:=波峰距离-1;{波峰右边K距离} 线位置:= REF(L,距离FK1),{NODRAW}; TJ11:=波峰距离>波谷距离+5 AND 波峰距离<120; TJ2:=REF(本日跌率,距离FK1)>3 OR REF(比前跌率,距离FK1)>3;{跌率>3%} TJ33:=距离<240; TJ4:=REF(C,距离FK1) AND REF(C,距离FK1) 画线条件:= 线位置=REF(线位置,1) AND TJ2 AND TJ4;{画线条件} STICKLINE(画线条件,线位置,线位置,15,1),COLORMAGENTA;{画线} 画线: IF(画线条件,线位置,DRAWNULL),COLORMAGENTA;{画线} 打字条件:=FILTER(画线条件 AND TJ11 AND TJ33,20); DRAWTEXT(打字条件,线位置*1.01,'凹口平衡线'),COLORGREEN;{此行可省}; 波谷值1: CONST(TROUGH(2,百分比,1)),NODRAW;{前M个ZIG转向波谷值} 波谷距离1:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离} {例如:TROUGH(2,5,2)表示%5最低价ZIG转向的前2个波谷到当前的周期数}; 波峰值:= CONST(PEAK(1,百分比,右数峰序)); {例如EAK(1,5,1)表示%5最高价ZIG转向的上一个波峰的数值} 允许误差:=0.024; XG:= ABS(波峰值-波谷值1)<=允许误差 {AND BARSCOUNT(V)>60}; 波峰距离1:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW; {PEAKBARS(K,N,M)表示之字转向ZIG(K,N)的前M个波峰到当前的周期数,M必须大于等于1} 距离1:=CURRBARSCOUNT; DRAWLINE(距离1=波峰距离1 AND XG,波谷值1,距离=1,波谷值1,1),COLORMAGENTA; DRAWTEXT(距离1=波谷距离1 AND XG,L*0.98,' 精准峰谷线'),COLORYELLOW; DRAWICON(距离1=波峰距离1,H*1.01,2);{波峰位置} DRAWICON(距离1=波谷距离1,L*0.985,1);{波谷位置} 精准点:=(ABS(H-波谷值1)<=允许误差 OR ABS(L-波谷值1)<=0.024) {AND 距离<=120}; STICKLINE(精准点,波谷值1,波谷值1,3,1),COLORYELLOW; {画精准谷底线} 波谷值2:= CONST(TROUGH(2,百分比,2)); 波谷值3:= CONST(TROUGH(2,百分比,3)); 波谷值4:= CONST(TROUGH(2,百分比,4)); 波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2)); 波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3)); 波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4)); XG2:= ABS(波谷值1-波谷值2)<=允许误差; XG3:= ABS(波谷值1-波谷值3)<=允许误差; XG4:= ABS(波谷值1-波谷值4)<=允许误差; XGL:=(距离1=波谷距离2 AND XG2) OR (距离1=波谷距离3 ANDXG3) OR (距离1=波谷距离4 ANDXG4); DRAWLINE(XGL,波谷值1,距离1=1,波谷值1,1),COLORLIGREEN; DRAWTEXT(XGL,L*0.98,' 精准谷底线'),COLORWHITE;zhoujinyu79 发表于 2016-12-11 14:01
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5); VAR8:=IF(VAR6<=-20,10,0); VAR9:=HHV(VAR8,10); STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF; VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND VARA>10; VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG (3,5),2)<=REF(ZIG(3,5),3)); VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG (3,5),2)>=REF(ZIG(3,5),3)); STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF; DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF; STICKLINE((VARD=1),14,0,4,0),COLOR00FF00; DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00; VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR12:=(HIGH+LOW+CLOSE)/3; VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14)); VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70)); VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR18:=100-ABS(VAR17); VAR19:=IF(VAR18<90,VAR18,100); VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60; VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; VAR59:=1/WINNER(CLOSE); VAR33:=MA(CLOSE,13); VAR34:=100-ABS((CLOSE-VAR33)/VAR33*100); VAR35:=LLV(LOW,75); VAR36:=HHV(HIGH,75); VAR37:=(VAR36-VAR35)/100; VAR38:=SMA((CLOSE-VAR35)/VAR37,20,1); VAR39:=SMA((OPEN-VAR35)/VAR37,20,1); VARA3:=3*VAR38-2*SMA(VAR38,15,1); VARB3:=3*VAR39-2*SMA(VAR39,15,1); VARC3:=100-VARB3; VARE3:=REF(LOW,1)*0.9; VARF3:=LOW*0.9; VAR40:=(VARF3*VOL+VARE3*(CAPITAL-VOL))/CAPITAL; VAR41:=EMA(VAR40,30); VAR42:=CLOSE-REF(CLOSE,1); VAR43:=MAX(VAR42,0); VAR44:=ABS(VAR42); VAR45:=SMA(VAR43,7,1)/SMA(VAR44,7,1)*100; VAR46:=SMA(VAR43,13,1)/SMA(VAR44,13,1)*100; VAR47:=BARSCOUNT(CLOSE); VAR48:=SMA(MAX(VAR42,0),6,1)/SMA(ABS(VAR42),6,1)*100; VAR49:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR3A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR3B:=SMA((SMA(VAR3A,4,1)-50)*2,3,1); VAR3C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR3D:=SMA(VAR3C,4,1); VAR3E:=SMA(VAR3D,3,1); VAR3F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; VAR50:=VAR48<=25 AND VAR49<-95 AND VAR3F>20 AND VAR3B<-30 AND VAR3E<30 AND VAR41-CLOSE>=-0.25 AND VAR45<22 AND VAR46<28 AND VAR47>50; VAR51:=(HIGH+LOW+CLOSE)/3; VAR52:=(VAR51-MA(VAR51,14))/(0.015*AVEDEV(VAR51,14)); VAR53:=(VAR51-MA(VAR51,70))/(0.015*AVEDEV(VAR51,70)); VAR54:=IF(VAR52>=150 AND VAR52<200 AND VAR53>=150 AND VAR53<200,10,0); VAR55:=IF(VAR52<=-150 AND VAR52>-200 AND VAR53<=-150 AND VAR53>-200,-10,VAR54); VAR56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; VAR57:=REVERSE(VAR56); VAR58:=SMA(VAR56,3,1); VARFF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1); VAR199:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1); VAR20:=REF(VOL,1) AND CLOSE>REF(CLOSE,1); VAR1:=(CLOSE*2+HIGH+LOW)/4*10; VAR2:=EMA(VAR1,13)-EMA(VAR1,34); VAR333:=EMA(VAR2,5); VAR444:=2*(VAR2-VAR333)*5.5; VAR555:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; VAR666:=EMA(3*VAR55-2*SMA(VAR55,18,1),5); VAR777:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; VAR888:=(INDEXC*2+INDEXH+INDEXL)/4; VAR999:=EMA(VAR888,13)-EMA(VAR888,34); VARAA:=EMA(VAR999,3); VARBBB:=(VAR999-VARAA)/2; VAREE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR100:=(HIGH+LOW+CLOSE)/3; VAR11:=(VAR100-MA(VAR100,14))/(0.015*AVEDEV(VAR100,14)); VAR122:=(VAR100-MA(VAR100,70))/(0.015*AVEDEV(VAR100,70)); VAR133:=IF(VAR11>=150 AND VAR11<200 AND VAR122>=150 AND VAR122<200,10,0); VAR144:=IF(VAR11<=-150 AND VAR11>-200 AND VAR122<=-150 AND VAR122>-200,-10,VAR133); VAR155:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100; VAR166:=100-ABS(VAR155); VAR177:=IF(VAR166<90,VAR166,100); VAR1AA:=IF(VAREE>0,VAREE,0); VAR1BB:=IF(VAR122>=200 AND VAR11>=150,15,IF(VAR122<=-200 AND VAR11<=-150,-15,VAR14))+60; VAR1CC:=VAR1AA>48 AND VAR1BB>60 AND VAR177<100; MA5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); MA30:=MA(CLOSE,30); MA60:=MA(CLOSE,60); MA65:=MA(CLOSE,65); MA250:=MA(CLOSE,250); 均线流((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 7),POINTDOT,LINETHICK3; PL1:=(((CLOSE - MA60) / MA60) < 0.1); PL2:=(((CLOSE - MA250) / MA250) < 0.3); DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); MACD超跌:=(COUNT((DIFF < DEA),10) = 10); MACDMACD超跌 * "MACD.MACD"(26,12,9))*(-1),STICK,LINETHICK2,COLORFFFF00; LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;VAR27A:=REF(CLOSE,1); VAR28A:=SMA(MAX(CLOSE-VAR27A,0),5.5,1)/SMA(ABS(CLOSE-VAR27A),6,1)*100; VARA1:=((AMOUNT)/(VOL))/(100); VARB1:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARC1:=((SUM(AMOUNT,7))/(VARA1))/(100); VARD1:=DMA(VARB1,(VOL)/(VARC1)); VARE1:=((CLOSE-VARD1)/(VARD1))*(100); VARF1:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ1:=MA(VARE1,20)+STD(VARE1,20); BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100); AA1:=SMA(VARF1,3,1); SS1:=(REF(BIAS18,1)>=5) AND CROSS(VARJ1,VARE1) AND (AA1>79); VAR1AAA:=ZIG(3,10)>REF(ZIG(3,10),2);{ZIG 有未来} VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2); 果断买入:IF(VAR2AAA AND COUNT(VAR2AAA,3)=1,-15,0),STICK,LINETHICK1,COLORFF00FF; STICKLINE(VAR2AAA,0,-25,4,0),COLORFF00FF; VAR91:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); VAR92:=SMA(VAR91,3,1); VAR93:=SMA(VAR92,3,1); VAR94:=((3 * VAR92) - (2 * VAR93)); VAR95:=(VAR92 + VAR93); VAR96:=(VAR95 < 55); VAR97:=(VAR95 < 60); VAR98:=CROSS(MA(CLOSE,10),MA(CLOSE,15)); VAR99:=CROSS(MA(CLOSE,10),MA(CLOSE,19)); VAR4A:=(REF(VAR96,3) AND (((((REF(VAR96,18) OR REF(VAR96,27)) OR REF(VAR96,76)) OR REF(VAR96,87)) OR REF(VAR96,99)) OR REF(VAR96,212))); VAR4B:=(REF(VAR96,23) AND (REF(VAR96,78) OR REF(VAR96,132))); VAR4C:=(SARTURN(2,3,30) = 1); VAR4D:=(REF(VAR96,8) AND (REF(VAR96,132) OR REF(VAR96,76))); VAR4E:=((REF(VAR97,18) AND REF(VAR97,88)) AND REF(VAR97,90)); VAR4F:=((CLOSE / REF(CLOSE,1)) >= 1.099); VAR1000:=((OPEN = LOW) AND (HIGH = CLOSE)); VAR101:=((VOL < MA(VOL,5)) AND (VOL < REF(VOL,1))); VAR102:=(((VAR4F AND VAR1000) AND VAR101) AND (COUNT(((VAR4F AND VAR1000) AND VAR101),20) = 1)); (VAR102 AND (((((((VAR98 OR VAR99) OR VAR4A) OR VAR3B) OR VAR4C) OR VAR4D) OR VAR4E) OR (VAR95 < 38))); DRAWTEXT(VAR102 AND COUNT(VAR102,20)=1,60,'井★喷'),LINETHICK2,COLOR00FF00; 井喷:IF(VAR102 AND COUNT(VAR102,20)=1,50,0),STICK,LINETHICK2,COLOR00FF00; ZYX1:="DMI.PDI"(12,6); ZYX2:="DMI.MDI"(12,6); ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1); ZYX4:=LLV(ZYX1,0); ZYX5:=BARSLAST(ZYX4=ZYX1); ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2; ZYX7:=ZYX1>REF(ZYX1,1); ZYX8:=VOL>2*MA(VOL,30); ZYX9:="DMI.ADX"(12,6); ZYXA:="DMI.ADXR"(12,6); ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04; ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1); ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); {ZYXE:=0-"MACD.DIFF"(7,21,3);} ZYXF:=TROUGHBARS(3,15,1)<4; ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2); ZYX11:=IF(ZYXF=1,50,0); ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9); ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA); ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50; ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1); ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1); ZYX17:=HHV(ZYX1,ZYX16); ZYX18:=BARSLAST(ZYX1=ZYX17); STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED; ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100; ZYX1A:=ZYX13*100; DRAWICON(FILTER(ZYXF=1,3),80,1); DRAWTEXT(FILTER(ZYXF=1,3),60,'铁底'),COLORYELLOW; X5:=EXPMA(CLOSE,3); X10:=EXPMA(CLOSE,7); X20:=EXPMA(CLOSE,20); 五日斜率:=(X5-REF(X5,1))*100/REF(X5,1),LINETHICK2,COLORYELLOW; 十日斜率:=(X10-REF(X10,1))*100/REF(X10,1),LINETHICK2,COLORBLUE; 二十斜率:=(X20-REF(X20,1))*100/REF(X20,1),LINETHICK2,COLORWHITE; XX5:=XMA(五日斜率,4),LINETHICK2,COLORYELLOW; XX10:=XMA(十日斜率,7),LINETHICK2,COLORBLUE; XX200:=XMA(二十斜率,20); AA11:=XX200>=0.7 AND REF(XX200,1) AND XX10>XX200 AND REF(XX5,2)<REF(XX10,2); XX202:=XMA(二十斜率,22); AA2:=XX202>=0.7 AND REF(XX200,1) AND XX10>XX202 AND REF(XX5,2)<REF(XX10,2); XX204:=XMA(二十斜率,24); AA3:=XX204>=0.7 AND REF(XX200,1) AND XX10>XX204 AND REF(XX5,2)<REF(XX10,2); XX206:=XMA(二十斜率,26); AA4:=XX206>=0.7 AND REF(XX200,1) AND XX10>XX206 AND REF(XX5,2)<REF(XX10,2); XX207:=XMA(二十斜率,20); AA7:=XX207>=0.7 AND REF(XX207,1)<XX207 AND CROSS(REF(XX5,1),REF(XX207,1)); XX2071:=XMA(二十斜率,23); AA71:=XX2071>=0.7 AND REF(XX2071,1)<XX2071 AND CROSS(REF(XX5,1),REF(XX2071,1)); XX2072:=XMA(二十斜率,26); AA72:=XX2072>=0.7 AND REF(XX2072,1)<XX2072 AND CROSS(REF(XX5,1),REF(XX2072,1)); XX208:=XMA(二十斜率,20); AA8:=XX208>=0.7 AND REF(XX208,1)<XX208 AND CROSS(XX5,XX208); XX2081:=XMA(二十斜率,23); AA81:=XX2081>=0.7 AND REF(XX2081,1)<XX2081 AND CROSS(XX5,XX2081); XX2082:=XMA(二十斜率,26); AA82:=XX2082>=0.7 AND REF(XX2082,1)<XX2082 AND CROSS(XX5,XX2082); AA1 OR AA2 OR AA3 OR AA4 OR AA7 OR AA71 OR AA72 OR AA8 OR AA81 OR AA82; DRAWTEXT(AA1=1,H/2,'AA1'),COLORRED; DRAWTEXT(AA2=1,H/2.5,'AA2'),COLORRED; DRAWTEXT(AA3=1,H/3,'AA3'),COLORRED; DRAWTEXT(AA4=1,H/3.5,'AA4'),COLORRED; DRAWTEXT(AA7=1,H/4,'AA7'),COLORRED; DRAWTEXT(AA71=1,H/1.88,'AA71'),COLORRED; DRAWTEXT(AA72=1,H/2.98,'AA72'),COLORRED; DRAWTEXT(AA8=1,H/3.18,'AA8'),COLORRED; DRAWTEXT(AA81=1,H/1.58,'AA81'),COLORRED; DRAWTEXT(AA82=1,H/2.78,'AA82'),COLORRED;yuanjunn8888 发表于 2016-4-30 14:14
快乐人生118 发表于 2016-4-4 15:17
谢谢楼主分享学习sijjis 发表于 2016-4-4 15:25
QJ:=BETWEEN(DATE,1121204,1130502);QJGZ:=HHV(QJ*H,0);
劳心乐 发表于 2016-4-4 15:46
:handshake人云亦云 发表于 2016-4-4 15:58
谢谢分享————————股海西域羚羊 发表于 2016-4-4 15:58
“量学MACD”升级了 ,感谢小鲁157精彩分享、好的指标、精彩学习、深表感谢!!没想 发表于 2016-4-4 17:04
学习一下,谢谢分享xy058 发表于 2016-4-4 17:31
“量学MACD”升级了 ,感谢小鲁157精彩分享
陶诺诺 发表于 2016-4-4 17:44
谢谢分享:victory:黎振球 发表于 2016-4-4 18:06
谢谢老师!!!wthxz 发表于 2016-4-4 18:12
学习学习学习BJ@1985 发表于 2016-4-4 18:21
谢谢小鲁157三亚雪 发表于 2016-4-4 18:25
谢谢楼主分享。
chunvxiaobai 发表于 2016-4-4 19:34
必须顶一个!!!!静修 发表于 2016-4-4 19:42
“量学MACD”升级了 ,感谢小鲁157精彩分享、好的指标、精彩学习、深表感谢!