大智慧指标编写共21页文档
大智慧自编指标
大智慧自编指标(密)第一个(我的指标1 买卖指标1 )MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);A:=REF(C,BARSLAST(HD));B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;Var3:=LLV(最高价,240);Var4:=100*(收盘价-Var3)/Var3;Var5:=(收盘价-LLV(最低价,528))/(HHV(最高价,528)-LLV(最低价,528))*100;Var6:=(收盘价-LLV(收盘价,530))/(HHV(收盘价,530)-LLV(收盘价,530))*100;Var7:=0;Var8:=MA(HHV(收盘价-REF(收盘价,1),0),34)/MA(ABS(收盘价-REF(收盘价,1)),7)*100; Var9:=MA(HHV(收盘价-REF(收盘价,1),0),13)/MA(ABS(收盘价-REF(收盘价,1)),13)*100; VarA:=BARSCOUNT(收盘价);VarB:=Var8<20 AND Var9<23 AND VarA>35;VarC:=VarB AND COUNT(VarB,1)=1;VarD:=EMA(收盘价,21)-EMA(收盘价,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);Var10:=IF(TROUGH(3,16,1)=0 AND 最高价>最低价+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),1)AND REF(ZIG(3,6),1)>=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),1)AND REF(ZIG(3,22),1)>=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),1)AND REF(ZIG(3,51),1)>=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),1)AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);Var19:=EMA(收盘价,2)-EMA(收盘价,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A);Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);Var1D:=SQRT(SQRT(最低价*最高价*开盘价*收盘价));Var1E:=EMA(Var1D*0.97,3);Var1F:=(最高价+最低价+收盘价)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14)); Var21:=CROSS(V ar1E,最低价);买点1:=Var10;买点2:=(Var11+Var13+Var15+V ar17);卖点1:=(Var12+Var14+Var16+Var18),linethick2;Var22:=买点1 AND VarF AND VarC AND Var21 AND Var4<0 AND Var5=0 AND V ar6=0 AND Var20<(-110);V AR1:=MA(收盘价,5);V AR2:=MA(收盘价,10);V AR31:=MA(收盘价,30);V ARB1:=SUM(收盘价*成交量*100,28)/SUM(成交量*100,28); V ARC1:=INTPART(V ARB1*100)/100;V ARD1:=EMA(收盘价,5)-EMA(收盘价,10);V ARE1:=EMA(V ARD1,9);V AR131:=REF(VARE1,1);V AR141:=VARE1;V AR151:=VAR141-V AR131;V AR161:=REF(VARD1,1);V AR171:=VARD1;V AR181:=VAR171-V AR161;V AR191:=开盘价;V AR1A1:=收盘价;DRAWTEXT(买点1>0,L+0.01,'▲'),colorred;DRAWTEXT(买点2>0,L+0.01,'▲'),COLORFF00FF;DRAWTEXT(卖点1>0,H+0.01,'▼'), COLOR33FF33;第二个(我的指标2 买卖指标2 ){A2可以自设均线,牛市21日线,熊市10日线}A1:=Ma(C,5);A2:=Ma(C,10);A3:=(A1+A2)/2;IF (A1>A2,A1,A3),Colorred,linethick2;IF (A1>A2,A2,A3),Colorred,linethick2;IF (A1<=A2,A1,A3),Color00ff00,linethick2;IF (A1<=A2,A2,A3),Color00ff00,linethick2;A3,colorwhite,linethick2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;DRAWICON(CROSS(84,RSI) ,h*1.03,5);DRAWICON(CROSS(RSI,11) ,l*0.99,4);Var27:=REF(CLOSE,1);Var28:=SMA(MAX(CLOSE-Var27,0),5.5,1)/SMA(ABS(CLOSE-Var27),6,1)*100; DRAWICON(IF(CROSS(76,Var28),1,0),h*1.03,5);DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW,''),linethick7 , COLORff00ff;V ARA:=((AMOUNT)/(VOL))/(100);V ARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);V ARC:=((SUM(AMOUNT,7))/(V ARA))/(100);V ARD:=DMA(V ARB,(VOL)/(V ARC));V ARE:=((CLOSE-V ARD)/(V ARD))*(100);V ARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);V ARJ:=MA(V ARE,20)+STD(V ARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);aa:=SMA(V ARF,3,1);ss:=(REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND (aa>79);DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND(aa>ss),h*1.02,''),LINETHICK7,colorgreen;Var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);Var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(Var1,C,O,8,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,C,O,3,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,H,L,1,0),COLORYELLOW,LINETHICK2;STICKLINE(Var2,C,O,8,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,C,O,3,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,H,L,1,0),COLORFF00FF,LINETHICK2;{使用指标说明: 红色均线持股,绿色均线持币,红买黄卖,懒汉操盘}。
大智慧技术指标.docx
大智慧指标BBI多空指数(快捷命令BBI )由BBI的连续移动计算,可得到均价多空指标BBI曲线。
当现时价格在BBI之上,表示多方强,反之表示空方强。
上涨行情中,若当日收盘价跌破BBI曲线,表示多转空,为卖出信号。
下跌行情中,若当日收盘价上穿BBI曲线,表示空转多,为买入信号。
上升回档时,BBI为支持线。
下跌反弹时,BBI为压力线。
MA 移动平均线(快捷命令MA )--判断原则移动平均线PMA是量的一种表现形式.比如指数的三日移动平均线,首先取得连续三日的三个指数,计算其平均值A,然后后移.去掉最先一个指数,增加新一日一个指数,再计算三个指数的平均值B.如此移动计算,得到一条三日移动平均线。
同理,可得五日,六日,十日,十三日,三十日,七十日,二百日等移动平均线。
移动平均线由样本数的多少决定了移动变化的急缓。
样本数少,变化较急,称为快速线,因此多作为短线指标。
样本数多,变化较缓,称为慢速线,在样本数适当多的时候,多作为中线或长线指标,重要的是,因为移动平均线是由一定样本的集合的连续移动计算产生,所以它的移动方向和速度代表了该集合的整体态势。
这一点,正是人们所要利用的。
1、移动平均线向上或向下,都表示了趋势的方向,所以一般而言,PMA由下转上为买入信号,PMA由上转下为卖出信号。
但PMA日数N的选择往往决定了你的买卖是否成功及成效的大小。
这是因为,对单条PMA而言,快速线反映敏感却显浮躁,慢速线反映沉实却显呆滞。
然而N的选择终归是没有定论的,不过却有一条原则,即:选择N使得PMA逼近所分析品种的短期,中期和长期的循环周期.这是要具体分析才能确定的。
如果从某一数学模型来考虑,则是应用费波南茨级数3,5,8,13,21,34,55,来确定PMA的N值。
2、当PMA在指数上方时,PMA是指数的压力线;当PMA 在指数的下方时,PMA是指数的支持线。
一般而言,指数向下跌破PMA为卖出信号,指数向上升穿PMA为买入信号。
大智慧指标
金牌涨停R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:EMA(R,3),LINETHICK1,COLORYELLOW;D:EMA(K,3),LINETHICK1,COLORFF00FF;一年十二倍:20,LINETHICK1,POINTDOT,COLOR00FF00;陡峭度:= IF(BARSCOUNT(CLOSE)>7,100*(MA(CLOSE,7)/LLV(MA(CLOSE,7),7)-1),1); SHAUN:= MA(CLOSE,14);AH1:= SHAUN*1.1;AH2:= SHAUN*0.9;AH3:= AH1-(AH1-AH2)*0.191;BH0:= AH1-(AH1-AH2)*0.618;BH1:= LLV(BH0,3);BH2:= IF(BH0>BH1,BH0-(BH1-BH0)/2,BH1);上升趋势:= BH1<BH2;V AR1B:= EMA(CLOSE,34)-EMA(CLOSE,5);V AR2B:= EMA(V AR1B,5);趋势:= (0-3)*(VAR1B-V AR2B);长期趋势:= EMA(V AR1B,10)*(0-1);N:= IF(陡峭度=0,55,6);V AR1:IF(close>0,0-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),-50),LINETHICK0, COLORBLUE;狂喜:= 30*CROSS(V AR1,-2);STICKLINE(狂喜,0,20,6,0),COLORYELLOW;DRAWTEXT(狂喜,-5,'要涨停'),COLORYELLOW;狂喜过望:= 50*(VAR1=0);STICKLINE(狂喜过望,0,50,8,1),COLORRED;DRAWTEXT(狂喜过望,55,'涨停'),COLORRED;恐慌: (-30)*(VAR1<(-93)) AND FINANCE2(3)>0,LINETHICK1,COLORC1C1C1; STICKLINE(恐慌,0,-30,6,0),COLORC1C1C1;DRAWTEXT(恐慌,-35,'恐慌'),COLORC1C1C1;极度恐慌: (-50)*(V AR1=(-100)),LINETHICK1,COLOR00FF00;STICKLINE(极度恐慌,0,-50,8,1),COLORWHITE;DRAWTEXT(极度恐慌,-55,'极度恐慌'),COLORFFFF00;满仓: 40*(CROSS(V AR1,-93) AND COUNT(恐慌,5)>0),LINETHICK1,COLORGREEN; DRAWTEXT(满仓,45,'满仓'),COLORGREEN;加仓: 30*(CROSS(K,20) AND COUNT(满仓,5)>0),LINETHICK1,COLORGRAY; STICKLINE(加仓,0,30,8,1),COLORGRAY;DRAWTEXT(加仓,35,'加仓'),COLORGRAY;背离: COUNT(恐慌,2)>0 AND CLOSE<REF(CLOSE,1) AND V AR1>REF(VAR1,1),LINETHICK1,COLORYELLOW;DRAWICON(背离,0,1),COLORFF00FF;顶级买卖主图QQ1: IF(DATE>0,EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),0),LINETHICK1,COLOR0000FF; QQ2: IF(DATE>0,EMA(REF(QQ1,1),3),0),LINETHICK1,COLOR00FFFF;QQ3: EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK1,COLORFF0000;AA:= MA(WINNER(CLOSE*0.95)*100,3);VAR83:= 1/WINNER(CLOSE);VAR84:= (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR85:= 100-ABS(VAR84);VAR86:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLO SE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR87:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPE N-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR88:= 100-VAR87;VAR89:= 100-VAR86;VAR90:= MA(WINNER(CLOSE*0.95)*100,3);VAR91:= IF(VAR83>5,IF(VAR83<100,VAR83,VAR85-10),0);VAR92:= MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR93:=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);VAR94:=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);VAR95:= VAR93<REF(VAR94,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); VARA:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:= SMA(VARA,3,1);VARC:= SMA(VARB,3,1);探索:= EMA(3*VARB-2*VARC,3);主力:= (-1)*(EMA(VAR89,1)-50)+50;Z1:= MA(主力,9);VARD:= (-1)*(EMA(VAR89,1)-50)+50;VARE:= (-1)*(EMA(VAR89,12)-50)+50;LCC:= REF(CLOSE,1);RSI1:= SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;天涯:= IF(RSI1>93 OR AA>90 AND RSI1>80,80,100);苦海:= EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),6);ZS:= MA(探索,3);ZM:= MA(MA(探索,3),3);A11:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA((CLOSE-LL V(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1);黑马线:= EMA(A11,5);A12:= (黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A4:= (CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;趋势线3:= MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);A5:= (HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;N:= 3;VAR1:= REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:= SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:= EMA(VAR2,10);VAR4:= LLV(LOW,33);VAR5:= EMA(IF(LOW<=VAR4,VAR3,0),5);VAR6:= REF(CLOSE,1);VAR7:= SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;VAR8:= LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR9:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR10:= VAR8 AND VAR9;VAR11:= (2*CLOSE+HIGH+LOW)/4;VAR12:= LLV(LOW,13);VAR13:= HHV(HIGH,13);VAR14:= LLV(LOW,1)=LLV(LOW,35) AND CLOSE>=OPEN*1.04;VAR15:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR16:= EMA((VAR11-VAR12)/(VAR13-VAR12)*100,13);VAR17:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+ (CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;VAR18:= 1/WINNER(CLOSE);VAR19:= MA(CLOSE,13);VAR20:= 100-ABS((CLOSE-VAR19)/VAR19*100);VAR21:= LLV(LOW,75);VAR22:= HHV(HIGH,75);VAR23:= (VAR22-VAR21)/100;VAR24:= SMA((CLOSE-VAR21)/VAR23,20,1);VAR25:= SMA((OPEN-VAR21)/VAR23,20,1);VAR26:= 3*VAR24-2*SMA(VAR24,15,1);VAR27:= MA(HHV(HIGH,485),17);VAR28:= MA(HHV(HIGH,222),17);VAR29:= MA(HHV(HIGH,96),17);VAR30:= MA(LLV(LOW,485),17);VAR31:= MA(LLV(LOW,222),17);VAR32:= MA(LLV(LOW,96),17);VAR33:=MA((VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR28*0.558+VAR29*0.558 )/6,17);VAR34:=MA((VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28*0.55+VAR29*0.65)/6,17);VAR35:=MA((VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0.68+VAR29*0.68)/6,17); VAR36:= LLV(LOW,30);VAR37:= MA((VAR33*3+VAR34*2+VAR35)/6*1.738,17);VAR38:= IF(DATE<=1050531,VAR37,VAR37*DAY);VAR39:= LOW;VAR40:= REF(LOW,1);VAR41:= SMA(ABS(VAR39-VAR40),3,1)/SMA(MAX(VAR39-VAR40,0),N,1)*100;VAR42:= MA(IF(CLOSE*1.35<=VAR38,VAR41*10,VAR41/10),N);VAR43:= HHV(VAR42,30);VAR44:= 1080531;VAR45:= 3*VAR25-2*SMA(VAR25,15,1);VAR46:= 100-VAR45;VAR47:= IF(900101<DATE AND DATE<99991232,1,0);VAR49:= REF(LOW,1)*0.9;VAR50:= LOW*0.9;VAR51:= (VAR50*VOL+VAR49*(CAPITAL-VOL))/CAPITAL;VAR52:= EMA(VAR51,30);VAR53:= CLOSE-REF(CLOSE,1);VAR54:= MAX(VAR53,0);VAR55:= ABS(VAR53);VAR56:= SMA(VAR54,7,1)/SMA(VAR55,7,1)*100;VAR57:= SMA(VAR54,13,1)/SMA(VAR55,13,1)*100;VAR58:= BARSCOUNT(CLOSE);VAR59:= SMA(MAX(VAR53,0),6,1)/SMA(ABS(VAR53),6,1)*100;VAR60:= (-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:= (CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR62:= SMA((SMA(VAR61,4,1)-50)*2,3,1);VAR63:= (INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR64:= SMA(VAR63,4,1);VAR65:= SMA(VAR64,3,1);VAR66:= (HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR67:= VAR59<=25 AND VAR60<(-95) AND VAR66>20 AND VAR62<(-30) ANDVAR65<30 AND VAR52-CLOSE>=(-0.25) AND VAR56<22 AND VAR57<28 AND VAR58>50; VAR68:= (HIGH+LOW+CLOSE)/3;VAR69:= (VAR68-MA(VAR68,14))/(0.015*AVEDEV(VAR68,14));VAR70:= (VAR68-MA(VAR68,70))/(0.015*AVEDEV(VAR68,70));VAR71:= IF(VAR69>=150 AND VAR69<200 AND VAR70>=150 AND VAR70<200,10,0); VAR72:= IF(VAR69<=(-150) AND VAR69>(-200) AND VAR70<=(-150) ANDVAR70>(-200),-10,VAR71);VAR73:= (CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR74:= REVERSE(VAR73);VAR75:= SMA(VAR73,3,1);绝佳买点:= IF(DATE>0,MA(IF(LOW<=VAR36,(VAR42+VAR43*2)/2,0),N),100000000);跑:= FILTER(REF(黑马线,1)>90 AND A12<0,7);买线:= EMA(CLOSE,2);卖线:= EMA(SLOPE(CLOSE,21)*20+CLOSE,42);指數位置:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOS E-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);抄底:= CROSS(指數位置,10);A1:= VOL=HHV(VOL,120);A2:= CLOSE/OPEN>1.05;TJ:= A1 AND A2;龙:= VAR10;买4:= VAR14;AA1:= AMOUNT/VOL;BB1:= LOW<AA1*0.9;CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;DD1:= LOW<MA(CLOSE,5)*0.921;EE1:= VOL<MA(VOL,5)*1.5;FF1:= BB1 AND CC1 AND DD1 AND EE1;买3:= FILTER(FF1,3);二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:= SMA(RSV,3,1);D:= SMA(K,3,1);J:= 3*K-2*D;X:= LLV(J,2)=LLV(J,8);买1:= CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND 二十天最低跌幅>=1.3;长期底部:= LLV(HIGH,30);上:= SMA(LOW,5,2)*0.96;短期底部:= LLV(HIGH,30)*0.93;LC:= REF(CLOSE,1);RSI:= SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;大顶:= FILTER(VAR17>20 AND FILTER(VAR17<REF(VAR17,1),5),5);VAR76:= (OPEN+LOW+HIGH+CLOSE)/4;MAN:= SMA(HIGH,21,2)*1.05;短底2:= EMA(VAR76,5);支撑:= HHV(短底2,60);VAR77:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR78:= SMA(VAR77,5,1);VAR79:= SMA(VAR78,8,1);VAR80:= CROSS(VAR78,VAR79) AND VAR79<5;VAR81:= CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR80;VAR82:= IF(CLOSE>1000,VAR80,VAR81);黑马起步:= VAR82;逃:= FILTER(HIGH>支撑AND CLOSE<支撑AND CLOSE/OPEN>0-1.06 ANDCLOSE<OPEN,5);逃命:= 黑马起步>0 AND DATE<=1080531;选逃:= FILTER(逃命OR 逃OR CROSS(84,RSI) OR 大顶,3);上线:= SMA(CLOSE,6.5,1);下线:= SMA(CLOSE,13.5,1);散户:= SMA(VAR75,3,1)*VAR47;新庄:= SMA(散户,3,1)*VAR47;高抛:= CROSS(新庄,散户) AND 新庄>75;买:= CROSS(买线,卖线);卖:= CROSS(卖线,买线);大黑马:= CROSS(趋势线3,0) AND 黑马线<40 ;大买:= FILTER(绝佳买点>30000,5) ;选底:= FILTER(LOW<=上AND HIGH>=短期底部AND CLOSE>=长期底部AND CLOSE/OPEN>1.03,3);稳赚10买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0 ;大资金进场:= VAR95 AND COUNT(VAR95,30)=1;STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLOR0000FF;STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),COLOR0000AA;STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000CC;STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000EE;STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),COLORAAAA00;STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORBBBB00;STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORCCCC00;STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLOREEEE00;STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00;选买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0 ;STICKLINE(选买,CLOSE,HHV(HIGH,90)*0.94,0.3,0),COLORFF0000;DRAWTEXT(选买,HHV(HIGH,90)*1,'稳赚'),COLORFF0000;DRAWTEXT(选买,HHV(HIGH,90)*0.97,'10%买'),COLORFF0000;DRAWTEXT(选逃,HIGH*1.04,'逃'),COLOR00FFFF;DRAWTEXT(买,LOW*0.996,'买'),COLOR0000FF;DRAWTEXT(卖,HIGH*1,'卖'),COLOR00FFFF;DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.095,'大资金'),COLOR008000; DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.06,'进场'),COLOR008000; DRAWTEXT(跑,HIGH*1.02,'跑'),COLOR00FFFF;DRAWTEXT(大黑马,LOW*0.98,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND 新庄>75,HIGH*1.04,'抛'),COLOR00FFFF; DRAWTEXT(大买,LOW*0.96,'大买'),COLOR0000FF;DRAWTEXT(IF(选底,100,0),LOW*0.995,'底'),COLOR399C71;位置:= (CLOSE+REF(CLOSE,105))/2;谢氏会员主图。
大智慧经典指标源码(二)【范本模板】
大智慧经典指标源码(二)21、涨停跳空N:=3;filter(COUNT((ref(c,n)/REF(C,(n+1))>=1.099),n)〉=1,n);上跳空:L>REF(H,1),stick,color0000ff,linethick2;;下跳空:H〈REF(L,1),stick,color00ff00,linethick2;;上跳空涨停:O/REF(C,1)>1.01 AND C/REF(C,1)〉1.098,stick,COLORFF00FF,linethick2;22、月线指标N:=9;M1:=3;M2:=3;t:=ma(c,12);a2:=c〉t;b:=t>REF(t,1) AND REF(t,1)〈REF(t,2);拐点12月线:if(a2 and b,5,0),STICK,COLORYELLOW,LINETHICK3;趋势12月向上:(MA(C,12)>REF(MA(C,12),1))*3, CIRCLEDOT,COLORYELLOW; 趋势24月向上:(MA(C,24)>REF(MA(C,24),1))*2,CIRCLEDOT,color0000ff;V1:=VOL/SUM(VOL,13);V2:=DMA(C,V1);RSI6:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C—REF(C,1)),6,1)*100;定海神针:IF(CROSS(20,RSI6),5,0),stick,COLORFFFFFF,linethick4;金叉KDJ:IF(cross("kdj。
k"(9,3,3),"kdj.d"(9,3,3)) and ”kdj。
k”(9,3,3)〈20,3,0),COLOR00FF00;DRAWTEXT(cross(”kdj。
k”(9,3,3),”kdj.d”(9,3,3)) and "kdj。
大智慧的指南针指标公式
大智慧的指南针指标公式(一共21个公式)原码1,CYW主力控盘VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(VAR3/VAR2+VAR1/VAR2)*VOL); SUM(VAR4,10)/10000, COLORSTICK;2,CYW-YJJ主力控盘VAR1:=1;VAR2:=CLOSE-REF(CLOSE,1);VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);VAR4:=REF(CLOSE,1)-CLOSE;VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);VAR6:=SUM(VAR3,P1)/SUM(VAR5,P1);VAR7:=100-100/(1+VAR6);VAR8:=EMA(VAR7,P1);VAR9:=EMA(VAR8,P2);VARA:=EMA(VAR8,P3);MO: (VAR8-VARA)*VAR1;ML: (VAR9-VARA)*VAR1;MODE: MO*VAR1, COLORSTICK;p1:=0,100,6p2:=0,100,8p3:=0,100,453,CYS盈亏指标Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);Var4:=MA(Var1,N3);Var5:=DMA(CLOSE,VOL/CAPITAL);CYS5: 100*(CLOSE-Var2)/Var2;CYS13: 100*(CLOSE-Var3)/Var3;CYS34: 100*(CLOSE-Var4)/Var4;CYS无穷: 100*(CLOSE-Var5)/Var5;n1:=0,100,5n2:=0,100,13n3:=0,100,344,CYE市场趋势MAL:=MA(CLOSE,5);MAS:=MA(MA(CLOSE,20),5);CYEL:MAL-REF(MAL,1)/REF(MAL,1)*100;CYES:MAS-REF(MAS,1)/REF(MAS,1)*100;5,CYR市场强弱DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);CYR:=DIVE/REF(DIVE,1)-1*100;MACYR:MA(CYR,M);n:=0,100,13m:=0,100,56,CYQKL博弈K线100*(WINNER(CLOSE)-WINNER(OPEN)), COLORSTICK;7,CYOBV优化累积能量NOBV1:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),N)/CAPITAL; n:=0,100,348,CYF市场能量HSL:=VOL/CAPITAL*100;CYF:100-100/(1+EMA(HSL,N)*100);n:=0,100,219,CYDD动态承接Var1:=WINNER(CLOSE);Var2:=DMA(Var1,VOL/CAPITAL);Var3:=DMA(VOL,VOL/CAPITAL)/CAPITAL;CYDD: Var1/Var3;CYDD1: Var2/Var3;1, POINTDOT;10,CYD2承接因子A:=WINNER(CLOSE )*CAPITAL;承接因子:A/VOL;11,CYD承接因子CYDS:WINNER(CLOSE)/(VOL/CAPITAL);CYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);n:=0,100,2112,CYC2成本均线CYC1:0.01*EMA(AMOUNT,n1)/EMA(VOL,n1);CYC2:0.01*EMA(AMOUNT,n2)/EMA(VOL,n2);CYC3:0.01*EMA(AMOUNT,n3)/EMA(VOL,n3);CYC∞:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE(7)));n1:=0,100,5n2:=0,100,13n3:=0,100,3413,CYC1成本均线Var1:=AMOUNT/(100*VOL);短线成本均线: MA(Var1,N1);中线成本均线: MA(Var1,N2);长线成本均线: MA(Var1,N3);无穷成本均线: DMA(CLOSE,VOL/CAPITAL);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;n1:=0,100,5n2:=0,100,13n3:=0,100,3414,CYB优化布林线MB: MA(CLOSE,N);上轨: MB+STD(CLOSE,N);下轨: MB-STD(CLOSE,N);上极限: MB+2*STD(CLOSE,N);下极限: MB-2*STD(CLOSE,N);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n:=0,100,1315,CMACD指标Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);CMACD: 100*(Var2-Var3)/Var3, COLORSTICK;n1:=0,100,5n2:=0,100,1316,CBXQD成本均线Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);Var4:=MA(Var1,N3);Var5:=DMA(CLOSE,VOL/CAPITAL);CYR5: 100*(Var2-REF(Var2,N))/REF(Var2,N);CYR13: 100*(Var3-REF(Var3,N))/REF(Var3,N);CYR34: 100*(Var4-REF(Var4,N))/REF(Var4,N);CYR无穷: 100*(Var5-REF(Var5,N))/REF(Var5,1);n:=0,100,4n1:=0,100,5n2:=0,100,13n3:=0,100,3417,CBW成本带宽CBW: 100*(COST(N1)-COST(N2))/COST(N1);n1:=0,100,98n2:=0,100,218,CBAND布林线宽Var1:=MA(CLOSE,N);Var2:=Var1+2*STD(CLOSE,N);变盘: 5, POINTDOT;布林宽度: (Var2-Var1)/Var1*100;警戒: 30, POINTDOT;n;=5,100,3020,指南针CYE顶部: 4,COLORBLUE;强势: 1,COLORRED;弱势: -1,colorf00ff0;底部: -4,COLORWHITE;短期趋势:(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*100,COLORWHITE,LINETHICK2; 中期趋势:(MA(MA(CLOSE,13),5)-REF(MA(MA(CLOSE,13),5),1))/REF(MA(MA(CLOSE,13),5),1)*100,co lorf00ff0,LINETHICK2;长期趋势:(MA(MA(CLOSE,34),5)-REF(MA(MA(CLOSE,34),5),1))/REF(MA(MA(CLOSE,34),5),1)*100,CO LORRED,LINETHICK2;21,0amaVar1:=SMA("AMOUNT",10,1)/10000000;Var2:=REF(Var1,1);AA: STICKLINE(Var1>Var2,Var1,Var2,8,1),COLORRED; AD: STICKLINE(Var1<Var2,Var1,Var2,8,0),COLORGREEN; C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL);C13: DMA(SMA(Var1,5,1),VOL/0.1/CAPITAL);C34: DMA(SMA(Var1,8,1),VOL/0.18/CAPITAL);∞: DMA(Var1,VOL/1.1/CAPITAL);。
大智慧技术指标公式,非常重要,绝不删除.doc
1 钱龙长线: LON,colorwhite; ma(lon,10),coloryellow; lon,colorstick2 钱龙短线: sho,colorwhite; ma(sho,10),coloryellow; sho,colorstick;3 主力轨迹: mtm:=c-ref(c,1);ZLGJ:100*ema(ema(mtm,n1),n1)/ema(ema(abs(mtm),n1),n1),colorwhite; MAZL:MA(ZLGJ,N2),coloryellow 4 大智慧一根线追: BY20:=MA(C,5);五月持币线 :MA(C,20),LINETHICK2,COLOR00FFFF;五月持股线 :IF(BY20> 五月持币线 ,五月持币线 ,BY20),LINETHICK2,COLOR808080; VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 未来} VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(VAR1,C,O,8,0),COLORYELLOW,LINETHICK2;{ STICKLINE(VAR1,C,O,3,0),COLORYELLOW,LINETHICK2;{ STICKLINE(VAR1,H,L,1,0),COLORYELLOW,LINETHICK2;{ STICKLINE(VAR2,C,O,8,0),COLORFF00FF,LINETHICK 2;{ STICKLINE(VAR2,C,O,3,0),COLORFF00FF,LINETHICK2;{ STICKLINE(VAR2,H,L,1,0),COLORFF00FF,LINETHI CK2;{5 笑脸买卖点指标:A:(ema(c,5)-ema(c,55))*30,colorred,linethick3; stickline(a>=0,a,0,5,0),colorred,linethick2; stickline(a<0,a,0,5,0),colorblue,linethick2; stickline(a>=0 and a>=ref(a,1),a,0,5,0),coloryellow,linethick2; stickline(a<0 anda>=ref(a,1),a,0,5,0),colorff9900,linethick2; 0,color4080ff,linethick3; DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,0,1); DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,0,2);6 指示强势股: {多空} RSV:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100-50; Kv:=SMA(RSV,3,1); Dv:=SMA(Kv,3,1); Jv:=3*Kv-2*Dv; zdzk1:=EMA(Jv,6); zdzk2:=REF(zdzk1,1);做多 :IF(zdzk1>=zdzk2,zdzk1+2,zdzk2),,COLORRED; 做空 :IF(zdzk2-zdzk1,zdzk2,zdzk1),,COLOR334499; xw1:=IF(O<=REF(O,1),0,MAX((H-O),(O-REF(O,1)))); xw2:=IF(O>=REF(O,1),0,MAX((O-L),(O-REF(O,1)))); xw3:=SUM(xw1,21);xw4:=SUM(xw2,21); xw5:=IF(xw3>xw4,(xw3-xw4)/xw3,IF(xw3=xw4,0,(xw3-xw4)/xw4)); {14 天强弱 }RS:=SMA(MAX(C-REF(C,1),0),14,1)/SMA(ABS(C-REF(C,1)),14,1)*100; ZD:= EMA(EMA(EMA(RS,7),3),3); ZD1:=(ZD-REF(ZD,1))/REF(ZD,1)*15;STICKLINE(ZD1>=0,0,ZD1*50,4,0),Color0000BE; STICKLINE(ZD1<=0,0,ZD1*50,4,0),COLORCdff88; y1:=AMOUNT/V/100; y2:=(3*H+L+O+2*C)/7;y3:=100*(WINNER(1.1*C)-WINNER(0.9*C)); y4:=SUM(AMOUNT,13)/y1/100; y5:= DMA(y2,V/y4); y6:=(C-y5)/y5*100;y7:=(y3<10) AND (y6<=-10); y8:=SMA(MAX(C-REF(C,1.5),0),6,1)/SMA(ABS(C-REF(C,1.5)),6,1)*100; 重高位黄色 } 高位黄色 } 高位黄色 } 底位红色 } 底位红色 } 底位红色 }亏 :STICKLINE(y6<=-10 and ZD1<0,ZD1*55,ZD1*45,6,0),ColorFF89B2; 全亏 :STICKLINE(y6<=-16 andZD1<0,ZD1*60,ZD1*55,6,1),COLORBLUE; 超跌 :STICKLINE(y7 and ZD1<0,ZD1*65,ZD1*60,6,0),ColorFFFFFF; Jct:=100*(c-cost(10))/cost(10); if(C,if(Jct<0,Jct,0)*3,0),COLORWHITE;{备战区 1 }ZDD1:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100-10;ZDD2:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;ZDD3:=SMA(ZDD2,13,8);ZDD4:=CEILING(SMA(ZDD3,13,8));ZDD5:=SMA(ZDD1,21,8);Xh1:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100; Xh2:=ZDD4-ZDD5<-65 and Xh1<12;备战区 :dRAWICON(Xh2,0,12),Color006EFF;STICKLINE(Xh2,0,ZD1*20,4,0),Color006EFF;{备战区 2 }Xx1:=MA(LOW,2)*0.96;Xx2:=MA(LOW,26)*0.85;Xx3:= REF(Xx1,1)<Xx2 AND REF(Xx1,1)<Xx1 AND REF(Xx1,1)<REF(Xx1,2);STICKLINE(Xx3,0,ZD1*16,4,0),Color006EFF;DRAWICON(Xx3,0,12);{备战区 3 }C0:=REF(C,2)*0.865;C1:=REF(C,13)*0.772;DSY:=100*vol/CApitAl;STICKLINE((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,0,ZD1*25,4,0),Color006EFF;DRAWICON((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,0,12);{备战区 4}Ww1:= sum( ma(c,10),9)/10.110;Ww2:=cross(c,Ww1);STICKLINE(Ww2,0,ZD1*26,4,0),Color006EFF;{40}DRAWICON(Ww2,0,12);{买 1}Vw1:=DMA(EMA(C,12),SUM(V,5)/3/CAPITAL);Vw2:=REF(H,10)/C>1.35;Vw3:=(COST(20)-C)/C>0.15;Vw4:=H>L*1.051;Vw5:=Vw4 AND COUNT(Vw4,5)>1;Vw6:=(((C-Vw1)/Vw1*100<-30) or Vw2) and Vw3 and Vw5;STICKLINE(Vw6,0,ZD1*40,4,0),Color0000FF;{48}DRAWICON(Vw6,0,6);{买 2}XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);STICKLINE(XL3,0,15,4,0),ColorF8B7F0;DRAWTEXT(XL3,25,'・买'),ColorF8B7F0;{井喷}jjp1:=REF(INDEXC,1);jjp2:=FILTER((INDEXC-jjp1)/jjp1>0.03 and zdzk1>=zdzk2,7);STICKLINE(jjp2,0,-15,4,0),ColorFF00FF;DRAWTEXT(jjp2,- 15,'汕喷买'),ColorFF00FF;7一年二十倍指标:R:=((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100);K:=EMA(R,3);D:=EMA(K,3);一年十二倍 :20,colorred;陡峭度 :=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) -1),1);N:=IF(( 陡峭度 > 0.35),6,65);VAR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE <20070110));VAR1A:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))) + 100)*((DATE < 20070110)); 获利盘 :=(WINNER(CLOSE))*(100);获利线 :=FORCAST( 获利盘 ,7);线:=(F0RCAST(VAR1A,7))*((DATE < 20070110));满仓:=((线 > REF(线,1)) and (线 < 25) and (COUNT(( 线 > REF(线,1)),5) = 1) and IF((N = 6),(获利盘 < 60),(获利盘 < 40)) and (C0UNT(( 获利线 > 20),20) > 0))*(40);STICKLINE( 满仓 ,0,40,5,0),Color008000;DRAWTEXT( 满仓 ,45,' 满仓 '),ColorWHITE;轻仓:=IF((获利盘 >=60) and (线 > REF(线,1)) and (REF(线,1) < 20) and (线 < 40) and (COUNT(( 线 > REF( 线,1)),5) = 1) and (REF(N,1) = 6),1,0);STICKLINE(轻仓,20,D,4,1),ColorFF00FF;DRAWTEXT(轻仓,45,'轻仓'),ColorFF00FF;出击:=CROSS(线,20) and IF((COUNT(CROSS(K,D),3) = 1) and (D < 40),1,( 线 > D) or (K > D) and (D < 60)) and IF((N = 6),( 获利盘 < 70),( 获利盘 < 40)) and (COUNT(( 获利线 > 20),20) > 0); STICKLINE(出击,0,50,3,1),Color44BB00;DRAWTEXT(出击,55,'出击'),colorred;进一 :CROSS(线,D) and (D > 30) and (D > REF(D,1)) and (D < 80);进二:CROSS(线,获利线)and (D > 30) and ( 获利线 > 25) and (D > REF(D,1));低进:=IF(进一 and (D >获利线),进二,进一);DRAWTEXT(低进,30,'低进'),ColorWHITE;STICKLINE(低进,20,30,3,1),Color000080;DRAWTEXT(进二,50,'高进'),Color800080;STICKLINE(进二,30,50,3,1),coloryellow;狂喜:=(30)*(CROSS(VAR1,(-2)));STICKLINE(狂喜,0,20,3,1),coloryellow;DRAWTEXT( 狂喜,(-5),' 要涨停 '),coloryellow;狂喜过望 :=(50)*((VAR1 = 0));恐慌 :=(20)*(VAR1 < -94);STICKLINE(恐慌,0,(-20),5,0),ColorC1C1C1;DRAWTEXT(恐慌,(-25),'恐慌'),ColorC1C1C1;极度恐慌 :=(-40)*(VAR1 = (-100));STICKLINE( 极度恐慌 ,0,(-40),7,1),Color800000;DRAWTEXT( 极度恐慌 ,(-45),' 极度恐慌 '),ColorGREEN;半仓:=(30)*(CROSS(VAR1,(-94)) and (COUNT( 恐慌,5) > 0) and (N = REF(N,1)) and IF((N = 6),( 获利盘 < 60),( 获利盘 < 40)) and (COUNT(( 获利线 > 20),20) > 0));STICKLINE(半仓,0,30,4,1),ColorFFFF00;DRAWTEXT(半仓,35,'半仓'),ColorFFFF00;加仓:=(30)*(CROSS(K,20) and (COUNT( 半仓,5) > 0));STICKLINE(加仓,0,20,6,1),Color808080;DRAWTEXT(加仓,25,'加仓'),Color808080;背离:=(COUNT(恐慌,2) > 0) and (CLOSE < REF(CLOSE,1)) and (VAR1 > REF(VAR1,1)); DRAWICON(背离,0,1),ColorFFFFFF;8买入涨停: {买入涨停 }{参数:N 5 100 9 LC 5 100 24}MA5:MA(C,5),COLOR00FF00;MA10:MA(C,10),COLORFFFFFF;ZX:=(MA5+MA10)/2;MA24:MA(C,24),COLORFF00FF; {24 日指数平滑均线 ,是真正大资金运作的主要参考和支 撑线} MA30:MA(C,30),COLORYELLOW; QSXS:=MA5>=MA30 AND MA30>REF(MA30,1); GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2); YB:=C>REF((O-C)/2+C,2);买:CROSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0; 买入易涨停 :买 AND MA5>REF(MA5,1),COLORYELLOW,POINTDOT,linethick0; STICKLINE( STICKLINE( STICKLINE( STICKLINE( DRAWTEXT(买丄*0.99,'买'),COLOROOFFOO; DRAWICON( 买入易涨停 ,L,1); 上线 :=sma(c,6.5,1);下线 :=sma(c,13.5,1); 上线 1:=sma(c,3,1); 下线 1:=sma(c,8,1);DRAWTEXT( cross( 上线,下线),low *0.98,' 全仓买'),color00ff00; D:=MA(CLOSE,80)-MA(CLOSE,10)/3; DRAWTEXT(if(CLOSE<D and VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,1 3)*1.3,1,0),L0W*0.98,' 抄底'),coloryellow; 能量线 :=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4))); 上开 :=O; 上收 :=C; 上高 :=H; 上低 :=L; JJ:=( 上开 +上高+上低)/3; VA1:=EMA( 上收 ,8); VA2:=EMA( 上收 ,28);DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,' ▼ 全仓卖'),COLORYELLOW; x1:=(3*C+H+L+O)/6; x2:=EMA(x1,10); x3:=REF(x2,1); x4:=(REF(HIGH,1)+REF(LOW,1))/2;x5:=MA(CLOSE,21)+2*STD(CLOSE,21); x6:=REF(CLOSE,1);{ 出货} x7:=SMA(MAX(CLOSE-x6,0),7,1)/SMA(ABS(CLOSE-x6),7,1)*100; x8:=CROSS(79,x7); x9:=FILTER(x8,4);{40} XL11:=EMA(CLOSE,10)/100;{70}XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;买,h,l,0,0),COLOR00FF00,li nethick2; 买,o,c,0,0),COLOR00FF00,li nethick2; 买入易涨停 ,h,l,0,0),COLORYELLOW,linethick2; 买入易涨停 ,o,c,4,0),COLORYELLOW,linethick2;XL3:= MA(XL2,3); XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DRAWTEXT((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),l-0.02,' 买 '),colorred;DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+ LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/ 4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) and x2>x3,l- '),ColorFF5ED8;{80}VAR11:=(ZIG(3,10) < REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1) > REF(ZIG(3,10),2));0.4,' ▲加仓9 波段极品:MA5: MA(CLOSE,5),COLORbbffff; MA10:MA(CLOSE,10), COLORGREEN,linethick2; S:MA10+2*STD(CLOSE,10), COLORWHITE,linethick2; X:MA10-2*STD(CLOSE,10), COLORYELLOW,linethick2; MA30:MA(CLOSE,30), COLORred;{MA120: MA(CLOSE,120), COLORcc99cc;} MA250: MA(CLOSE,250), COLOR3366ff; {MA60:MA(CLOSE,60), COLORCYAN;} 卖出线 :=98; 阶段卖 :=96;趋势 :=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);底部 :=10; 买入警戒 :stickline( 趋势 <=10,high,low,0.5,0),colorFF9933; stickline( 趋势<=10,open,close,2,1),colorFF9933; 买入信号 :drawicon(CROSS( 趋势,底部 ),low,1);卖出警戒 :stickline( 趋势 >= 阶段卖 ,high,low,0.5,0),color00FF00; stickline( 趋势 >= 阶段卖 ,open,close,3,1),linethick2,color00FF00; 卖出 :drawicon(cross( 卖出线 , 趋势 ),high,2);VB1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04; VB2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VB3:=VB1 AND VB2;DRAWTEXT(VB3,LOW,' 买入点 '), COLORWHITE;DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,2 0)),HIGH*1.02,' 落袋为安'), COLORWHITE;V2:=REF(CLOSE,1); V3:=SMA(MAX(CLOSE-V2,0),6,1)/SMA(ABS(CLOSE-V2),6,1)*100;DRAWTEXT(CROSS(84,V3),HIGH*1.03,' 见顶 '), COLORYELLOW; V4:=SMA(MAX(CLOSE-V2,0),12,1)/SMA(ABS(CLOSE-V2),12,1)*100; DRAWTEXT(CROSS(V4,20),LOW*0.98,' 见底 '),COLORRED;10 股海扬帆: {股海扬帆 } BIAS20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100; 起航天数 :BARSLAST(BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0)>0),STICK,COLORRED,LINETHICK4;休整天数 :BARSLAST(BARSLAST(BIAS20<0 AND REF(BIAS20,1)<0)>0),STICK,COLOR00FFFF,LINETHICK4;起航天数 =1,-5,' 起 '),COLORRED; 起航天数 =1,-10,' 航 '),COLORRED; 休整天数 =1,-5,' 休 '),COLORYELLOW;休整天数 =1,-10,' 整 '),COLORYELLOW;DRAWTEXT( DRAWTEXT( DRAWTEXT( DRAWTEXT( -20,COLOR000000;Var2w:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)); MW:= EMA(Var2w,3);Var3w:=EMA(Var2w,7);M1:= EMA(Var3w,5); mb1:=CROSS(MW,M1) AND M1<20;抄底介入 :IF((mb1),20,0),linethick2,colorff00ff; drawtext( 抄底介入 ,30,' 抄底 '),colorred;Var06:=(2*CLOSE+HIGH+LOW)/4;Var08:=LLV(LOW,34);VarB1:=HHV(HIGH,34); BB:=EMA((Var06-Var08)/(VarB1-Var08)*100,9);VarC1:=EMA(0.667*REF(BB,1)+0.333*BB,2),color000000;黑马起爆洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; 洗钱B:=SMA( 洗钱A,13,1);洗钱 C:SMA( 洗钱 B,5.5,1.5),POINTDOT;洗钱 D:3* 洗钱 B-2* 洗钱 C;洗钱E:4*洗钱C-3*洗钱B;量 1:=EMA( 洗钱 A,3);量 2:=EMA( 洗钱 A,5);量 3:=EMA( 洗钱 A,7);STICKLINE( 量 1>量 2,量 3,量 1,8,1),COLORRED;STICKLINE( 量 1<量 2,量 3,量 1,8,1);T1:=量 2>量 3 AND 量 1<REF(量 1,1);路遥 2012-2-10 7:39:01成交量 {M5:MA(C,5),COLORWHITE;M10:MA(C,13),COLORYELLOW; M20:MA(C,34),COLORRED;M30:MA(C,60),COLOR33FF33;M60:MA(C,120),COLORFF0000; M120:MA(C,250),COLORFF00FF;}VAR3:=LLV(H,240);VAR4:=100*(C-VAR3)/V AR3;VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100; VAR6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;VAR7:=0; VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VARA:=BARSCOUNT(C);VARB:=V AR8<20 AND V AR9<23 AND V ARA>35;VARC:=V ARB AND COUNT(V ARB,1)=1;VARD:=EMA(C,21)-EMA(C,8);VARE:=EMA(V ARD,5);VARF:=TROUGH(3,6,1)<4 AND CROSS(V ARD,V ARE);VAR10:=IF(TROUGH(3,16,1)=0 AND H>L+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),1) AND REF(ZIG(3,6),1)>=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),1) AND REF(ZIG(3,22),1)>=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),1) AND REF(ZIG(3,51),1)>=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),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(C,2)-EMA(C,150);VAR1A:=EMA(V AR19,100);VAR1B:=2*(VAR19-V AR1A);VAR1C:=POW(V AR1B,3)*0.1+POW(V AR1B,1);VAR1D:=SQRT(SQRT(L*H*O*C));VAR1E:=EMA(V AR1D*0.97,3);VAR1F:=(H+L+C)/3;VAR20:=(V AR1F-MA(V AR1F,14))/(0.015*A VEDEV(V AR1F,14)); VAR21:=CROSS(V AR1E,C);{ 买点 1:=VAR10;}买点 2:=(VAR11+V AR13+V AR15+V AR17);卖点 1:=(VAR12+V AR14+V AR16+VAR18),LINETHICK2;{VAR22:= 买点 1 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 VAR6=0 AND V AR20<(-AND 110);}VAR100:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);买点 1:=VAR100;VAR1:=MA(C,5);VAR2:=MA(C,10);VAR31:=MA(C,30);VARB1:=SUM(C*VOL*100,28)/SUM(VOL*100,28);VARC1:=INTPART(V ARB1*100)/100;VARD1:=EMA(C,5)-EMA(C,10);VARE1:=EMA(V ARD1,9);VAR190:=EMA(C,2)-EMA(C,150);VAR131:=REF(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-V AR131;VAR161:=REF(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-V AR161;VAR191:=O;VAR1A1:=C;买点 3:=IF(VAR190<=V AR1 AND VAR191<=VAR2 AND VAR191<=VAR31 AND VAR1A1>=V AR1 AND V AR1A1>=V ARC1 AND V AR151>0 AND V AR181>0,0.5,0); DRAWICON( 买点 3>0,L-0.01,1);{DRAWTEXT(买点 1>0,L-0.01,'买点'),COLORRED;}DRAWTEXT(买点 2>0,L-0.01,'买点'),COLOR33FF33;DRAWTEXT(卖点 1>0,H+0.1,'卖点'),COLORFFFF00;天狼短线 B1:=MA(C,1);减仓 :SMA(SMA(SMA(B1,2,1),2,1),2,1),colorgreen,LINETHICK2; 天狼短线 :HHV(MA( 减仓 ,1),13),color00aaff,LINETHICK4;HHV(MA( 减仓 ,1),13),colorred,LINETHICK3;STICKLINE( 天狼短线 > 减仓 AND 减仓 >MA( 减仓 ,3), 天狼短线 , 天狼短线 -0.13,4,0),color00aaff;STICKLINE( 天狼短线 >MA( 减仓 ,3) AND 减仓 <MA( 减仓 ,3), 天狼短线 ,MA( 减仓,3),0,1),colorgree n;路遥 7:36:44雷霆顶压:HHV(MA(H,11),50),COLOROOFFFF;短压:HHV(MA(H,11),15),COLOR0090E0;XL1:=LLV(MA(H,11),1);趋势:IF(XL1>=短压,短压,XL1),COLORFFFFFF;X1:=(3*C+H+L+O)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);{ 出货} X7:=SMA(MAX(CLOSE-X6,0),7,1)/SMA(ABS(CLOSE-X6),7,1)*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);{40}WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{ 减}WZ2:=POW(MA(LOW,5),2)+MA(LOW,5); WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65; DK:=SMA(WZ4,3,1)*1.5; DD:=SMA(DK,3,1); DJ:=3*DK-2*DD;WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26); WZ6:= EMA(WZ5,9); WZ7:= 2*(WZ5-WZ6);{50} WZ8:= REF(WZ7,1);WZ9:= CROSS(WZ8,WZ7) AND WZ8>0; DRAWTEXT(WZ9 AND DJ>250,H,' ・减'),C0L0RBCFF8B;VAR11:=EMA(CLOSE,8);{ 起步 } VAR2:=EMA(VAR11,20); VAR3:=CR0SS(V AR11,VAR2);VAR4:=VAR11<MA(CL0SE,120); VAR5:=(HHV(HIGH,36)-CL0SE)/(HHV(HIGH,36)-LLV(L0W,36))*100;{ VAR6:=SMA(V AR5,5,1); VAR7:=SMA(V AR6,8,1);{60}VAR8:=CR0SS(V AR6,VAR7) AND V AR7<20; VAR9:=CL0SE>LLV(CL0SE,60)+0.3*LLV(CL0SE,60) AND V AR8; VARA:=IF(CL0SE>1000,V AR8,VAR9); 起步 := VAR3 AND V AR4; 逃遁 := VARA;STICKLINE(X2>X3,X2*0.98,X2,6,1),C0L0R0000FF,LINETHICK2; STICKLINE(X2<X3,X2*0.98,X2,6,1),C0L0RF10011,LINETHICK2; WW1:= SUM( MA(C,10),9)/10.110,C0L0RYELL0W; XX1:=MA(L0W,2)*0.96; XX2:=MA(L0W,26)*0.85;XX3:= REF(XX1,1)<XX2 AND REF(XX1,1)<XX1 AND REF(XX1,1)<REF(XX1,2); VAR1:=INDEXC; VAR12:=MA(V VAR13:=MA(V VAR14:=MA(V VAR15:=MA(V VAR16:=MA(VVAR17:=VAR15<REF(V AR15,1) AND V AR6<REF(VAR16,1) AND V AR15<VAR6*0.98; VAR18:=VAR14>VAR12*1.11 AND V AR13>VAR12*1.095; VAR19:=VAR12>VAR1*0.95;VAR111:=EMA(WINNER(CL0SE)*70,3); VAR112:=EMA((WINNER(CL0SE*1.1)-WINNER(CL0SE*0.9))*80,3); VAR113:=CL0SE/MA(CL0SE,40)*100<76; VAR114:=CL0SE/MA(CL0SE,60)*100<74;逃命 }AR1,6); AR1,24); AR1,32); AR1,62); AR1,105);VAR115:=HIGH>LOW*1.051;VAR116:=V AR115 AND COUNT(V AR15,5)>1;VAR117:=V AR17 AND V AR8 AND V AR19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR VAR16AND (V AR113 OR VAR114) AND V AR112<20 AND V AR111<20AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 OR TROUGHBARS(3,15,1)<4AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));XL11:=EMA(CLOSE,10)/100;{70}XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;XL3:= MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,L-0.1,'・•反弹 '),COLORGREEN; DRAWTEXT(IF(CROSS((V AR11-LLV(V AR1,4))/(HHV(V AR11,4)-LLV(VAR11,4))*4*25,87.5) ANDVAR1<40,87,0) AND X2>X3,L-0.2,' —•短买'),C0L0RFFBBD8;DRAWTEXT(CROSS(V AR1,10) AND X2>X3,L-0.3,' —•买'),COLOR89B2FF;DRAWTEXT(IF(CR0SS(2*(EMA((CL0SE*2+HIGH+L0W)/4,12)-EMA((CL0SE*2+HIGH+L OW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/ 4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0)仓'),COLORFF5ED8;{8O}AND X2>X3,L-0.4,'・•加LL1:=(EMA(CLOSE,3) - EMA(CLOSE,13));路遥 7:37:04强势主升趋势线 :MA(CLOSE,21),ColorFFFfff,linethicK2;生命线 :MA(CLOSE,43),Color00Ffff,linethicK2;牛熊分界线 :MA(CLOSE,250),Color0000ff,linethicK3;TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY ,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY ,2*10+1),10),10+1),10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波浪顶 :IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底 :IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;Var3:=LLV( 最高价 ,240);Var4:=100*( 收盘价 -Var3)/Var3;Var5:=(收盘价-LLV(最低价,528))/(HHV(最高价,528)-LLV(最低价,528))*100;Var6:=(收盘价-LLV(收盘价,530))/(HHV(收盘价,530)-LLV(收盘价,530))*100;Var7:=0;Var8:=MA(HHV(收盘价-REF(收盘价,1),0),34)/MA(ABS(收盘价-REF(收盘价,1)),7)*100;Var9:=MA(HHV( 收盘价 -REF( 收盘价 ,1),0),13)/MA(ABS( 收盘价 -REF( 收盘价 ,1)),13)*100; VarA:=BARSCOUNT( 收盘价 );VarB:=Var8<20 AND Var9<23 AND VarA>35;VarC:=VarB AND COUNT(VarB,1)=1;VarD:=EMA( 收盘价 ,21)-EMA( 收盘价 ,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE); Var10:=IF(TROUGH(3,16,1)=0 AND 最高价 >最低价+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),1)AND REF(ZIG(3,6),1)>=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),1) AND REF(ZIG(3,22),1)>=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),1)AND REF(ZIG(3,51),1)>=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),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2)AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);Var19:=EMA( 收盘价 ,2)-EMA( 收盘价 ,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A); Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);{ 股旁网 _飞狐股票指标公式 }Var1D:=SQRT(SQRT(最低价*最高价*开盘价*收盘价)); Var1E:=EMA(Var1D*0.97,3); Var1F:=(最高价+最低价+收盘价)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*A VEDEV(Var1F,14));Var21:=CR0SS(Var1E,最低价);买点 1:=Var10;买点 2:=(Var11+Var13+Var15+Var17);卖点 1:=(Var12+Var14+Var16+Var18),linethick2;Var22:=买点 1 AND VarF AND VarC AND Var21 AND Var4<0 AND Var5=0 AND V ar6=0 AND Var20<(-110); VAR1:=MA( 收盘价 ,5); VAR2:=MA( 收盘价 ,10); VAR31:=MA( 收盘价 ,30);VARB1:=SUM( 收盘价*成交量*1 00,28)/SUM( 成交量*1 00,28); VARC1:=INTPART(V ARB1*100)/100;VARD1:=EMA( 收盘价 ,5)-EMA( 收盘价 ,10); VARE1:=EMA(V ARD1,9); VAR131:=REF(VARE1,1); VAR141:=VARE1; VAR151:=VAR141-V AR131; VAR161:=REF(VARD1,1); VAR171:=VARD1; VAR181:=VAR171-V AR161; VAR191:= 开盘价 ; VAR1A1:= 收盘价 ;DRAWTEXT( DRAWTEXT( DRAWTEXT( 路遥 7:37:25 第三浪 AA:=V*1000/CAPITAL;主力 :MA(AA,4),COLORYELLOW,POINTDOT; 游资 :MA(AA,9),COLORRED,POINTDOT; 大户:MA(AA,17),C0L0RRED,POINTDOT;STICKLINE( 主力>0,0,主力 ,6,0),COLORYELLOW; STICKLINE( 游资>0,0,游资 ,6,0),COLORRED;STICKLINE( 大户 >0,0,大户 ,6,0),COLORGREEN; 获利平均值 :EMA(100*WINNER(C),20),COLOR9933FF; 获利 99 :=MA(COST(99 ),5); 获利 均线 获利 获利RSV:=(((CLOSE -LLV(LOW,21))/(HHV(HIGH,21) - LLV(LOW,21)))*(100)); 趋势 :(EMA((3)*(SMA(RSV { 股旁网 VAR2:=(3)*(SMA(((OPEN (2)*(SMA(SMA(((OPENLLV(LOW,89)))*(100),20,1),15,1));VAR3:=VAR2 - 100;背离:(FORCAST(((-1))*(V AR3),21)),LINETHICK1,COLOROOFFOO; DRAWTEXT((CROSS(趋势,背离)),背离,黑马'),COLORRED; B:=C/REF(C,1)>1.O48ANDC=H买点 买点 卖点 1>0,L+0.1,' ▲'),colorred; 2>0,L+0.1,' ▲'),COLORFF00FF;1>0,H+0.01,' ▼ '),COLOR33FF33;80:=MA(COST(80),5);5日:= MA(C,5);20:=MA(COST(20),5); 1 :=MA(COST(1),5); ,6,1)) - (2)*(SMA(SMA(RSV,5,1),5,1)),2)),COLORRED;_大智慧股票指标公式 }- LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1))- LLV(LOW,89))/(HHV(HIGH,89) ANDBETWEEN(FORCAST(V ,4),0.2*FORCAST(V ,12),2.1*FORCAST(V,12)); •黑牛 :FILTER(B,28)*100,STICK,COLORRED, LINETHICK3; 全仓买:(ZIG(3,35)>REF(ZIG(3,35),1)REF(ZIG(3,35),1)<REF(ZIG(3,35),2))*20,STICK,COLOR990066,LINETHICK3; V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21); V3:=EMA(V2,5); V4:=2*(V2-V3)*100; 筹 码 进 : IF(V4>=0,V4,0),COLORWHITE,LINETHICK2;STICKLINE((V4 0),0,V4 ,0,0),LINETHICK2,COLORYELLOW; 筹码撤: IF(V4<=0,V4,0),COLORBLUE,LINETHICK1;STICKLINE((V40),0,V4,0,0),LINETHICK1,COLORBLUE; 路遥 7:37:45价值连城 Var1:=REF(CLOSE,2); 会员SMA(MAX(CLOSE-Var1,0),7,1)/SMA(ABS(CLOSE-Var1),7,1)*100,COLORFFAA66; Var2:=REF(CLOSE,1);Var3:=SMA(MAX(CLOSE-Var2,0),7,1)/SMA(ABS(CLOSE-Var2),7,1)*100; 极品逃亡:IF(会员专用< REF(会员专用,1) AND 会员专用>79,会员专用,0); DRAWTEXT(极品逃亡,70 ,'★ <-极品逃亡’),coloryellow,linethicki;DRAWTEXT(88>0 and ref(o,1)/ref(c,1)>1.04 and ref(l,1)<=688 and o>ref(c,1)and c<ref(o,1)and c/o>=1.01,l-l*0.02,' ★ <--极品绝底初现 '),linethick1;DRAWTEXT(c-o>=0 and o/l>1.05 and l<=llv(l,20),l,' ★<--极品绝底 '),colorblue, linethick1; q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; q3:=SMA(q2, 9, 1); q4:=SMA(q3, 3, 1);特殊会员专用 :3*q3-2*q4,colorwhite,linethick2; q8:=HHVBARS(HIGH, 50);q10:=(CLOSE-REF(OPEN, q8))/REF(OPEN, q8)*100; 跨越 :EMA(q3, 3),COLORRED;DRAWTEXT(CROSS( 特殊会员专用 , 8) AND q10<-13,20,'* 大底来 '),coloryellow,linethick5; DRAWTEXT(CROSS( 特殊会员专用 , 93) AND q10<-13,40,'* 大底 '),linethick5;DRAWTEXT(CROSS(跨越,特殊会员专用)AND ref(特殊会员专用,1)>80, ref(特殊会员专 用,3), '* 顶'),COLORRED,linethick5;Var12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 机构做空能量线 : SMA(Var12,3,1),colorgreen,linethick2; 大底来 : 0,POINTDOT; 大底: 0,POINTDOT; DRAWTEXT(cross( DRAWTEXT(cross( DRAWTEXT(cross( 路遥 7:38:02 0000VAR1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));AND跨越 ,机构做空能量线 ) ,大底 +40,'进入强势区域'),coloryellow,linethick1; 特殊会员专用 ,跨越 ) ,大底 +20,'进入拉升区域 '),linethick1; 跨越,特殊会员专用 ) ,大底+70,'注意调整VAR3:=SUM(V AR1,5);VAR4:=SUM(V AR2,5);VAR5:=IF(VAR3>V AR4,(V AR3-V AR4)/V AR3,IF(VAR3=V AR4,0,(V AR3-V AR4)/V AR4));VAR6:=MA(V AR5,5);VAR8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VARA:=SUM(V AR8,3);VARB:=SUM(V AR9,3);VARC:=IF(VARA>VARB,(V ARA-V ARB)/V ARA,IF(V ARA=V ARB,0,(V ARA-V ARB)/V ARB));VARD:=MA(VARC,3);火: BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)),COLORRED;VARE:=HHV(CLOSE,2);VARF:=BARSLAST(V ARE<REF(VARE,2));VAR10:=IF(VARF>=1,LLV(V ARE,V ARF),LOW);VAR11:=VAR10+V AR10*V ARF*0.5/100;VAR12:=IF(VAR11<REF(V AR11,1),MA(LOW,3),V AR11);VAR13:=V AR10+V AR10*(V ARF-1)*1.618/100;山: COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);VAR14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR16:=SUM(VAR8,3);VAR17:=SUM(VAR9,3);VAR18:=IF(VARA>V ARB,(V ARA-V ARB)/V ARA,IF(V ARA=V ARB,0,(V ARA-V ARB)/V ARB));VAR19:=MA(V ARC,3); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;买入或持股 : STICKLINE( 山>0,火 ,0,2,0), COLORRED;VAR1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR1C:=SUM(V AR8,3);VAR1D:=SUM(V AR9,3);VAR1E:=IF(VARA>V ARB,(V ARA-V ARB)/V ARA,IF(VARA=V ARB,0,(V ARA-VARB)/V ARB)); VAR1F:=MA(V ARC,3);下跌7抛出:STICKLINE(山 >0,火,山,2,1), COLORFOFOOO;VAR20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR22:=SUM(VAR8,3);VAR23:=SUM(VAR9,3);VAR24:=IF(VARA>V ARB,(VARA-VARB)/VARA,IF(V ARA=VARB,0,(VARA-VARB)/VARB));VAR25:=MA(V ARC,3);观望: STICKLINE( 山=0 AND 火=0,0,1,4,1), COLORBLUE; VAR26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1))); VAR27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR28:=SUM(VAR8,3);VAR29:=SUM(VAR9,3);VAR2A:=IF(VARA>V ARB,(V ARA-V ARB)/V ARA,IF(V ARA=V ARB,0,(V ARA-VARB)/V ARB));VAR2B:=MA(VARC,3);植被 : STICKLINE( 山 <火,火,山,1,0), COLOR00FF00; VAR2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR2E:=SUM(V AR8,3);VAR2F:=SUM(V AR9,3);VAR30:=IF(VARA>V ARB,(V ARA-V ARB)/V ARA,IF(V ARA=V ARB,0,(V ARA-V ARB)/V ARB)); VAR31:=MA(V ARC,3);VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10; VAR33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VAR35:=SUM(VAR8,3);VAR36:=SUM(VAR9,3);VAR37:=IF(VARA>V ARB,(V ARA-V ARB)/V ARA,IF(V ARA=V ARB,0,(V ARA-V ARB)/V ARB)); VAR38:=MA(V ARC,3);路遥 7:38:22黑马起爆洗钱 A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; 洗钱 B:=SMA( 洗钱A,13,1);洗钱 C:SMA( 洗钱 B,5.5,1.5),POINTDOT;洗钱 D:3* 洗钱 B-2* 洗钱 C;洗钱E:4*洗钱C-3*洗钱B;量 1:=EMA( 洗钱 A,3);量 2:=EMA( 洗钱 A,5);量 3:=EMA( 洗钱 A,7);STICKLINE( 量 1>量 2,量 3,量 1,8,1),COLORRED;STICKLINE( 量 1<量 2,量 3,量 1,8,1);T1:=量 2>量 3 AND 量 1<REF(量 1,1);路遥 7:38:39绝佳买点 Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; Var2:=2*ABS(Var1); Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var4:=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);Var5:=(HIGH+LOW+CLOSE)/3;Var6:=(Var5-MA(Var5,14))/(0.015*A VEDEV(Var5,14));Var7:=(Var5-MA(Var5,70))/(0.015*A VEDEV(Var5,70));Var8:=IF(Var6>=150 AND V ar6<200 AND Var7>=150 AND Var7<200,10,0);Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8); VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VarB:=100-ABS(VarA);VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1 )-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,。
大智慧指标
大智慧指标(更新中)QLZB 钱龙指标指标 快捷 判断原则ZLJC 主力进出 ZLJC或151绿线为短期主力运作轨迹,黄线为中期主力运作轨迹,白线为长期主力运作轨迹。
主力进出指标的绿线向上突破黄线、白线且三线向上发散,表示主力有效控盘,可逢底介入,持股待涨。
主力进出指标的绿线上涨过快远离黄、白线,出现较大乖离,表示短线获利筹码较多,宜注意控制风险,可适当卖出。
?当绿线回落至黄、白线处受支撑时,而黄白线发散向上,表示上升趋势未改,前期股价回落仅是途中的回调,可适量跟进。
主力进出三线"死亡交叉",盘口呈空头排列,投资者宜尽快出局。
主力进出三线相近并平行向下时,表明主力尚未进场或正在出货,此时不宜介入。
?主力进出是一种趋势指标,但趋势改变信号有时会出现滞后现象,此时就要用主力买卖指标加以配合使用。
ZLMM 主力买卖 ZLMM或166绿线为短期趋势线,黄线为中期趋势线,白线为长期趋势线。
1、主力买卖与主力进出配合使用时准确率极高。
2、当底部构成发出信号,且主力进出向上时判断买点,准确率极高。
3、当短线上穿中线及长线时,形成最佳短线买点交叉形态(如底部构成已发出信号或主力进出也向上且短线乖离率不大时)。
4、当短线、中线均上穿长线,形成中线最佳买点形态(如底部构成已发出信号或主力进出也向上且三线均向上时)。
5、当短线下穿中线,且短线与长线正乖离率太大时,形成短线最佳卖点交叉形态。
6、当短线、中线下穿长线,且是主力进出已走平或下降时,形成中线最佳卖点交叉形态。
7、在上升途中,短、中线回落受长线支撑再度上行之时,为较佳的买入时机。
8、指标在0以上表明个股处于强势,指标跌穿0线表明该股步入弱势。
LSZJ拉升在即 LSZJ或1641、当S线在低位上穿Y线,就出现潜力股信号,该股可以加以关注。
2、当S线上穿Y线,并且数值小于1,就出现即将拉升的潜力股信号,该股可择机介入。
3、当判断原则(2)出现后约两周的时间,更应密切关注股价变化,出现拉升概率极大。
大智慧排序指标
大智慧排序指标{原创,版权属于高山流水所有}排序指标直接帮你找强壮的轿夫!---直接找盘中热点和强势股!{周周期使用}X00:=C;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;{波段趋势}VAR21:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=3*VAR22-2*VAR23;VAR25:=LLV(LOW,5);VAR26:=HHV(HIGH,5);VAR27:=EMA((CLOSE-VAR25)/(VAR26-VAR25)*100,4)*2;VAR28:=EMA(0.667*REF(VAR27,1)+0.333*VAR27,2);VAR29:=3*VAR27-2*VAR28;VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARB:=POW(MA(LOW,5),2)+MA(LOW,5);VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;VARE:=SMA(VARD,3,1)*1.5-100; VARF:=SMA(VARE,3,1);VAR30:=3*VARE-2*VARF;VAR31:=(HIGH+LOW+CLOSE*2)/4;{日周期使用}X00:=C;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;{波段趋势}VAR21:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=3*VAR22-2*VAR23;VAR25:=LLV(LOW,5);VAR26:=HHV(HIGH,5);VAR27:=EMA((CLOSE-VAR25)/(VAR26-VAR25)*100,4)*2;VAR28:=EMA(0.667*REF(VAR27,1)+0.333*VAR27,2);VAR29:=3*VAR27-2*VAR28;VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARB:=POW(MA(LOW,5),2)+MA(LOW,5);VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;VARE:=SMA(VARD,3,1)*1.5-100; VARF:=SMA(VARE,3,1);VAR30:=3*VARE-2*VARF;VAR31:=(HIGH+LOW+CLOSE*2)/4;VAR33:=STD(VAR31,13);VAR34:=(VAR31-VAR32)*100/ VAR33;VAR35:=EMA(VAR34,5);VAR37:=EMA(VAR35,13)+200-100;VAR38:=EMA(VAR37,10);VAR39:=3*VAR37-2*VAR38;VAR1A:=VAR22+VAR27+VARE+VAR37;VAR1B:=VAR23+VAR28+VARF+VAR38;VAR1C:=VAR24+VAR29+VAR30+VAR39;VAR1D:=(HIGH+LOW+CLOSE)/3;VAR40:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));VAR42:=(HIGH+LOW+CLOSE+VAR1D)/4;VAR43:=EMA(VAR42,24);VAR44:=STD(VAR42,24);VAR45:=(VAR42-VAR43)/ VAR44*100;VAR46:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));VAR47:=EMA(VAR45,5);VAR2A:=((VAR47+VAR46+VAR40)/3+165)/4;VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;VAR2E:=(VAR2A+VAR2C)/2/1.1;VAR48:=EMA(VAR2E,3);VAR49:=EMA(VAR48,5);VAR51:=SMA(VAR48,2,1);{为了规避风险,设定了VAR48>=VAR51进行处理}日明:IF((VAR48>VAR51 OR VAR48=VAR51) ,明日重心涨跌幅,-99);VAR33:=STD(VAR31,13);VAR34:=(VAR31-VAR32)*100/ VAR33;VAR35:=EMA(VAR34,5);VAR37:=EMA(VAR35,13)+200-100;VAR38:=EMA(VAR37,10);VAR39:=3*VAR37-2*VAR38;VAR1A:=VAR22+VAR27+VARE+VAR37;VAR1B:=VAR23+VAR28+VARF+VAR38;VAR1C:=VAR24+VAR29+VAR30+VAR39;VAR1D:=(HIGH+LOW+CLOSE)/3;VAR40:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));VAR42:=(HIGH+LOW+CLOSE+VAR1D)/4;VAR43:=EMA(VAR42,24);VAR44:=STD(VAR42,24);VAR45:=(VAR42-VAR43)/ VAR44*100;VAR46:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));VAR47:=EMA(VAR45,5);VAR2A:=((VAR47+VAR46+VAR40)/3+165)/4;VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;VAR2E:=(VAR2A+VAR2C)/2/1.1;VAR48:=EMA(VAR2E,3);VAR49:=EMA(VAR48,5);VAR51:=SMA(VAR48,2,1);{为了规避风险,设定了VAR48>=VAR51进行处理}周明:IF((VAR48>VAR51 OR VAR48=VAR51) ,明日重心涨跌幅,-99);{-99表示为已经在下跌趋势里};{60分钟周期使用}X00:=C;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;{波段趋势}VAR21:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;VAR22:=SMA(VAR21,3,1);VAR23:=SMA(VAR22,3,1);VAR24:=3*VAR22-2*VAR23;VAR25:=LLV(LOW,5);VAR26:=HHV(HIGH,5);VAR27:=EMA((CLOSE-VAR25)/(VAR26-VAR25)*100,4)*2;VAR28:=EMA(0.667*REF(VAR27,1)+0.333*VAR27,2);VAR29:=3*VAR27-2*VAR28;VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARB:=POW(MA(LOW,5),2)+MA(LOW,5);VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;VARE:=SMA(VARD,3,1)*1.5-100; VARF:=SMA(VARE,3,1);VAR30:=3*VARE-2*VARF;VAR31:=(HIGH+LOW+CLOSE*2)/4;VAR32:=EMA(VAR31,13);VAR33:=STD(VAR31,13);VAR34:=(VAR31-VAR32)*100/ VAR33;VAR35:=EMA(VAR34,5);VAR37:=EMA(VAR35,13)+200-100;VAR38:=EMA(VAR37,10);VAR39:=3*VAR37-2*VAR38;VAR1A:=VAR22+VAR27+VARE+VAR37;VAR1B:=VAR23+VAR28+VARF+VAR38;VAR1C:=VAR24+VAR29+VAR30+VAR39;VAR1D:=(HIGH+LOW+CLOSE)/3;VAR40:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));VAR42:=(HIGH+LOW+CLOSE+VAR1D)/4;VAR43:=EMA(VAR42,24);VAR44:=STD(VAR42,24);VAR45:=(VAR42-VAR43)/ VAR44*100;VAR46:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));VAR47:=EMA(VAR45,5);VAR2A:=((VAR47+VAR46+VAR40)/3+165)/4;VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;VAR2E:=(VAR2A+VAR2C)/2/1.1;VAR48:=EMA(VAR2E,3);VAR49:=EMA(VAR48,5);VAR51:=SMA(VAR48,2,1);{为了规避风险,设定了VAR48>=VAR51进行处理}六十明:IF((VAR48>VAR51 OR VAR48=VAR51) ,明日重心涨跌幅,-99);。
(完整版)[大智慧]非常实用的选股指标代码大全(共125个)
[大智慧] 非常实用的选股指标大全(共125个)--———-----———-—----—--—---—---—-—----—--——-——-—-—-——----—-——-—----——-—-——---—--—非常实用的大智慧选股指标大全,自己可以随意自己加减汇编,不怕你没能力,就怕你没创意,只要你有创意,就可以自己编写!——————-——-———————--——-——---———-—--—--——-———-—--—-—-————-———---—-——---———--——-———1,30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)—c)/hhv(c,30)>0.5;2,今天的量是5天平均的 2倍以上xg:v〉ma(v,5)*2;缩量vol/ma(vol,10)<0。
3;3,两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c〉0.2;4,股价是25天以来新低.xg:c<ref(llv(c,25),1);5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c〉ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2。
BIAS指标要小于—6,这只是确认该股超跌的初选条件。
3。
KD指标产生黄金交叉,K线上穿D线.4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE—LLV(LOW,9))/(HHV(HIGH,9)—LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<—6 and cross(k,d) and d〈16;7,要求是量大、换手率达到3左右,涨幅〉7个点.xg:v/capital*100〉3 and (c/ref(c,1)〉1。
大智慧技术指标
大智慧技术指标一览表2007-07-12 20:46〖110〗:MA 移动平均线〖112〗:CHANNELS 通道线〖114〗:主力成本〖115〗:TDX 天地线〖116〗:SAR 抛物转向〖117〗:XS 薛氏通道〖118〗:PBX 瀑布线〖120〗:ROC 变动速率〖121〗:MTM 动力指标〖123〗:DMI 趋向指标〖125〗:RSI 相对强弱指标〖126〗:主力轨迹〖128〗:DMA 平均离差〖130〗:DPO 区间震荡线〖132〗:MACD 指数平滑异同平均线〖133〗:KDJ 随机指标〖134〗:CCI 顺势指标〖139〗:PSY 心理线〖140〗:BIAS 乖离率〖141〗:W&R 威廉指标〖142〗:%B 布林极限〖143〗:CR 能量指标〖144〗:BRAR 人气意愿指标〖148〗:TRIX 三重指数平滑平均数〖149〗:ASI 振动升降指标〖150〗:OBV 能量潮〖151〗:主力进出〖154〗:MFI 资金流量指标〖155〗:PVI 正量指标〖156〗:NVI 负量指标〖157〗:VMACD 指数平滑异同平均线〖158〗:VR 容量比率〖161〗:WVAD 威廉变异离散量〖163〗:EMV 简易波动指标〖164〗:拉升在即〖165〗:底部构成〖166〗:主力买卖〖170〗:MIKE 麦克指标〖171〗:CDP 逆势操作〖180〗:ADL 藤落指数〖181〗:ADR 涨落比率〖182〗:ABI 指标〖183〗:STIX 指数平滑广量指标〖187〗:EXPMA 平滑移动平均线〖AD〗:AD集散量、A/D上涨家数比〖ABI〗:ABI 指标〖ACD〗:ACD 收集派发〖ADL〗:ADL 藤落指数〖ADR〗:ADR 涨落比率〖ALF〗:ALF 过滤指标〖ASI〗:ASI 振动升降指标〖ASR〗:ASR 浮筹比例〖ATR〗:ATR 真实波幅〖AMOUNT〗:AMOUNT 成交额〖ADTM〗:ADTM 动态买卖气指〖B〗:%B 布林极限〖BBI〗:BBI 多空指数〖BTI〗:BTI 广量冲力指标〖BFTD〗: 〖BIAS〗:BIAS 乖离率〖BOLL〗:BOLL 布林线〖BRAR〗:BRAR 人气意愿指标〖B3621〗:B3621三减六日乖离〖BWIDTH〗:BWIDTH 布林极限宽〖BBIBOLL〗:BBIBOLL 多空布林线〖CD〗:CD 相对强度〖CHAIKIN〗: CHAIKIN 佳庆线〖CR〗:CR 能量指标〖CCI〗:CCI 顺势指标〖CDP〗:CDP 逆势操作〖CHO〗:CHO 济坚指数〖CYC〗:CYC 指南针成本均线〖CYS〗:CYS 市场盈亏〖CYW〗:CYW 主力控盘〖CYQKL〗: CYQKL 指南针博弈K线长度〖DDI〗:DDI 方向标准离差指数〖DKX〗:DKX 多空线〖DMA〗:DMA 平均离差〖DMI〗:DMI 趋向指标〖DMI-QL〗DMI-QL 趋向指标(钱龙)〖DPO〗:DPO 区间震荡线〖DBCD〗:DBCD 异同离差乖离率〖DBGC〗:DBGC 底部构成〖DPTB〗:DPTB 大盘同步指标〖EMV〗:EMV 简易波动指标〖ENV〗:ENV 轨道线〖EOM〗:EOM 活动能力〖EXPMA〗:EXPMA 平滑移动平均线〖GDS〗:股东数〖GLZB〗:ALF 过滤指标〖HDNL〗:EOM 活动能力〖II〗:II当日成交密度〖JDQS〗:JDQS 阶段强势指标〖JJZB〗:CHO 济坚指数〖JEZF〗:江恩正方〖KD〗:KD 随机指标〖KDJ〗:KDJ 随机指标〖KST〗:KST 完定指标〖LFS〗:LFS 锁定因子〖LWR〗:LW&RLWR 威廉指标〖LJX〗:量价线〖LJQS〗:VPT 量价趋势〖LSZJ〗:LSZJ 拉升在即〖M1〗:M1 移动平均线〖MA〗:移动平均线〖MI〗:MI 动量指标〖MFI〗:MFI 资金流量指标〖MJR〗:MJR〖MTM〗:MTM 动力指标〖MACD〗:MACD 指数平滑异同平均线〖MASS〗:MASS 重量指数〖MICD〗:MICD 异同离差动力指数〖MIKE〗:MIKE 麦克指标〖NDB〗:NDB 脑电波〖NVI〗:NVI 负量指标〖NORVOL〗:NORVOL 标准化成交量〖OX〗:OX 图〖OBV〗:OBV 能量潮〖OSC〗:OSC 震荡量〖OBOS〗:OBOS 超买超卖〖OLAL〗:OLAL 叠加线〖PR〗:PR 穿透率〖PBX〗:PBX 瀑布线〖PSY〗:PSY 心理线〖PVI〗:PVI 正量指标〖PVT〗:PVT价/量趋势〖PRICE〗:PRICE 价位线〖PRICEOSC〗:PRICEOSC 指数震荡〖QLCX〗:钱龙长线〖QLDX〗:钱龙短线〖QLZB〗:钱龙指标〖QRSI〗:QRSI 量RSI 〖QHLSR〗:QHLSR 阻力指标〖RC〗:RC 变化率指数〖RS〗:RS 相对强弱比〖RMI〗:RMI 〖ROC〗:ROC 变动速率〖RSI〗:RSI 相对强弱指标〖RCCD〗:RCCD 异同离差变化率指数〖SP〗:SP 低点搜寻交易系统〖SAR〗:SAR 抛物转向〖SCR〗:SCR 筹码集中度〖SMI〗:SMI 〖SJKB〗:FASTKD 随机快步〖SJPF〗:ACD 收集派发〖SOBV〗:SOBV 能量潮〖SRMI〗:SRMI MI 修正指标〖STIX〗:STIX 指数平滑广量指标〖SLOWKD〗:SLOWKD 慢速KD 〖SDKJ〗:四度空间〖TBR〗:TBR 新三价率〖TDX〗:TDX 天地线〖TDZS〗:CCI-4.0 通道指数〖TRIX〗:TRIX 三重指数平滑平均数〖TRIX40〗:TRIX-4.0 TRIX趋向指标〖UOS〗:UOS 终极指标〖VB〗:VB 波幅通道〖VR〗:VR 容量比率〖VMA〗:VMA 成交量指标〖VOL〗:VOL 成交量〖VPT〗:VPT 量价趋势〖VOSC〗:VOSC 成交量震荡〖VSTD〗:VSTD 成交量标准差〖VMACD〗:VMACD 指数平滑异同平均线〖WR〗:W&R 威廉指标〖WDZB〗:KST 完定指标〖WLLD〗:威力雷达〖WVAD〗:WVAD 威廉变异离散量〖XS〗:XS 薛氏通道〖XDT〗:XDT 心电图〖ZIG〗: ZIG ZIG ZAG 之字转向〖ZDZB〗:ZDZB 筑底指标〖ZHPS〗:ZHPS 智慧判势〖ZHSL〗:ZHSL 换手率〖ZLGJ〗:ZLGJ 主力轨迹〖ZLJC〗:ZLJC 主力进出〖ZLMM〗:ZLMM 主力买卖〖ZUPR〗:ZUPR 阶段涨幅〖ZVOL〗:ZVOL 阶段总成交量〖ZLCB〗:主力成本〖ZAMOUNT〗:ZAMOUNT 阶段总成交额〖FASTKD〗:FASTKD 随机快步〖CCI40〗:CCI-4.0 通道指数〖STOCKRSI〗:STOCKRSI。
如何编制大智慧指标
如何编制大智慧指标(易学易懂)关注AHFYXL1的发言【大中小】打印推荐给朋友收藏点击72233次回复301次复制本帖地址如何编制大智慧指标[Copy to clipboard][ - ] CODE:如何汇编自己的公式,好多人只会引入或拆解别人的公式组装一下但终归不是自己的原装,自己也想动手编制但苦于不会,这里就教你学会如何由浅至深的编制公式的技能.满世界找开琐钥匙(寻找破解指标),不如自己做个造锁专家(编写公式指标专家),您说呢?怎样编写大智慧指标公式?目前大多数证券分析软件都具有指标分析和条件选股的功能,但只有用户可以自己编制算法公式的系统才是真正实用的,因为:许多软件的指标和选股功能是黑箱操作,也就是说,其内部算法是不公开的。
这样用户并不知道其指标和选股到底是如何运作的、可靠性有多高、前提条件是什么,因而也难以决定是否采用指标或选股的结果。
这样的指标和选股只有宣传上的意义而没有任何实际意义。
许多软件的选股功能都不够强大和灵活。
例如有些软件的条件选股功能只能让用户按照特定的模式进行设定,适用面很窄。
公式系统类似于一种编程语言,用户可以数学公式的形式实现任何自己期望的技术指标和选股条件等。
可编制的公式可以完全公开算法,用户可以自行分析、评价和修改,做到心中有数。
公式系统的作用是什么呢?公式系统其实就是对一系列随时间变化的原始数据组序列进行代数和逻辑计算。
为什么是数据组序列呢?因为每一个时间周期(即相邻两组数据间的时间间隔)都包含了一组原始数据,如开高低收量额,公式系统能对其中的任何原始数据进行操作。
使用者定义出如何对原始数据进行处理得到一个新的数据,公式系统读出原始数据并按要求计算出使用者定制的数据,并以曲线、图形、指示等形式显示出来。
公式系统可以编辑四种类型的公式,分别是技术指标、交易系统、条件选股和五彩K线公式。
技术指标公式是最基本的公式,它用于指标图形的绘制。
技术指标公式结合选股条件逻辑判断表达式,即得到条件选股公式,用于条件选股。
大智慧自编指标
1、天狼操盘手指导线(主图指标)LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);波动回调提示图:MA(CLOSE,10000);STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,color0000FF; STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,colorFF0000; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),Color00FFFF;DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),Color00FF00;DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回调!'),colorFFFFFF;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=cross(买线,卖线);SEL:=cross(卖线,买线);stickline(买线>=卖线,low,high,1,0),colorred;stickline(买线>=卖线,close,open,4.5,0),color0000aa;stickline(买线>=卖线,close,open,4,0),color0000cc;stickline(买线>=卖线,close,open,3,0),color0000cc;stickline(买线>=卖线,close,open,2,0),color0000ee;stickline(买线<卖线,close,open,4.5,0),coloraaaa00;stickline(买线<卖线,close,open,4,0),colorbbbb00;stickline(买线<卖线,close,open,3,0),colorcccc00;stickline(买线<卖线,close,open,2,0),coloreeee00;stickline(买线<卖线,low,high,1,0),colorffff00;stickline(cross(买线,卖线) or cross(卖线,买线),open,close,3,0),color00ffff;指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1, ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;2、成交天机(付图指标)实际量:vol,LINETHICK0;{V AR1:=DYNAINFO(17)*REF(MA(VOL,5),1);V AR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;预测:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2)/10000;预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2),V AR1,0,7,1),COLORGREEN;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2)),POINTDOT,COLORRED;主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;换手率%:VOL/CAPITAL*100,POINTDOT,COLORwhite;STICKLINE(C>=REF(C,1) ,0,VOL,4,1),COLORRED;STICKLINE(C<REF(C,1) ,0,VOL,4,1),COLORGREEN;STICKLINE(主买>0 ,0,主买,4,0),COLORRED;STICKLINE(主卖<0 ,0,主卖,4,0),COLORGREEN;资金异动:VOL/ma(vol,55)*100,COLORyellow;STICKLINE(资金异动>100,0,vol,2,0),COLORyellow;A股:CAPITAL/1000000,colorwhite;ma5:ma(v,5),colorwhite;ma13:ma(v,13),colorred;DRAWtext(cross(ma(v,5),ma(v,13)),(v *1.05),'★'),coloryellow;3、吸逃指标(辅图指标)stickline(c>0,-100,150,100,0),color334400;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); 短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((A TAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((A TAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);if((K > D),K,d),colorFF00FF;if((K < D),d,K),colorFFFF00;if((J > D),J,d),LINETHICK2,color0000FF;if((J < D),d,J),LINETHICK2,color00FF00;20,POINTDOT,color00FF00;80,POINTDOT,color00FF00;V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);底部1:IF(V AR6 ,20,0),colorFFFF00;STICKLINE((CROSS(J,K) AND (底部1 >= 20)),100,0,2,0),colorFFFFFF; DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'--全仓'); STICKLINE((V AR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((V AR6 <= (0 - 15)),80,'买'),colorFFFFFF;STICKLINE((V AR6 <= (0 - 15)),80,60,2,0),color0000FF;V AR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));V AR8:=(((CLOSE - V AR7) / V AR7) * 100);V AR9:=((((REF(V AR8,1) < (0 - 40)) AND (V AR8 > REF(V AR8,1))) AND (REF(V AR8,1) < REF(V AR8,2))) AND ((V AR8 - REF(V AR8,1)) > 2.5));V ARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V ARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V ARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V ARD:=REF(CLOSE,1);V ARE:=((SMA(MAX((CLOSE - V ARD),0),5,1) / SMA(ABS((CLOSE - V ARD)),5,1)) * 100);V ARF:=(((HIGH + LOW) + CLOSE) / 3);V AR10:=((V ARF - MA(V ARF,14)) / (0.015 * A VEDEV(V ARF,14)));V AR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));V AR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));V AR13:=(V AR11 AND V AR12);V AR14:=((((V ARA>= (0 - 45)) AND (V ARA<= (0 - 10))) AND (V ARB <= (0 - 15))) AND (V ARC <= (0 - 20)));V AR15:=(COUNT(V AR14,1) >= 1);V AR16:=(V AR13 AND V AR15);V AR17:=1;V AR18:=(CLOSE * VOL);V AR19:=EMA((((((MA(V AR18,4) / MA(VOL,4)) + (MA(V AR18,6) / MA(VOL,6))) + (MA(V AR18,13) / MA(VOL,13))) + (MA(V AR18,24) / MA(VOL,24))) / 4),1);V AR1A:=(1 * V AR19);V AR1B:=(V AR19 * 0.92);V AR1C:=EMA(CLOSE,34);V AR1D:=MA((V AR1C * 1.12),5);V AR1E:=MA((V AR1C * 0.82),5);V AR1F:=(CLOSE < V AR1E);V AR20:=((((((MA(AMOUNT,5) * V AR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * V AR17));V AR21:=HHV(HIGH,500);V AR22:=LLV(LOW,500);V AR23:=HHV(HIGH,250);V AR24:=LLV(LOW,250);V AR25:=HHV(HIGH,125);V AR26:=LLV(LOW,125);V AR27:=MA(((((((V AR21 * 0.45) + (V AR23 * 0.5)) + V AR22) + V AR24) + V AR26) / 5),35);V AR28:=MA((((V AR23 * 0.62) + V AR26) / 2),35);V AR29:=MA((((V AR23 * 0.75) + V AR26) / 2),18);V AR2A:=MA((((((V AR23 * 0.93) + (V AR27 * 2)) + (V AR28 * 1.8)) + (V AR29 * 1.5)) / 4),18);V AR2B:=MA(((((V AR21 * 0.95) + (V AR27 * 3)) + (V AR28 * 2)) / 3),35);V AR2C:=V AR27;V AR2D:=V AR28;V AR2E:=V AR29;V AR2F:=V AR2A;V AR30:=V AR2B;V AR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));V AR32:=(INDEXA / 100000000);V AR33:=INDEXADV;V AR34:=INDEXDEC;V AR35:=((V AR18 / (V AR18 + V AR19)) * V AR17);V AR36:=((V AR19 / (V AR18 + V AR19)) * V AR17);V AR37:=EMA(V AR35,10);V AR38:=EMA(V AR36,10);V AR39:=EMA(V AR37,10);V AR3A:=EMA(V AR38,20);V AR3B:=EMA(V AR37,3);V AR3C:=EMA(V AR39,6);V AR3D:=EMA(V AR3A,2);V AR3E:=(V AR3C - V AR3D);V AR3F:=(((V AR3C - REF(V AR3C,1)) > 0) AND ((REF(V AR3C,1) - REF(V AR3C,2)) < 0));V AR40:=IF((CROSS(V AR3B,V AR3C) AND (V AR3C <= 20)),30,0);V AR41:=V AR40;V AR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);V AR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);V AR44:=(CLOSE - REF(MA(CLOSE,20),11));V AR45:=(((((((((((((CLOSE < V AR1E) AND V AR20) AND (CLOSE < V AR43)) OR (((CLOSE < V AR1E) AND V AR31) AND V AR20)) OR ((CLOSE < V AR1E) AND (CLOSE < V AR43))) OR (((CLOSE < V AR1E) AND V AR20) AND (CLOSE < V AR43))) OR (V AR20 AND (CLOSE < V AR2C))) OR ((V AR20 AND V AR31) AND (V AR44 < (0 - 1.5)))) OR (V AR20 AND (CLOSE < V AR1E))) OR (V AR20 AND (V AR44 < (0 - 1.5)))) OR (V AR31 AND (CLOSE < V AR43))) OR ((CLOSE < V AR2C) AND (V AR44 < (0 - 1.5)))) OR ((CLOSE < V AR1E) AND V AR31));V AR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR49:=REF(CLOSE,1);V AR4A:=((SMA(MAX((CLOSE - V AR49),0),5,1) / SMA(ABS((CLOSE - V AR49)),5,1)) * 100); V AR4B:=(((HIGH + LOW) + CLOSE) / 3);V AR4C:=((V AR4B - MA(V AR4B,14)) / (0.015 * A VEDEV(V AR4B,14)));V AR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));V AR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));V AR4F:=(V AR11 AND V AR12);V AR50:=((((V AR2 >= (0 - 45)) AND (V AR2 <= (0 - 7))) AND (V AR3 <= (0 - 11))) AND (V AR4 <= (0 - 14)));V AR51:=(COUNT(V AR50,1) >= 1);V AR52:=(V AR4F AND V AR51);V AR53:=(((((V AR20 AND (CLOSE < V AR1E)) AND V AR31) AND (CLOSE < V AR2C)) ANDV AR45) AND V AR52);V AR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR57:=REF(CLOSE,1);V AR58:=((SMA(MAX((CLOSE - V AR57),0),5,1) / SMA(ABS((CLOSE - V AR57)),5,1)) * 100); V AR59:=(((HIGH + LOW) + CLOSE) / 3);V AR5A:=((V AR59 - MA(V AR59,14)) / (0.015 * A VEDEV(V AR59,14)));V AR5B:=((((((V AR54 >= (0 - 15.8)) AND (V AR54 <= (0 - 12.2))) AND (V AR55 <= (0 - 20.8))) AND (V AR56 <= (0 - 27.5))) AND (V AR58 <= 11.7)) AND (V AR5A <= (0 - 145)));V AR5C:=9.999999884842+026;V AR5D:=(COST(10) * 0);V AR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));V AR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);V AR60:=((CROSS((0 - 5),V AR5F) AND (V AR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));V AR61:=MA(CLOSE,3);V AR62:=(REF(CLOSE,2) * 0.865);V AR63:=(REF(CLOSE,13) * 0.772);V AR64:=MIN(V AR62,V AR63);V AR65:=((100 * VOL) / CAPITAL);V AR66:=MA(CLOSE,13);V AR67:=IF(((((CLOSE - V AR64) / CLOSE) < 0.03) AND ((SUM(V AR65,5) / 5) < 1.8)),1,0);胡涂出击:IF(((((V AR9 OR V AR16) OR V AR53) OR V AR5B) OR ((((CLOSE - V AR64) / CLOSE) < 0.03) AND ((SUM(V AR65,5) / 5) < 1.8))),120,0),LINETHICK2,color0000FF;V AR68:=0;MACD:(V AR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),colorCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'--短买'),color00FF00;DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),5,0),color88B7EA;V ARQ:=MA(CLOSE,152);V ARW:=MA(CLOSE,194.16);V AREe:=(V ARW + (2 * STD(CLOSE,170)));V ARR:=(V ARQ + (2 * STD(CLOSE,170)));V ART:=IF((DA TE > 1080822),0,1);V AR611:=EMA(HHV(HIGH,500),21);V AR71:=EMA(HHV(HIGH,250),21);V AR81:=EMA(HHV(HIGH,90),21);V AR91:=EMA(LLV(LOW,500),21);V ARA1:=EMA(LLV(LOW,250),21);V ARB1:=EMA(LLV(LOW,90),21);V ARC1:=EMA((((((((V AR91 * 0.96) + (V ARA1 * 0.96)) + (V ARB1 * 0.96)) + (V AR611 * 0.558))+ (V AR71 * 0.558)) + (V AR81 * 0.558)) / 6),21);V ARD1:=EMA((((((((V AR91 * 1.25) + (V ARA1 * 1.23)) + (V ARB1 * 1.2)) + (V AR611 * 0.55)) + (V AR71 * 0.55)) + (V AR81 * 0.65)) / 6),21);V ARE1:=EMA((((((((V AR91 * 1.3) + (V ARA1 * 1.3)) + (V ARB1 * 1.3)) + (V AR611 * 0.68)) + (V AR71 * 0.68)) + (V AR81 * 0.68)) / 6),21);V ARF1:=EMA((((((V ARC1 * 3) + (V ARD1 * 2)) + V ARE1) / 6) * 1.738),21);V AR101:=REF(LOW,1);V AR111:=((SMA(ABS((LOW - V AR101)),3,1) / SMA(MAX((LOW - V AR101),0),3,1)) * 100); V AR121:=EMA(IF(((CLOSE * 1.35) <= V ARF1),(V AR111 * 10),(V AR111 / 10)),3);V AR131:=LLV(LOW,30);V AR141:=HHV(V AR121,30);V AR151:=IF(MA(CLOSE,58),1,0);V AR161:=((EMA(IF((LOW <= V AR131),((V AR121 + (V AR141 * 2)) / 2),0),3) / 618) * V AR151);V AR171:=(((IF((V AR161 > 50),50,V AR161) / 20) * 15) * V ART);底部吸筹:STICKLINE((V AR171 > 0),0,V AR171,1,1),colorFF00FF;STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),color0000FF;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'--抄底'),color0000FF;STICKLINE(CROSS(90,J),88,100,2,0),color00FF00;DRAWTEXT(CROSS(90,J),108,'。
大智慧指标代码
〖QLDX〗:钱龙短线 〖QLZB〗:钱龙指标 〖QRSI〗:QRSI 量 RSI 〖QHLSR〗:QHLSR 阻力指标 〖RC〗:RC 变化率指数 〖RS〗:RS 相对强弱比 〖RMI〗:RMI 〖ROC〗:ROC 变动速率 〖RSI〗:RSI 相对强弱指标 〖RCCD〗:RCCD 异同离差变化率指数 〖SP〗:SP 低点搜寻交易系统 〖SAR〗:SAR 抛物转向 〖SCR〗:SCR 筹码集中度 〖SMI〗:SMI 〖SJKB〗:FASTKD 随机快步 〖SJPF〗:ACD 收集派发 〖SOBV〗:SOBV 能量潮 〖SRMI〗:SRMI MI 修正指标 〖STIX〗:STIX 指数平滑广量指标 〖SLOWKD〗:SLOWKD 慢速 KD 〖SDKJ〗:四度空间 〖TBR〗:TBR 新三价率 〖TDX〗:TDX 天地线 〖TDZS〗:CCI-4.0 通道指数 〖TRIX〗:TRIX 三重指数平滑平均数 〖TRIX40〗:TRIX-4.0 TRIX 趋向指标 〖UOS〗:UOS 终极指标 〖VB〗:VB 波幅通道 〖VR〗:VR 容量比率 〖VMA〗:VMA 成交量指标 〖VOL〗:VOL 成交量 〖VPT〗:VPT 量价趋势 〖VOSC〗:VOSC 成交量震荡 〖VSTD〗:VSTD 成交量标准差 〖VMACD〗:VMACD 指数平滑异同平均线 〖WR〗:W&R 威廉指标 〖WDZB〗:KST 完定指标 〖WLLD〗:威力雷达 〖WVAD〗:WVAD 威廉变异离散量 〖XS〗:XS 薛氏通道 〖XDT〗:XDT 心电图 〖ZIG〗: ZIG ZIG ZAG 之字转向 〖ZDZB〗:ZDZB 筑底指标 〖ZHPS〗:ZHPS 智慧判势
〖ENV〗:ENV 轨道线 〖EOM〗:EOM 活动能力 〖EXPMA〗:EXPMA 平滑移动平均线 〖GDS〗:股东数 〖GLZB〗:ALF 过滤指标 〖HDNL〗:EOM 活动能力 〖II〗:II 当日成交密度 〖JDQS〗:JDQS 阶段强势指标 〖JJZB〗:CHO 济坚指数 〖JEZF〗:江恩正方 〖KD〗:KD 随机指标 〖KDJ〗:KDJ 随机指标 〖KST〗:KST 完定指标 〖LFS〗:LFS 锁定因子
大智慧的指南针指标公式
大智慧的指南针指标公式(一共21个公式)原码1,CYW主力控盘VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(V AR3/V AR2+V AR 1/VAR2)*VOL); SUM(V AR4,10)/10000, COLORSTICK;2,CYW-YJJ主力控盘VAR1:=1;VAR2:=CLOSE-REF(CLOSE,1);VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,V AR2,0);VAR4:=REF(CLOSE,1)-CLOSE;VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);VAR6:=SUM(VAR3,P1)/SUM(V AR5,P1);VAR7:=100-100/(1+VAR6);VAR8:=EMA(VAR7,P1);VAR9:=EMA(VAR8,P2);VARA:=EMA(V AR8,P3);MO: (V AR8-V ARA)*VAR1;ML: (V AR9-V ARA)*VAR1;MODE: MO*VAR1, COLORSTICK;p1:=0,100,6p2:=0,100,8p3:=0,100,453,CYS盈亏指标V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);V ar4:=MA(V ar1,N3);V ar5:=DMA(CLOSE,VOL/CAPITAL);CYS5: 100*(CLOSE-V ar2)/V ar2;CYS13: 100*(CLOSE-V ar3)/V ar3;CYS34: 100*(CLOSE-V ar4)/V ar4;CYS无穷: 100*(CLOSE-V ar5)/V ar5;n1:=0,100,51n2:=0,100,13n3:=0,100,344,CYE市场趋势MAL:=MA(CLOSE,5);MAS:=MA(MA(CLOSE,20),5);CYEL:MAL-REF(MAL,1)/REF(MAL,1)*100;CYES:MAS-REF(MAS,1)/REF(MAS,1)*100;5,CYR市场强弱DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);CYR:=DIVE/REF(DIVE,1)-1*100;MACYR:MA(CYR,M);n:=0,100,13m:=0,100,56,CYQKL博弈K线100*(WINNER(CLOSE)-WINNER(OPEN)), COLORSTICK;7,CYOBV优化累积能量NOBV1:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL, 0)),N)/CAPITAL; n:=0,100,348,CYF市场能量HSL:=VOL/CAPITAL*100;CYF:100-100/(1+EMA(HSL,N)*100);n:=0,100,219,CYDD动态承接V ar1:=WINNER(CLOSE);V ar2:=DMA(V ar1,VOL/CAPITAL);V ar3:=DMA(VOL,VOL/CAPITAL)/CAPITAL;CYDD: V ar1/Var3;CYDD1: V ar2/Var3;1, POINTDOT;10,CYD2承接因子A:=WINNER(CLOSE )*CAPITAL;2承接因子:A/VOL;11,CYD承接因子CYDS:WINNER(CLOSE)/(VOL/CAPITAL);CYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);n:=0,100,2112,CYC2成本均线CYC1:0.01*EMA(AMOUNT,n1)/EMA(VOL,n1);CYC2:0.01*EMA(AMOUNT,n2)/EMA(VOL,n2);CYC3:0.01*EMA(AMOUNT,n3)/EMA(VOL,n3);CYC∞:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE(7))); n1:=0,100,5n2:=0,100,13n3:=0,100,3413,CYC1成本均线V ar1:=AMOUNT/(100*VOL);短线成本均线: MA(V ar1,N1);中线成本均线: MA(V ar1,N2);长线成本均线: MA(V ar1,N3);无穷成本均线: DMA(CLOSE,VOL/CAPITAL);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n1:=0,100,5n2:=0,100,13n3:=0,100,34314,CYB优化布林线MB: MA(CLOSE,N);上轨: MB+STD(CLOSE,N);下轨: MB-STD(CLOSE,N);上极限: MB+2*STD(CLOSE,N);下极限: MB-2*STD(CLOSE,N);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n:=0,100,1315,CMACD指标V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);CMACD: 100*(V ar2-V ar3)/V ar3, COLORSTICK;n1:=0,100,5n2:=0,100,1316,CBXQD成本均线V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);4V ar4:=MA(V ar1,N3);V ar5:=DMA(CLOSE,VOL/CAPITAL);CYR5: 100*(V ar2-REF(V ar2,N))/REF(V ar2,N);CYR13: 100*(V ar3-REF(V ar3,N))/REF(V ar3,N);CYR34: 100*(V ar4-REF(V ar4,N))/REF(V ar4,N);CYR无穷: 100*(V ar5-REF(V ar5,N))/REF(V ar5,1);n:=0,100,4n1:=0,100,5n2:=0,100,13n3:=0,100,3417,CBW成本带宽CBW: 100*(COST(N1)-COST(N2))/COST(N1);n1:=0,100,98n2:=0,100,218,CBAND布林线宽V ar1:=MA(CLOSE,N);V ar2:=V ar1+2*STD(CLOSE,N);变盘: 5, POINTDOT;布林宽度: (V ar2-V ar1)/V ar1*100;警戒: 30, POINTDOT;n;=5,100,3020,指南针CYE顶部: 4,COLORBLUE;强势: 1,COLORRED;弱势: -1,colorf00ff0;底部: -4,COLORWHITE;短期趋势:(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*100,COLORWH ITE,LINETHICK2; 中期趋势:(MA(MA(CLOSE,13),5)-REF(MA(MA(CLOSE,13),5),1))/REF(MA(MA(CLOSE, 13),5),1)*100,colorf00ff0,LINETHICK2;长期趋势:(MA(MA(CLOSE,34),5)-REF(MA(MA(CLOSE,34),5),1))/REF(MA(MA(CLOSE, 34),5),1)*100,COLORRED,LINETHICK2;521,0amaV ar1:=SMA("AMOUNT",10,1)/10000000;V ar2:=REF(V ar1,1);AA: STICKLINE(V ar1>Var2,V ar1,V ar2,8,1),COLORRED; AD: STICKLINE(V ar1<V ar2,V ar1,V ar2,8,0),COLORGREEN; C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL); C13: DMA(SMA(Var1,5,1),VOL/0.1/CAPITAL); C34: DMA(SMA(Var1,8,1),VOL/0.18/CAPITAL); ∞: DMA(V ar1,VOL/1.1/CAPITAL);6。
大智慧BS指标
大智慧BS指标(益盟)买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=cross(买线,卖线);SEL:=cross(卖线,买线);drawtext(bu,LOW,'B'),colorred,linethick3;DRAWTEXT(bu,LOW,' ̄'),Color208FFF,LINETHICK3;DRAWTEXT(sel,HIGH,' ̄'),ColorFFFF00,LINETHICK3;drawtext(sel,HIGH,'S'),colorgreen,linethick3;stickline(买线>=卖线,low,high,0.1,1),colorred;stickline(买线>=卖线,close,open,8,1),colorred;stickline(买线<卖线,close,open,8,0),color00ff00;stickline(买线<卖线,low,high,0.1,1),color00ff00;stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),colorffff00;指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/ 4,2),linethick1,ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;DRAWTEXT(cross(指导线,界),界,' ̄ ̄'),Colorffffff;DRAWTEXT(cross(界,指导线),界,' ̄ ̄'),Color00ffff;大智慧BS指标(益盟)2a:="STSFunc@CALSTSL";R1:="STSFunc@STS_RISK1";R2:="STSFunc@STS_RISK2";S1:="STSFunc@STS_STS1";S2:="STSFunc@STS_STS2";TBS:="STSFunc@STS_STSBS";DN:="STSFunc@STS_STSDN";UP:="STSFunc@STS_STSUP";压力位:UP,linethick0,color0000ff,PRECIS2;支撑位:DN,linethick0,color00ff00,PRECIS2;警示位:IF(R1<>0,ABS(R1),IF(R2<>0,ABS(R2),0)),linethick0,colorff00ff,PRECI S2;MA5:MA(CLOSE,5),colorFFFFff,PRECIS2;MA10:MA(CLOSE,10),color00FFff,PRECIS2;DRAWLINE(UP>0,UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),dotline,color0000ff,LINETHICK1; DRAWLINE(DN>0,DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),dotline,color00ff00,LINETHICK1; DRAWLINE(UP<0,-UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),color0000ff;DRAWLINE(DN<0,-DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),color00ff00;DRAWLINE(R1>0,R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),dotline,colorEE88ff;DRAWLINE(R2>0,R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),dotline,colorEE88ff;DRAWLINE(R1<0,-R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),colorEE88ff;DRAWLINE(R2<0,-R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),colorEE88ff;drawbmp(TBS=1,l*0.96,'STSbuy1.bmp'),align1,valign0;drawbmp(TBS=-1,h*1.07,'STSsell1.bmp'),align1,valign0;drawbmp(S2=14,l*0.94,'STSbuy.bmp'),align1,valign0;drawbmp(S2=-14,h*1.09,'STSsell.bmp'),align1,valign0;drawtext(S1>0,L,STR(S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S1<0,H*1.03,STR(-S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S2>0 andS2<13,l*0.97,STR(S2)),color0000FF,LINETHICK1,align1,valign0;drawtext(S2<0 andS2>-13,H*1.06,STR(-S2)),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=13,l*0.97,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=14,l*0.97,'13'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-13,h*1.06,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-14,h*1.06,'13'),color0000FF,LINETHICK1,align1,valign0;b:="LTFunc6@FORLT2";s11:="LTFunc6@LT_S1";hs:="LTFunc6@LT_HS";ls:="LTFunc6@LT_LS";p1:="LTFunc6@LT_P1";upp:="LTFunc6@LT_UPP";udd:="LTFunc6@LT_UDD";d1:=ema(abs("ddx.ddx"),60);d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.ddx"/d1,10);fb:=if(s11=0,hs,ls);tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点\n','若明日收盘价> '+numtostrn(upp,2)+',出现B点\n');tr1:=ifs(s11=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价> '+numtostrn(hs,2)+'短线买入机会');tr2:=ifs(p1=1,ifs(cross(p1,0),'B点','持股'),ifs(cross(1,p1),'S点','持币'));tr3:=ifs(s11=0,'向下,','向上,');tr4:='3.能量级别:'+numtostrn(d3,1)+'级';bs:='<*t=0092F7*><*c=FFFFFF*><*p=95*>'+datestr(date)+' 买卖点决策系统提示\n'+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'1.BS点:'+tr2+','+tr0+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'2. 短线:'+tr3+tr1+'\n'+'<*t=E7FFFF*><*c=000000*><*p=95*> '+tr4; drawflagtext(1,fb,bs);STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s11=1 and ref(s11,1)=0 and(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s11=0 and ref(s11,1)=1 and(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;zg8:=FINANCE2(35);{总股}lta8:=FINANCE2(36);{流通A}sy8:=FINANCE2(3);{收益}sl8:=DYNAINFO(39);{市盈率}wf8:=FINANCE2(8);{未分}gj8:=FINANCE2(7);{公积};jz8:=FINANCE2(4);{净资}cw8:='总股:'+zg8+' 流通A:'+lta8+' 收益:'+sy8+' 市盈率:'+sl8+' 未分:'+wf8+' 公积:'+gj8+' 净资:'+jz8;DRAWTEXTREL(20,10,BKNAME),Coloryellow;DRAWTEXTREL(20,60,cw8),COLORAAEEEE;I1:=0;flag1:=0;while I1<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)DOIF REF(H,I1)<REF(L,I1+1) AND REF(L,I1+1)>HHV(H,I1+1)THEN BEGIN FLAG1:=1;S1:=I1;I1:=BARSLAST(D ISPSTATUS=1);ENDELSE I1:=I1+1;STICKLINE(FLAG1,REF(L,S1+1),HHV(H,S1+1),(s1+1)*20,0),ColorC0C0C0 ,ALIGN1,LAYER7;DRAWTEXT(flag1,REF(L,s1+1),NUMTOSTRN(ref(h,s1+1),2)+'-'+NUMTOSTRN( hhV(h,S1+1),2)),ALIGN2,COLORgreen;I:=0;flag:=0;while I<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)DOIF REF(L,I)>REF(H,I+1) AND REF(H,I+1)<LLV(LOW,I+1)THEN BEGIN FLAG:=1;S:=I;I:=BARSLAST(DI SPSTATUS=1);ENDELSE I:=I+1;STICKLINE(FLAG,REF(h,S+1),LLV(LOW,S+1),20*(s+1),500),ColorC0C0C0 ,ALIGN1,LAYER7;DRAWTEXT(FLAG,REF(H,s+1),NUMTOSTRN(ref(h,s+1),2)+'-'+NUMTOSTRN(LLV(LO W,S+1),2)),ALIGN2,COLORgreen;。
大智慧指标编写
• (三)常见颜色问题。 从上表中我们可以看出,大部分颜色符号是通用的。 但在将源码粘贴时,因股软的不同,有时会出现《未定义 的标识符》字样,很多时候就是颜色惹的祸。常见的是: COLORCYAN 淡蓝色,大智慧不识别,需改成: COLORFF0000 COLORMAGENTA 晶红色,大智慧不识别,需改成: COLORF00FF0 特别提示:找不到相对应的颜色函数怎么办?一是删 除,让系统自动填加。二是更换数字或字母。 实际上只要在COLOR后面加上0-9、A-F中的任意 6个数字字母,就可组成不同的颜色。有兴趣的可试试
• (四)指标线粗细函数 LINETHICK 放 在语句的后面,用 , 号隔开。例: LINETHICK2,后面的数值越大,线就越 粗。 特别提示:LINETHICK0 表示不画 出指标线,但可在顶部显示数值。
• 二、绘图函数 1、DRAWICON 在图形上绘制小图标。这是最常用的绘图函 数之一。 用法:DRAWICON(条件,位置,图标) 飞狐15种图标编码为1-15(1-3为小脸,4-5为上下箭头,6-7为红 绿小旗,8-9为三角形,10-12为信号灯,13-15为O、X、四方形)。 大智慧2的图标编码为14个。 其他股软略少。 这个函数通用。但同一数字编码,显示出的图形区别却非常大, 形态也不一样。大家可通过变动数字编码自行调整。 2、DRAWTEXT 在图形上显示文字。这也是最常用的绘图函 数之一。 用法:DRAWTEXT(条件,位置,文字),注意,文字必须用单引号 '' 引上才能输出。 飞狐可用'\n'换行, 飞狐和大智慧2可用 ALIGN 0-3 定义 对齐方式。
•
(二)常用颜色: 颜 色 1:飞狐的: 6、通用符号
2、大智慧2 同前 同前
大智慧正版超赢指标源码.docx
大智慧正版超赢指标源码大智慧超赢指标源码:{SVSH -散户线模型}input:p1(7);variable: 散户帐号数 =0;参数 :=min(1-(h-c)/c,1-(c-l)/c,1-(h-l)/c);TOP 散户 :=TOPVIEW(1360)+TOPVIEW(1361); T1:=topview(1430);T2:=topview(1431);T3:=topview(1432);T4:=topview(1433);s1:=(t1-ref(t1,1));s7:=(t1-ref(t1,p1));bb:=if(order(1)-order(2)>=0,pow(abs((order(1)-order(2))*参数),0.8),0-pow(abs((order(1)-order(2))*参数),0.8));;aa:=INTPART(max(min(散户帐号数+bb,capital/8),capital/2000));散户帐号数 :if(TOPVIEW(1400,0,1)0,TOP散户,aa),PRECIS0,linethick2;drawmovetext(s7>0,numtostr(p1)+'日内散户增仓占'+numtostr(s7)+'%'),colorgreen;drawmovetext(s71,散户帐号数,'散户当日增仓占流通盘的'+NUMTOSTR(s1)+'%'),colorgreen;drawflagtext(s1<-1,散户帐号数,'散户当日减仓占流通盘的'+NUMTOSTR(abs(s1))+'%'),colorred;DRAWGBK((topview(1400,0,10)-ref(topview(1400,0,10),1))0 and STRCMP(STKLABEL,'000001')0 andcapital0),COLOR484848;drawmovetext((topview(1400,0,10)-ref(topview(1400,0,10),1))>0,' 流通 A 股增加了'+NUMTOSTR((topview(1400,0,10)-ref(topview(1400,0,10) ,1))/10000)+' 万股 '),coloryellow;drawmovetext((topview(1400,0,10)-ref(topview(1400,0,10),1))<0,' 流通 A 股减少了'+NUMTOSTR((ref(topview(1400,0,10),1)-topview(1400,0, 10))/10000)+' 万股 '),coloryellow;{SVZL -主力持仓分析}input:p1(7);主力持仓 :topview(1436,0,200),LINETHICK2;bb1:= 主力持仓 -ref( 主力持仓 ,1);STICKLINE(bb1=0,bb1+ 主力持仓 ,主力持仓,0.1,0),colorred;STICKLINE(bb1>=0.2 and bb1-0.2 and bb1<0,主力持仓+bb1, 主力持仓 ,0.1,0),COLORCYAN;STICKLINE(bb1-1,主力持仓+bb1,主力持仓,1,0),COLORCYAN;STICKLINE(bb1-2,主力持仓+bb1,主力持仓,2,0),COLORCYAN;STICKLINE(bb10,NUMTOSTR(p1)+'日内买卖净占比'+NUMTOSTR(多日净值)+'%'),colorred;drawmovetext(多日净值0.2,主力持仓+bb1,'当日主力净买入占流通盘的'+NUMTOSTR(intpart(bb1*100)/100)+'%'),colorred;drawflagtext(bb1<=-0.2,主力持仓+bb1,'当日主力净卖出占流通盘的'+NUMTOSTR(intpart(-bb1*100)/100)+'%'),colorgreen;DRAWGBK((topview(1400,0,10)-ref(topview(1400,0,10),1))0 and STRCMP(STKLABEL,'000001')0 andcapital0),COLOR484848;drawmovetext((topview(1400,0,10)-ref(topview(1400,0,10),1))>0,' 流通 A 股增加了'+NUMTOSTR((topview(1400,0,10)-ref(topview(1400,0,10),1))/10000)+' 万股 '),coloryellow;drawmovetext((topview(1400,0,10)-ref(topview(1400,0,10),1))<0,' 流通 A 股减少了'+NUMTOSTR((ref(topview(1400,0,10),1)-topview(1400,0, 10))/10000)+' 万股 '),coloryellow;drawtextabs(0,0,'超赢主力持仓'),coloryellow;{SVZJ -资金流向决策分析 }T1:=topview(1430);T2:=topview(1431);T3:=topview(1432);T4:=topview(1433);散户:=(T1-REF(T1,1))*capital/10000*(c/if(TYPE=0,255.5,1));中户:=(T2-REF(T2,1))*capital/10000*(c/if(TYPE=0,255.5,1));大户:=(T3-REF(T3,1))*capital/10000*(c/if(TYPE=0,255.5,1));超大:=(T4-REF(T4,1))*capital/10000*(c/if(TYPE=0,255.5,1));净额 :=if(TYPE=0 and date0,0,净额,3,0),colorred;stickline( 净额 <0,0, 净额 ,3,0),colorgreen;stickline( 净额 =0,0, 净额 ,3,0),colorwhite;drawmovetext(1,'活跃资金进出'+numtostr(净额)+'万元'); drawtextabs(0,0,'超赢资金流'),coloryellow;{SVSS -超赢实时监控 }T1:=topview(1430);T2:=topview(1431);T3:=topview(1432);T4:=topview(1433);散户 :(T1-REF(T1,1))*capital/10000*c,PRECIS1,colorstick;中户 :(T2-REF(T2,1))*capital/10000*c,PRECIS1,colorstick;大户 :(T3-REF(T3,1))*capital/10000*c,PRECIS1,colorstick;超大 :(T4-REF(T4,1))*capital/10000*c,PRECIS1,colorstick; drawtextrel(0,997,'净额(万元)');drawtextrel(0,998.5,' 分类 ');drawtextrel(10,998,'#RULER10'),COLORYELLOW;drawtextrel(20,998,'#RULER10'),COLORYELLOW; drawtextrel(30,998,'#RULER10'),COLORYELLOW;drawtextrel(40,998,'#RULER10'),COLORYELLOW;{SVYY -引用指标 }原散户 :TOPVIEW(1430,0,100);原中户 :TOPVIEW(1431,0,100);原大户 :TOPVIEW(1432,0,100);原超大 :TOPVIEW(1433,0,100);昨日原散户 :REF( 原散户 ,1);昨日原中户 :REF( 原中户 ,1);昨日原大户 :REF( 原大户 ,1);昨日原超大 :REF( 原超大 ,1);{SVQS -超赢盘中趋势}昨天的超大 :="SVYY. 昨日原超大 #day";昨天的大户 :="SVYY. 昨日原大户 #day";昨天的中户 :="SVYY. 昨日原中户 #day";昨天的散户 :="SVYY. 昨日原散户 #day";当日超大 1:=(ordervol(1,3)-ordervol(2,3))/capital*100;当日大户1:=((ordervol(1,2)-ordervol(2,2))-(ordervol(1,3)-ordervol(2, 3)))/capital*100;当日中户1:=((ordervol(1,1)-ordervol(2,1))-(ordervol(1,2)-ordervol(2, 2)))/capital*100;当日散户 1:=0- 当日中户 1- 当日大户 1- 当日超大 1;当日散户 :=sum( 当日散户 1,0);当日中户 :=sum( 当日中户 1,0);当日大户 :=sum( 当日大户 1,0);当日超大 :=sum( 当日超大 1,0);最新超大 := 昨天的超大 +当日超大 ;最新大户 := 昨天的大户 +当日大户 ;最新中户 := 昨天的中户 +当日中户 ;最新散户 := 昨天的散户 +当日散户 ;回归后散户仓位:=1/(exp(50)/100*exp(-(50+(最新散户-50)/20))+0.01);回归后中户仓位:=1/(exp(50)/100*exp(-(50+(最新中户-50)/20))+0.01);回归后大户仓位:=1/(exp(50)/100*exp(-(50+(最新大户-50)/20))+0.01);回归后超大仓位:=1/(exp(50)/100*exp(-(50+(最新超大-50)/20))+0.01);归百 :=100/( 回归后散户仓位 +回归后中户仓位 +回归后大户仓位 +回归后超大仓位 );超大 :=回归后超大仓位*归百 ;大户 :=回归后大户仓位*归百 ;中户 :=回归后中户仓位*归百 ;散户 :=回归后散户仓位*归百 ;盘中变化 :大户 +超大 -ref( 大户 ,1)-ref( 超大,1),colorstICK,LINETHICK2;超赢趋势 :sum( 盘中变化 ,0);{SVFL -超赢分类统计}refline:0,25,50,75;T1:=topview(1430);T2:=topview(1431);T3:=topview(1432);T4:=topview(1433);散户 :percentbar(T1,REF(T1,1)),COLORGREEN;中户 :percentbar(T2,REF(T2,1)),COLORBLUE;大户 :percentbar(T3,REF(T3,1)),COLORCYAN;超大 :percentbar(T4,REF(T4,1)),COLORRED; drawtextrel(0,997,'比例%');drawtextrel(0,998.5,' 分类 ');drawtextrel(10,997,numtostrn(T1,1)),COLORGREEN;drawtextrel(20,997,numtostrn(T2,1)),COLORBLUE; drawtextrel(30,997,numtostrn(T3,1)),COLORCYAN; drawtextrel(40,997,numtostrn(T4,1)),COLORRED; drawtextrel(10,998,'#RULER10'),COLORYELLOW; drawtextrel(20,998,'#RULER10'),COLORYELLOW; drawtextrel(30,998,'#RULER10'),COLORYELLOW;drawtextrel(40,998,'#RULER10'),COLORYELLOW;{SVPH -分类排行 }散户 :=topview(1430);中户 :=topview(1431);大户 :=topview(1432);超大 :=topview(1433);P1 日前散户 :=REF( 散户 ,P1);散户持仓 :percentbar( 散户 ,P1 日前散户 ); P2 日前中户 :=REF( 中户 ,P2);中户持仓 :percentbar( 中户 ,P2 日前中户 ); P3 日前大户 :=REF( 大户 ,P3);大户持仓 :percentbar( 大户 ,P3 日前大户 ); P4 日前超大 :=REF( 超大 ,P4);超大持仓 :percentbar( 超大 ,P4 日前超大 );散户增减 :散户 -P1 日前散户 ;中户增减 :中户 -P2 日前中户 ;大户增减 :大户 -P3 日前大户 ;超大增减 :超大 -P4 日前超大 ;活跃资金增减 :大户 +超大 -ref( 大户 ,1)-ref( 超大 ,1);{TRT -顺势交易 }variable:p1=0;c1:=INTPART(cyc(5)*100*0.96)/100;p2:=intpart(ref(cyc(5),1)*100)/100;p3:=intpart(ref(cyc(5),1)*0.96*100)/100;vv:=intpart(min(capital*0.05,ref(ma(vol,34),1))/100);p40:=intpart(maxcyc*100)/100;p41:=intpart(ref(MAXCYC,1)*100)/100;p4:=p1=0 and c>p2 or(ref(vol/100,1)intpart(p2*0.98*100)/100 andvol>min(capital*0.05,ref(ma(vol,34),1)));p5:=p1=1 and c<min(p3,p41);p1:=if(p4=1,1,if(p5=1,0,ref(p1,1)));STICKLINE(p1=1 and co,c,o,8,1),colorffff54;STICKLINE(p1=0 and c>o,c,h,0.5,0),colorffff54;STICKLINE(p1=0 and c>o,l,o,0.5,0),colorffff54;DRAWTEXT(cross(p1,0),l*0.9,'B'),coloryellow,LINETHICK3;DRAWTEXT(cross(1,p1),h*1.05,'S'),COLORgreen,LINET HICK3;DRAWFLAGTEXT(p1=0 and (p2*0.98-c)/c>0.1,c,'持币');DRAWFLAGTEXT(p1=0 and (p2*0.98-c)/c<=0.1 andref(vol/100,1)<vv,c,' 明日收盘价超过'+str(p2)+'; 或收盘价超过'+str(intpart(p2*0.98*100)/100)+' 且成交量大于 '+str(vv)+'买入 ');DRAWFLAGTEXT(p1=0 and (p2*0.98-c)/c=vv,c,' 明日收盘价超过 '+str(p2)+' 买入 ');DRAWFLAGTEXT(p1=1 and (c-min(c1,p40))/min(c1,p40)>0.1 ,c,' 持股 ');DRAWFLAGTEXT(p1=1 and (c-min(c1,p40))/min(c1,p40)<=0.1 ,c,' 明日收盘价跌破'+str(min(c1,p40))+' 卖出 ');;{SUPL - 主力资金线 }variable:eye=0;eye:=(BIGORDER(1)-BIGORDER(2))*vol/capital*100;eyes:=sum(eye,0);gold:=eyes+50;主力资金 :gold,color0093f5;STICKLINE(eye>0 and eye=2,gold,gold+eye,4,0),colorred;STICKLINE(eye>-0.5 andeye<=0,gold+eye,gold,0.5,0),COLORCYAN;STICKLINE(eye-1,gold+eye,gold,2,0)SUZL,COLORCYAN;STICKLINE(eye-2,gold+eye,gold,3,0),COLORCYAN;STICKLINE(eye=0.3,gold+eye,'当日主力净买入力度'+NUMTOSTR(intpart(eye*100)/100)+'%'),colorred;drawflagtext(eye<=-0.3,gold+eye,'当日主力净卖出力度'+NUMTOSTR(intpart(eye*100)/100)+'%'),colorgreen;{每日大单 }每日大单:(bigorder(1)-bigorder(2))*vol/capital*100,color3d;{超赢买入- 选股公式 }DDX:=(BIGORDER(1)-BIGORDER(2))*vol/capital*100;DDX>0.1 and DYNAINFO(14)0.1 ANDCOUNT(DDX>0,10)>=3 and ddx>0.15;。
大智慧经典指标源码(二)
大智慧经典指标源码(二)21、涨停跳空N:=3;filter(COUNT((ref(c,n)/REF(C,(n+1))>=1.099),n)>=1,n);上跳空:L>REF(H,1),stick,color0000ff,linethick2;;下跳空:H<REF(L,1),stick,color00ff00,linethick2;;上跳空涨停:O/REF(C,1)>1.01 AND C/REF(C,1)>1.098,stick,COLORFF00FF,linethick2;22、月线指标N:=9;M1:=3;M2:=3;t:=ma(c,12);a2:=c>t;b:=t>REF(t,1) AND REF(t,1)<REF(t,2);拐点12月线:if(a2 and b,5,0),STICK,COLORYELLOW,LINETHICK3;趋势12月向上:(MA(C,12)>REF(MA(C,12),1))*3, CIRCLEDOT,COLORYELLOW;趋势24月向上:(MA(C,24)>REF(MA(C,24),1))*2, CIRCLEDOT,color0000ff;V1:=VOL/SUM(VOL,13);V2:=DMA(C,V1);RSI6:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;定海神针:IF(CROSS(20,RSI6),5,0),stick,COLORFFFFFF,linethick4;金叉KDJ:IF(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)) and "kdj.k"(9,3,3)<20,3,0),COLOR00FF00; DRAWTEXT(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)) and "kdj.k"(9,3,3)<20,3,''),COLORyellow; DRAWTEXT(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)) and "kdj.k"(9,3,3)<20,3,'叉'),COLORyellow;金10叉20: cross (ma(c,10),ma(c,20))*5,STICK,COLORFFFF00,LINETHICK4;23、熊市末端close<=5AND LLV(LOW,250)<=LLV(LOW,2)AND HHV(CLOSE,250)*0.35>LLV(LOW,1);k1:=ref(close,2)/ref(open,2)<0.95 and ref(c,2)<ref(c,3);k2:=ref(open,1)<ref(close,2) and ref(close,1)>ref(close,2) and ref(close,1)>(ref(close,2)+ref(open,2))/2;k3:=close>ref(close,1);k4:=llv(low,13)=ref(low,1);曙光初现:backset(k1 and k2 and k3 and k4,3);Var1:=CLOSE/EMA(CLOSE,51)*100<76;Var2:=CLOSE/EMA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.092;Var4:=Var3 AND COUNT(V ar3,5)>1;超跌起爆:if(Var4 AND (Var1 OR Var2),1,0) ,STICK,COLORRED,LINETHICK6;牛大底:"1A0001$CLOSE"/REF("1A0001$CLOSE",23)<0.78AND C/REF(C,30)<0.858 and ref(c,1)/l<1.5and ref(c,1)<>ref(o,1) and ref(c,2)<>ref(o,2) and ref(c,3)<>ref(o,3),stick,color00ff00,linethick2;24、抄底王var2:=MA(CLOSE, 5);var3:=MA(CLOSE, 10);var4:=MA(CLOSE, 20);var5:=MA(CLOSE, 30);var6:=(var2+var3+var4+var5)/4;var7:=(var6-REF(var6,15))/REF(var6,15)*100;var9:=EMA(var7,8);反转:STICKLINE(var9>1*REF(var9, 1), var7, 0, 5, 0), COLOREE00EE;持股:STICKLINE(var7>1*REF(var7, 1), var7, var9, 5, 0), COLORRED;持币:STICKLINE(var7<1*REF(var7, 1), var7, var9, 5, 1), COLORGREEN;洗盘:STICKLINE(var7<1*REF(var7, 1) AND var9>1*REF(var9, 1), var7, var9, 10, 0), COLOR00EEFF;var10:=(CLOSE-MA(CLOSE, 58))/MA(CLOSE, 58)*100;var11:=(var10>1*REF(var10, 1) AND var10<(-26) AND var10>(-40))*1.5;var12:=VOL/CAPITAL*100;var13:=LLVBARS(LOW, 50);var14:=SUM(VOL, var13);var15:=HHVBARS(HIGH, 50);var16:=SUM(VOL, var15);var17:=(CLOSE-REF(OPEN, var15))/REF(OPEN, var15)*100;var18:=var16/CAPITAL*100;var19:=(CLOSE-REF(OPEN, var13))/REF(OPEN, var13)*100;var20:=var14/CAPITAL*100;var21:=MA(CLOSE, 3);var22:=REF(CLOSE, 2)*0.865;var23:=REF(CLOSE, 13)*0.772;var24:=MIN(var22, var23);var25:=MA(CLOSE, 13);抄底王:IF((CLOSE-var24)/CLOSE<0.030 AND var17<(-35) AND SUM(var12, 5)/5<1.800, 1, 0)*10, COLORWHITE;DRAWTEXT(抄底王, 抄底王, ' 成功率90.22 %,共发出指示1289次底追'), COLORFFAA00;var26:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;var27:=(EMA(CLOSE, 12)-EMA(CLOSE, 26))*100;var28:=EMA(var27, 9);var29:=2*(var27-var28);DRAWTEXT(var27<(-50) AND var26>7 AND var27>=var28, 5, '追'),COLORWHITE; STICKLINE(var27<(-50) AND var26>7, 0,(-10), 5, 0), COLORFFFF66;25、明白入市var3:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;var4:=SMA(SMA(var3,3,1),3,1);var5:=EMA(var4,5);var6:=var5;var7:=3*var4-2*var5;var8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K: SMA(var8,3,1), COLORWHITE;D: SMA(K,3,1),COLORYELLOW;var9:=3*K-2*D;varA:=LLV(LOW,36);varB:=HHV(HIGH,30);varC:=EMA((CLOSE-varA)/(varB-varA)*4,4)*25;趋势: varC;底背: STICKLINE(varC<10,0,8,5,0),COLORYELLOW;顶背: STICKLINE(varC>90,100,92,5,0),COLORRED;varD:=87.5;varE:=(varC-LLV(varC,4))/(HHV(varC,4)-LLV(varC,4))*4*25;反弹: DRAWTEXT(IF(CROSS(var9,8),87,0),48,'反弹'),COLORGREEN;买: DRAWTEXT(IF(CROSS(varE,87.5) AND 趋势<40,87,0),10,'买'),COLORGREEN;目标位: DRAWTEXT(IF(CROSS(趋势,varD) AND varE=100,50,0),56,'目标位'),COLORBLUE; 见好跑: DRAWTEXT(IF(CROSS(varD,趋势),87,0),85,'见好跑'),COLORRED;卖: DRAWTEXT(IF(CROSS(趋势,varE) AND 趋势>87,87,0),70,'卖'),COLORRED;短买: IF(CROSS(趋势,10) AND 趋势>10,50,0);varF:=SMA(var3,20,1);var10:=SMA(varF,15,1);var11:=(3*varF+2*var10)/4;var12:=REF(var11,1);var13:=SMA(MAX(var11-var12,0),2,1)/SMA(ABS(var11-var12),2,1)*100;var14:=MA(var13,10);var15:=IF(CROSS(var14,90),25,0);DRAWTEXT(CROSS(var14,90),27,'强势整理'),COLORWHITE;var16:=(CLOSE+LOW+HIGH)/3;var17:=SUM((var16-REF(LOW,1)-(HIGH-var16))*VOL/100000/(HIGH-LOW),0);var18:=EMA(var17,1);var19:=MA(var18,12);var1A:=MA(var18,26);var1B:=(var18-var19)*10;var1C:=CAPITAL/EMA(VOL,5)/30*1.1;var1D:=IF(CROSS(var1B,var1C),1,0);var1E:=FILTER(var1D,7);var1F:=DRAWICON(var1E=1,100,1);var20:=EMA(CLOSE,12)-EMA(CLOSE,26);强势: DRAWTEXT(IF(CROSS(var20,0) AND var20>0,87,0),80,'强势');弱势: DRAWTEXT(IF(CROSS(0,var20) AND var20<0,87,0),15,'弱势'), COLORYELLOW;var21:=(CLOSE*2+HIGH+LOW)/4;var22:=EMA(var21,12)-EMA(var21,26);var23:=EMA(var22,2);var24:=2*(var22-var23)*5.8;加仓: DRAWTEXT(IF(CROSS(var24,0.47),LOW,0),12,'加仓');var25:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);var26:=66.6;DRAWTEXT(IF(CROSS(var25,63) AND CROSS(var9,D) OR CROSS(var25,76) AND CROSS(var9,D) OR CROSS(var25,80) AND CROSS(var9,D) OR CROSS(var25,85) AND CROSS(var9,D),LOW,0),20,'反弹'),COLORYELLOW;26、金龙起舞N 1 100 17N1 1 130 7N2 1 111 75M3: EMA(CLOSE,3);M8: EMA(CLOSE,8), COLORGREEN;M13: EMA(M8,13), COLORRED;M62: EMA(M8,62);var1:=EMA(M13,62);M81: EMA(M62,81), COLORYELLOW;M144: EMA(var1,144),LINETHICK2 , COLORRED;M250: EMA(var1,250),LINETHICK2 ;var2:=(CLOSE+HIGH+LOW)/3;var3:=EMA(var2,10);var4:=REF(var3,1);STICKLINE(var3>var4,var3,var4,15,0), COLORYELLOW;STICKLINE(var3< var4,var3,var4,20,0), COLORBLUE;var5:=(REF(HIGH,1)+REF(LOW,1))/2;var6:=MA(CLOSE,N)+2*STD(CLOSE,N);var7:=REF(CLOSE,1);var8:=SMA(MAX(CLOSE-var7,0),N1,1)/SMA(ABS(CLOSE-var7),N1,1)*100;var9:=CROSS(N2,var8);varA:=FILTER(var9,4);varB:=(2*CLOSE+HIGH+LOW)/4;varC:=LLV(LOW,34);varD:=HHV(HIGH,34);varE:=EMA((varB-var1)/(var5-var1)*100,7);varF:=EMA(0.667*REF(varE,1)+0.333*varE,5);DRAWTEXT(IF(COUNT(CLOSE< REF(CLOSE,1),13)/13>0.6 AND COUNT(varE>varF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), COLORYELLOW;var10:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE< var10 AND VOL/240>MA(VOL,5)/240 AND CLOSE>RE F(CLOSE,1)*1.08 AND CLOSE< MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'), COLORRED;27、抄底先锋{m:1,50,1; n:1,60,18}var2:=MA(CLOSE,N);var3:=(CLOSE-var2)/var2*100;var4:=MA(var3,M);升跌: var4;var5:=BARSLAST(CROSS(-10,var4)=1);var6:=BARSLAST(CROSS(var4,10)=1);var7:=var4<-10 AND var5>=5;var8:=var4>10 AND var6>=5;C1: IF(var4<-10 AND var5>=5,var4,0),COLORWHITE;C2: C1, COLORSTICK;C3: IF(var4>10 AND var6>=5,var4,0),COLORWHITE;C4: C3, COLORSTICK;D: 升跌>REF(升跌,1) AND var7*25,COLORRED;28、波段之王var1:=(c-llv(l,13))/(hhv(h,13)-llv(l,13))*100;牛:sma(var1,7,1);var2:=sma(牛,5,1);熊:if(cross(牛,var2) and cross(ma(c,5),ma(c,13) and 牛>50),var2*2,var2);var3:=ema(c,8);var4:=ema(c,20);stickline(牛>var2,牛,熊,0,0);stickline(牛<var2,牛,var2,0,0);短线进出:3*sma((c-llv(l,13))/(hhv(h,13)-llv(l,13))*100,5,1)-2*sma(sma((c-llv(l,13))/(hhv(h,13)-llv(l,13)) *100,5,1),3,1);var5:=10;低吸区:if(短线进出<=10,10,0);买入:if(cross(短线进出,var5),20,0);var6:=(2*c+h+l+o)/5;var7:=llv(l,33);var8:=hhv(h,33);目前位置:ema((var6-var7)/(var8-var7)*100,5);生命线:ema(0.667*ref(目前位置,1)+0.333*目前位置,4),circledot;var9:=if(cross(生命线,目前位置) and 目前位置>=77,77,89);vara:=if(cross(目前位置,20) or cross(目前位置,生命线) and 目前位置>20,20,5);卖出区:var9;varb:=llv(l,55);varc:=hhv(h,34);vard:=ema((var6-varb)/(varc-varb)*100,3);vare:=(目前位置+vard)/2;varf:=ema(0.667*ref(vard,1)+0.333*目前位置,2);var10:=ema(vare,5);var11:=ema(0.667*ref(var10,1)+0.333*var10,2);强弱:50,pointdot;100,pointdot;20;29、多空操盘趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA ((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),colorf0f000;买点准备: IF(趋势线<=10,12,0),linethick2,colorff00ff;主力持仓:(LOW*2),color0077FF,linethick1;A11:=ma(close,5);A12:=ma(close,10);A13:=ma(close,20);A14:=ma(close,30);均线多头排列:if(a11>a12 and a12>a13 and cross(a13,a14) and isup,18,0),stick,linethick2,color00bbff;drawtext(a11>a12 and a12>a13 and cross(a13,a14) and isup,35,'均线多头排列'),color00ffff;Var1:=HHV(HIGH,9)-LLV(LOW,9);Var2:=HHV(HIGH,9)-CLOSE;Var3:=CLOSE-LLV(LOW,9);Var4:=Var2/Var1*100-70;Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));Var6:=(2*CLOSE+HIGH+LOW)/4;Var7:=SMA(Var3/Var1*100,3,1);Var8:=LLV(LOW,34);Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);Var10:=IF(Var9>100,Var9-100,0);Var11:=HHV(HIGH,34);Var12:=EMA((Var6-Var8)/(Var11-Var8)*100,13);Var13:=EMA(0.667*REF(Var12,1)+0.333*Var12,2);Var13,COLOR000000;STICKLINE(Var12-Var13>0,Var12,Var13,8,0),COLOR0055ff;STICKLINE(Var12-Var13<0,Var12,Var13,8,0),COLOR00ff00;a1:=hhv(high,50)/llv(low,100)>1.5;a2:=(hhv(high,50)-low)/(hhv(high,50)-llv(low,100));a3:=(low-llv(low,100))/(hhv(high,50)-llv(low,100));a4:=HHVBARS(high,50)<LLVBARS(low,100);a5:=a1 and a2>0.5 and a3>0.3 and a4;a6:=count(a5,20)=1;抢反弹:if(a6 and a5 ,23,0),stick,linethick2,color00ffff;drawtext(抢反弹,35,'抢反弹'),color00bbff;Var2w:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));MW:= EMA(Var2w,3);Var3w:=EMA(Var2w,7);M1:= EMA(Var3w,5);mb1:=CROSS(MW,M1) AND M1<20;抄底:IF((mb1),40,0),linethick2,colorffffff;drawtext(抄底,62,'★'),color00ffff;drawtext(抄底,52,'抄底'),colorff00ff;30、精准买卖V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),colorblue;主力进: IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);V A:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;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);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13) and filter((趋势线<=13),15);drawtext (aa,30,'准备现金'),colorcc9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ;drawtext (bb,60,'买入股票'),color0099ff;卖临界: STICKLINE(趋势线>90 and 趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90 and 趋势线<ref(趋势线,1) and 主力进<ref(主力进,1),8); DRAWTEXT( 见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90 AND V12) and filter((趋势线>=90 AND V12),10);stickline(大盘资金进场 and 趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走 and 趋势线>90,0,30,10,0),colorgreen;stickline(主力进and 趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤and 趋势线>90,0,40,10,0),colorblue;31、疯牛公式(估抄底)使用:红柱后三线粘合在一起时可考虑买入,绿柱后三线粘合可考虑卖出RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;WEN:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);强弱界线:49,POINTDOT,LINETHICK3,COLOR9966CC;见顶信号:100,COLORCCFF00;出点准备: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;趋势线: WEN,LINETHICK2,COLORFF84FF;买点准备:IF(趋势线<=10,30,0),LINETHICK2,COLORYELLOW;G1:W1,LINETHICK2,COLORWHITE;G2:W2,LINETHICK2,COLORCYAN;STICKLINE(趋势线>88,100,趋势线,5,1),COLORGREEN;STICKLINE(趋势线<=10,0,趋势线,5,1),COLORYELLOW;STICKLINE(COUNT(趋势线<REF(趋势线,1) AND 趋势线<10,2)=2 ,0,20,8,0),COLORRED; STICKLINE(CROSS(J2,J1) AND J2>85,100,80,8,0),COLORGREEN;DRAWICON(CROSS(趋势线,49),趋势线,7),COLORRED;DRAWICON(FILTER(CROSS(G2,G1) AND G2>81,10),G2*1.05,2);DRAWTEXT(CROSS(趋势线,49),47,'转强'),ALIGN0,COLORRED;DRAWTEXT(CROSS(49,趋势线),52,'转弱'),ALIGN0,COLORGREEN;32、{估抄底F-通用}使用:红柱后三线粘合在一起时可考虑买入,绿柱后三线粘合可考虑卖出RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);趋势线:3*SMA(RSV2,5,1)-2*SMA(SMA(RSV2,5,1),3,1),LINETHICK2,COLORFF84FF; K:SMA(RSV2,3,1),LINETHICK2,COLORWHITE;D:SMA(K,3,1),LINETHICK2,COLORF408F4;{见顶信号:100,COLORCCFF00;}买点准备:IF(趋势线<=10,30,0),LINETHICK2,COLORYELLOW;出点准备: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;强弱界线:49,POINTDOT,LINETHICK3,COLOR99AACC;{以下设置副图显示方式}STICKLINE(趋势线>88,100,趋势线,4,1),COLORGREEN;STICKLINE(趋势线<=10,0,趋势线,4,1),COLORYELLOW;STICKLINE(COUNT(趋势线<REF(趋势线,1) AND 趋势线<10,2)=2,0,20,4,0),COLORRED; STICKLINE(CROSS(J2,J1) AND J2>85,100,80,4,0),COLORGREEN;DRAWICON(CROSS(趋势线,49),趋势线,1),COLORRED;DRAWICON(FILTER(CROSS(D,K) AND D>81,10),D*1.05,2);DRAWTEXT(CROSS(趋势线,49),47,'转强'),COLORRED;DRAWTEXT(CROSS(49,趋势线),52,'转弱'),COLORGREEN;33、FXJ权证(主图}input: n(4,1,255);IF DATATYPE=8 then beginpartline(c*2-ref(c,3),c>0),MOVE3,color005555,LAYER7;partline(ref(c,1)*2-ref(c,4),c>0),MOVE2,color005500,LAYER7;partline(ref(c,2)*2-ref(c,5),c>0),MOVE1,color553355,LAYER7;END;{K线图部份通用}F:EMA(C,5);X:EMA(C,34),COLORGRAY,linethick1;KS:=if(BARSCOUNT(c)=1,c/10000,(1-C/SMA(C,13,1))*100);RKS:=REF(KS,1);MLS:=RKS/KS>1.23 AND RKS>10 AND C/REF(C,1)>1.02;J:STICKLINE(KS>=10,H,L,0,1),colorwhite,linethick2;权:EMA(C,13),colorred,linethick2;证:EMA(KS*C/100+权,3), COLORff9933,linethick1;反弹:STICKLINE(MLS=1,H,L,0,1),colorff00ff,linethick2;STICKLINE(权>证,权,证,4,1),COLORFF00FF;STICKLINE(C>=O,H,L,0,0),COLORred;STICKLINE(C>=O,C,O,8,0),COLORred;STICKLINE(C<O,H,L,0,0),COLORGRAY;STICKLINE(C<O,C,O,8,0),COLORGRAY;STICKLINE(KS>10,H,L,0,0),colorwhite,linethick1;STICKLINE(KS>10,O,C,8,1),colorwhite,linethick1;STICKLINE(MLS,H,L,0,0),color00ffff,linethick1;STICKLINE(MLS,O,C,8,0),color00ffff,linethick1;Var1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);Var2:=CROSS(Var1,0.9);Var3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);Var4:=CROSS(Var3,0.9);压力: REF(HIGH,BARSLAST(Var2)), POINTDOT,ColorEA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2)),REF(HIGH,BARSLAST(Var2)),5,0),Color EA91B5;支撑: REF(LOW,BARSLAST(Var4)), POINTDOT,Color00b4ff;STICKLINE(CLOSE,REF(LOW,BARSLAST(V ar4)),REF(LOW,BARSLAST(Var4)),5,0),Color0 0b4ff;{分析家趋势线}aa:=ref(h,n)=hhv(h,2*n+1);aaa:=filter(aa,n);bb:=backset(aaa,n+1);cc1:=filter(bb,n);cc:=cc1 or BARSTA TUS=2;aa2:=ref(l,n)=llv(l,2*n+1);aaa2:=filter(aa2,n);bb2:=backset(aaa2,n+1);cc22:=filter(bb2,n);cc2:=cc22 and not(cc1);ea:=backset(cc,ref(barslast(cc2),1)+1);eb:=ea>ref(ea,1);ee:=backset(eb,2);ff1:=ee>ref(ee,1);ee2:=backset(ff1 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);ff2:=ee2>ref(ee2,1);ee3:=backset(ff2 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);ff3:=ee3>ref(ee3,1);js:=if(cc,count(cc2,ref(barslast(cc),1)+1),0);g1:=if(js=1 and cc,barslast(ff1),0);ga:=if(cc and ref(l,barslast(ff1))>=ref(l,barslast(ff2)),barslast(ff2),barslast(ff1));g2:=if(js=2 and cc,ga,0);g3:=if(js>=3 and cc,if(cc and ref(l,ga)>=ref(l,barslast(ff3)),barslast(ff3),ga),0);gg:=g1+g2+g3;ja:=backset(cc,gg);jb:=ja>ref(ja,1);jj:=backset(jb,2);ld:=jj>ref(jj,1);ld1:=ld or BARSTA TUS=2;hea:=backset(ld1,ref(barslast(cc),1)+1);heb:=hea>ref(hea,1);hee:=backset(heb,2);hff1:=hee>ref(hee,1);hee2:=backset(hff1 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);hff2:=hee2>ref(hee2,1);hee3:=backset(hff2 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);hff3:=hee3>ref(hee3,1);hjs:=if(ld1,count(cc1,ref(barslast(ld1),1)+1),0);hg1:=if(hjs=1 and ld1,barslast(hff1),0);hga:=if(ld1 and ref(h,barslast(hff1))<=ref(h,barslast(hff2)),barslast(hff2),barslast(hff1)); hg2:=if(hjs=2 and ld1,hga,0);hg3:=if(hjs>=3 and ld1,if(ld1 and ref(h,hga)<=ref(h,barslast(hff3)),barslast(hff3),hga),0); hgg:=hg1+hg2+hg3;hja:=backset(ld1,hgg);hjb:=hja>ref(hja,1);hjj:=backset(hjb,2);hd:=hjj>ref(hjj,1);x1:=backset(BARSTATUS=2,barslast(ld)+1);x2:=x1>ref(x1,1);y1:=backset(BARSTATUS=2,barslast(hd)+1);y2:=y1>ref(y1,1);z1:=if(barslast(x2)<barslast(y2),x2,y2);z2:=if(barslast(x2)<barslast(y2),l,h);drawline(z1,z2,BARSTA TUS=2,c,0),pointdot,colorff9900;uu:=backset(BARSTATUS=2,barslast(ld)+1);vv:=uu>ref(uu,1);ww:=backset(vv,ref(barslast(ld),1)+2);xx:=ww>ref(ww,1);drawline(xx,l,vv,l,1),color00ffff;uu2:=backset(BARSTA TUS=2,barslast(hd)+1);vv2:=uu2>ref(uu2,1);ww2:=backset(vv2,ref(barslast(hd),1)+2);xx2:=ww2>ref(ww2,1);drawline(xx2,h,vv2,h,1),color00ffff;34、疯牛公式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:=(V ar3+Var4+Var5)/3;Var7:=EMA(Var6,5);指标: EMA(EMA(Var3,5),5)*3, COLORSTICK;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);K:EMA(Var7,5)*2, COLORff00ff;D:EMA(K,5), COLORWHITE;J:K*3-D*2, COLORYELLOW;VarB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;换手: VOL/CAPITAL*100,COLORGREEN;成交〖万手〗: VOL/10000, COLORYELLOW;DRAWTEXT(Var8=10 AND FILTER(Var8=10,5),-10{15},'接近底部'),linethick1,COLORYELLOW;STICKLINE(Var8=10 AND FILTER(Var8=10,5),-1.6{20},-10,5,0),coloryellow;DRAWTEXT(V arA=20,15,'底部'),linethick1,colorwhite;STICKLINE((VarA=20),0,10,5,0),colorwhite;V ARC:=(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));V ARD:=(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));STICKLINE((V ARC=1),(-14),0,4,0),Color0000FF;DRAWTEXT((V ARC=1),(-14),'买'),Color0000FF;STICKLINE((V ARD=1),14,0,4,0),Color00FF00;DRAWTEXT((V ARD=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*SM A(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*SM A(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var11:=VarF<REF(Var10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V ar11 AND COUNT(Var11,30)=1,15,'大资金活动'),linethick1,COLORff00ff; STICKLINE(Var11 AND COUNT(Var11,30)=1,1,10,5,0),colorff00ff;Var12:=(HIGH+LOW+CLOSE)/3;Var13:=(Var12-MA(V ar12,14))/(0.015*A VEDEV(Var12,14));Var14:=(Var12-MA(V ar12,70))/(0.015*A VEDEV(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 V ar14<=-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;DRAWTEXT(V ar1C AND COUNT(Var1C,30)=1,15,'大笔出货'),linethick1,COLORffcc66; STICKLINE(Var1C AND COUNT(Var1C,30)=1,0,10,5,0),colorffcc66;35、买在底部V AR1:="DMI.PDI"(12,6);V AR2:="DMI.MDI"(12,6);V AR3:=V AR1>65 AND V AR1>REF(V AR1,1);V AR4:=LLV(V AR1,0);V AR5:=BARSLAST(V AR4=V AR1);V AR6:=(0-REF(VAR2,4))/(V AR4-REF(V AR2,V AR5))>2;V AR7:=V AR1>REF(V AR1,1);V AR8:=VOL>2*MA(VOL,30);V AR9:="DMI.ADX"(12,6);V ARA:="DMI.ADXR"(12,6);V ARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;V ARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);V ARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CL OSE,10),MA(CLOSE,5)));V ARE:=0-"MACD.DIFF"(7,21,3);V ARF:=TROUGHBARS(3,15,1)<4;V AR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);V AR11:=IF(VARF=1,50,0);V AR12:=CROSS(V AR2,V AR1) AND CROSS(V ARA,V AR9);V AR13:=CROSS(V AR2,V AR1) AND CROSS(V AR9,V ARA);V AR14:=V ARB AND VARC AND V ARD AND V AR10 AND V AR6 AND V AR7 AND V AR8*50; V AR15:=BARSLAST(CROSS(V AR2,V AR1)=1);V AR16:=BARSLAST(CROSS(V AR1,V AR2)=1);V AR17:=HHV(V AR1,VAR16);V AR18:=BARSLAST(V AR1=V AR17);多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*1 00,3),COLORWHITE;0,COLORRED;STICKLINE(FILTER(V ARF=1,5) AND 多空<-10,50,0,15,0),colorf00ff0;STICKLINE(FILTER(V ARF=1,5),50,0,8,0),COLORYELLOW;V AR19:=V AR3 OR V AR12 OR V AR13*100;V AR1A:=V AR13*100;DRAWTEXT(FILTER(V ARF=1,3),25,'底买'),COLORRED ;STICKLINE(多空<-10,0,多空,0.85,0),COLORyellow;STICKLINE(多空>10,0,多空,0.95,0),COLORRED;36波段王(副图)(买入可以参考)V AR1:=(CLOSE+HIGH+LOW+OPEN)/(4);V AR2:=SUMBARS(VOL,CAPITAL);V AR3:=HHV(V AR1,V AR2);V AR4:=LLV(V AR1,V AR2);V AR5:=((2)*(VAR1)-VAR4-REF(V AR4,1))/(V AR3-VAR4);V AR6:=(V AR1-VAR4)/(V AR3-V AR4);V AR7:=IF((VAR1<=V AR4),(V AR5)*(60),(V AR6)*(60));V AR8:=((600)*(EMA(CLOSE,3)-EMA(LOW,30)))/(EMA(LOW,30));V AR9:=EMA(VAR8,7);V ARA:=(WINNER(((120)*(CLOSE))/(100))-WINNER(((100)*(CLOSE))/(100)))*(100);V ARB:=((-100))*(WINNER(((120)*(CLOSE))/(100))-WINNER(((100)*(CLOSE))/(100)))+5;波段买入:=IF((V ARA+V ARB<7) AND CROSS(V AR8,V AR9) AND (V AR9<(-18)) AND V AR9,1,0); DRAWICON((波段买入=60),70,1),CoLor00FFFF;V ARC:=HHV(HIGH,9)-LLV(LOW,9);V ARD:=HHV(HIGH,9)-CLOSE;V ARE:=CLOSE-LLV(LOW,9);V ARF:=((VARD)/(V ARC))*(100)-70;V AR10:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);V AR11:=((2)*(CLOSE)+HIGH+LOW)/(4);V AR12:=SMA(((V ARE)/(V ARC))*(100),3,1);V AR13:=LLV(LOW,34);V AR14:=SMA(VAR12,3,1)-SMA(V ARF,9,1);V AR15:=IF((VAR14>100),V AR14-100,0);V AR16:=HHV(HIGH,34);V AR17:=EMA(((V AR11-V AR13)/(V AR16-VAR13))*(100),8);V AR18:=EMA(V AR17,5);V AR22:=REF(LOW,1);V AR23:=((SMA(ABS(LOW-V AR22),3,1))/(SMA(MAX(LOW-VAR22,0),3,1)))*(100);V AR24:=EMA(IF((CLOSE)*(1.3),(VAR23)*(10),(VAR23)/(10)),3);V AR25:=LLV(LOW,30);V AR26:=HHV(V AR24,30);V AR27:=IF(MA(CLOSE,58),1,0);V AR28:=((EMA(IF((LOW<=V AR25),(VAR24+(V AR26)*(2))/(2),0),3))/(618))*(VAR27);V AR29:=IF((VAR28>100),100,V AR28);STICKLINE((V AR29>(-150)),0,V AR29,1,0),CoLorFF00FF;V ARK1:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V ARK2:=REVERSE(V ARK1);V ARK3:=SMA(V ARK1,3,1);波段王:=SMA(V ARK3,3,1);波段鬼:=SMA(波段王,2.5,1);趋势线:(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SM A(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1)),Linethick1 ,CoLorFFCCCC;卖:IF(((CROSS(波段鬼,波段王) or CROSS(波段鬼,趋势线)) or CROSS(波段王,趋势线)) AND (波段鬼>65),90,0),Stick,Linethick1,CoLor00FF00;RSV9:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);K1:=SMA(RSV9,3,1);DK1:=K1-REF(K1,1);出手就赢:IF((DK1>7) AND (REF(DK1,1)<0) AND (DK1-REF(DK1,1)>9),50,0),Stick,Linethick1,CoLo r00FFFF;DRAWICON((出手就赢>0),50,1),CoLor0000FF;买点准备:IF((趋势线<=10),0,10),Linethick1,CoLorFF9933;STICKLINE(CROSS(趋势线,10),0,73,6,0),CoLor3366FF;DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),CoLorFFFFFF;DRAWTEXT(IF(CROSS(10,趋势线),1,0),10,'$备钱'),CoLor33FFCC;37抄底逃顶{副图}V AR1:=((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36)))*(100);V AR2:=SMA(V AR1,3,1);V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);波:V AR3,Linethick2,CoLor0000FF;段:V AR4,Linethick2,CoLor00FFFF;V AR5:=CROSS(V AR2,VAR3) AND (V AR3<25);STICKLINE(V AR5,0,V AR3+5,1,1),Linethick2,CoLor0000FF;V AR6:=CROSS(V AR3,VAR4) AND (V AR3<25);V AR7:=V AR6 AND (VOL>(REF(VOL,1))*(2)) AND (VOL>(REF(MA(VOL,5),1))*(2)); STICKLINE(V AR6,0,V AR3+5,1,1),Linethick2,CoLorFFFFFF;DRAWTEXT(V AR6 AND (COUNT(V AR6,10)=1),VAR3+15,'抄底'),Linethick2,CoLorFFFFFF; STICKLINE(V AR7,0,V AR3+5,1,1),Linethick2,CoLor0000FF;DRAWTEXT(V AR7 AND (COUNT(V AR7,10)=1),VAR3+5,'放量'),Linethick2,CoLor0000FF;V AR8:=CROSS(V AR2,VAR3) AND (V AR3>80) AND (V AR3>V AR4);STICKLINE(V AR8 AND (COUNT(V AR8,5)=1),V AR3-5,100,1,1),Linethick2,CoLor008000;V AR9:=CROSS(V AR4,VAR3) AND (V AR3>80);STICKLINE(V AR9,V AR3-5,100,1,1),Linethick2,CoLor00FFFF;DRAWTEXT(V AR9 AND (COUNT(V AR9,10)=1),VAR3-15,'逃顶'),Linethick2,CoLor00FFFF;38、天堂顶底{副图}(高位开始放量时应考虑卖出-如果还要继续上涨,一般是不会出现放量的,除非是洗盘)趋势:(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SM A(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SM A(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1),CoLor 7F52AF;趋势1:EMA(MA(趋势,5),3),CoLorA6B8C1;STICKLINE((趋势>=趋势1),趋势,趋势1,5,0),CoLor7F52AF;STICKLINE((趋势<趋势1),趋势,趋势1,5,0),CoLorA6B8C1;STICKLINE((趋势>108) AND (趋势>=趋势1),趋势,108,5,0),CoLorFF0000;STICKLINE((趋势1>108) AND (趋势<趋势1),趋势1,108,5,0),CoLorFFFFFF;STICKLINE((趋势<0) AND (趋势<趋势1),趋势,0,5,0),CoLorF00FF0;STICKLINE((趋势1<0) AND (趋势>趋势1),趋势1,0,5,0),CoLorF0F000;V1:=(MA(CLOSE,5)=HHV(MA(CLOSE,5),20));V2:=(MA(CLOSE,5)>MA(CLOSE,20));V3:=(COUNT((MA(CLOSE,1)>REF(CLOSE,1)),3)=3);风险:IF(V1 AND V2 AND V3,30,0),Stick,CoLor00FF00;V11:=(MA(CLOSE,5)=HHV(MA(CLOSE,5),120));V21:=(MA(CLOSE,5)>MA(CLOSE,120));V31:=(COUNT((MA(CLOSE,1)>REF(CLOSE,1)),3)=3);风险1:IF(V11 AND V21 AND V31,60,0),Stick,CoLorF0F000;底部:5,CoLor00FFFF;抄底:IF(CROSS(趋势,底部),60,0),Stick,Linethick2,CoLor00FFFF;DRAWTEXT(抄底,50,'抄底'),CoLor0000FF;天线:108,CoLorFF9D00;逃顶:IF(CROSS(天线,趋势),1,0),Stick,CoLorFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),CoLorFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),CoLorFF9D00;{公式描述:天堂星顶底}39、准备买入n:=5;var1:4*SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1),3.2,1),COLORY ELLOW,linethick0;var2:8,colorgreen,linethick0;上升在即: IF(CROSS(var1,var2),80,0),stick,COLOR0000cc,linethick2;专吸庄血: IF(var1<=8,25,0),stick,COLORwhite,linethick2;DRAWTEXT(CROSS(var1,var2),80,'准备买入'),COLOR00ffff;Varo5:=LLV(LOW,27);Varo6:=HHV(HIGH,34);Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;建仓区: IF((Varo7<10),80,100) ,color00ccff,linethick1;0,linethick2 ,colorffcc00;40、极品波段DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:600*(DIFF-DEA)/EMA(C,30), COLORRED ,POINTDOT;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;FK:=SMA(RSV,5,1);K20:SMA(FK,3,1), POINTDOT, COLORYELLOW;D20:SMA(K20,3,1), POINTDOT, COLORFF9999;STICKLINE(K20>=D20,D20,K20,3,0),COLORFF00FF;STICKLINE(K20<=D20,D20,K20,3,0),COLORFFFF00;V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=EMA((C-V1)/(V2-V1)*4,4);买入:STICKLINE(CROSS(价位线,0.3),50,5,2,0), COLOR00CCFF,LINETHICK1; STICKLINE(CROSS(价位线,0.3),30,5,2,0),COLORRED,LINETHICK1;卖出:STICKLINE(CROSS(3.5,价位线),60,100,2,0), COLORRED,LINETHICK2; STICKLINE(CROSS(3.5,价位线),80,100,2,0), COLORFF9900,LINETHICK2;DRAWTEXT(CROSS(价位线,0.3),55,'买'),COLORF00FF0;DRAWTEXT(CROSS(3.5,价位线),55,'卖'),COLOR00FF00;。
《大智慧指标公式》word版
REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,Var2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄秘撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),VAR5,0),COLORred,LINETHICK2;STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;Var6:=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);Var7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(S MA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred; stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099F F;stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryell ow;stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue ;stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88 ee;stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhit e;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080;STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量 > 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量 < 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量 - BB) / BB) * 100);周增幅:IF(((周流量 > 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB < 0)) AND (周流量 < BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite;STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff;DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 );DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;{STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;(本资料素材和资料部分来自网络,仅供参考。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
辑器的打开方式也略有区别。本讲就是告诉大家如何展开
公式编辑器。
第二讲:基础函数
• 打开技术指标公式,我们最常见的,它的 组成不外乎两种情况,一是K线,二是均线。 其他诸如柱状线,彩带,分段线等等,都 是在K线或均线基础上的延伸或变形。为此, 我们先熟悉一下构成这两种状态的基本函 数。
• 一、K线函数 非常简单,大家都可能熟知。作为基础,还是说明一下。 1、开盘价:OPEN 可简写为 O 2、最高价:HIGH 可简写为 H 3、最低价:LOW 可简写为 L 4、收盘价:CLOSE 可简写为 C 有了这4个函数,就可构成一根K线了。比如:收盘价小于开盘
• 四、成交量 VOL 表示每天的成交量。因以后会经常用到,所以先交待给大
家。 上面这几个函数是最常用的,希望大家记住,不知怎么写也要知
道其表述的意思。当然,记不住也不要紧,《公式编辑器》中全有。 习题:10日均线与20日均线金叉和涨幅超过百分之三,且成交
量比昨天放大一倍。
cross(10,20) and o>(c-ref(c,1))/1.03 and vol=ref(vol,1)*2 错误
CROSS(MA(CLOSE,10),MA(CLOSE,20)) AND C/REF(CLOSE,1)>3/100 AND VOL/REF(VOL,1)>=2 aa10:=ma(c,10); aa20:=ma(c,20); ZF:=if((c-ref(c,1))/ref(c,1)*100>3,1,0); 这一行修改为:ZF:=c/ref(c,1)>0.03; av:=v>=ref(v,1)*2; CROSS(aa10,aa20) and ZF and av 正确
• C>o and C=h and l=o and h-l<=5 and o-l=(h-l)*2 自编 • c=h and c-o<0.05 and o-l>(c-o)*2; 正确 • STICKLINE(c=h and c-o<0.05 and o-l>(c-
o)*2,o,c,8,1),COLORRED; STICKLINE(c=h and c-o<0.05 and o-l>(co)*2,o,l,1,0),COLORRED;
1,涨幅,就是收盘价与昨天的收盘价之比。2,昨天的表示符号(向前引 用函数)和其他运算符号。
第三讲:认识颜色符号或绘图函数
• 我们所看到的指标是以线为基础的。不论 是均线,K线,或在线与点之间的填充,又 都离不开颜色。正是有了五颜六色才使得 图形丰富多采,便于区分,或者更具立体 感。本讲就是告诉大家如何利用颜色或修 改颜色。
目录
• 第一讲:认识公式编辑器 • 第二讲:公式编写的基础函数 • 第三讲:认识颜色符号或绘图函数 • 第四讲:源码的引入和修改 • 第五讲:各种形态的描述 • 第六讲:均线(选股)的基本形态 • 第七讲:在源码中提取选股公式 • 第八讲:函数的综合运用 • 第九讲:常用函数示例 • 第十讲:系统常用指标原理解析
• 三、常用连接函数 有了上述基本函数,可以表述出K线和均线了,但实际应用中要复杂 得多,还要一些函数把他们连接起来。 大致有这么几个: 1、AND 就是“和”的意思。如:A AND B;就是A和B两 个条件要同时成立。 2、OR “或”,“或者”的意思。如:A OR B;就是A和 B两个条件有其中一个成立就行。 3、IF 根据条件取不同的值。如:IF(X,A,B),若X不为0则返回 A,否则返回B。实例:IF(C<O,L,H),表示收阴返回最低价,否则返回 最高价。 4、CROSS 交叉函数。CROSS(A,B),表示A从下方向上穿过 B。 5、REF 向前引用。引用若干周期前的数据。例 如:REF(CLOSE,1),表示昨收的收盘价。那么前天的最高价呢,就 是:REF(H,2)。
价,即阴线:C<o; 收阳线则互为相反。 那么长下影的光头阳线,即 T 形线呢?理解了原理,也很简
单。一要以最高价收盘(否则有上影),二要开盘价大于最低价。所 以有如下表示:C=H AND O>L;这里我们没有考虑下影的长度和 T 字上边一横(实体部分)的宽度。
习题:一根光头阳线,实体部分小于5分钱,下影超过实体的两 倍,如何表述?
特别提示:编辑指标必须在英文状态下输入。其中运用的数学符 号,包括加减乘除、分号,引号等(+ - * / ; "" ''><#)也必须在英文 状态下输入。
• 二、均线函数 单根K线的形态是相当枯燥的。尤其在主图里。配合以均线等形式就会
丰富多采,或者更利于我们从中发现规律和分析问题。这就需要均线函数来 解决了。 最常见的:
• 一、颜色函数 (一)基本符号:COLOR 所有显示颜色时,都必须式编辑器是导入源码和进行编写指标的窗口。公式编辑 器共分4种,分别是:
•
1、技术指标公式编辑器;
•
2、条件选股公式编辑器;
•
3、交易系统公式编辑器;
•
4、五彩K线公式编辑器。
•
由于这几种编辑器的展开和使用大同小异。所以,本
文仅以技术指标公式编辑器为例加以说明。
•
由于目前各种股软的区别,不仅有些函数不通用,编