大智慧主升浪主图公式
主升浪指标(主图)及选股公式
主升浪指标(主图)及选股公式主升浪指标(主图)及选股公式:X1:=MA(C,1);X2:=SMA(SMA(SMA(X1,2,1),2,1),2,1);X3:=MA(X 2,3);X4:=(L+H+C*4)/6;X5:=EMA(X4,12);X6:=EMA(X4,19);X7:=(X5-REF(X5,1))/REF(X5,1)*100;X9:=(X6-REF(X6,1))/REF(X6,1)*100;G:=BARSLAST(CROSS(X7,0));X8:=REF( X4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),HIGH,LOW-0.02,0,0),COLOR0000CD;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,3,0),COLOR070084;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,2,0),COLOR0000A3;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,1,0),COLOR0000B7;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,1,0),COLOR0000CD;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,1,0),COLOR0000E9;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1) ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE-0.02,OPEN,0.5,0),COLOR0754E9;STICKLINE(X9>=0AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) ANDMA(CLOSE,60)>REF(MA(CLOSE,60),1)ANDMA(CLOSE,120)>REF(MA(CLOSE,120),1),CLOSE,OPEN-0.001,0.2,0),COLOR68B8FF;Z1:MA(CLOSE,5),COLOR00FFFF;Z2:MA(CLOSE,55),COLOR00F F00,LINETHICK2;在股价上穿Z1和同时上穿Z1、Z2分别做两个选股公式:1Z1:=MA(CLOSE,5);选股:CROSS(C,Z1);2Z1:=MA(CLOSE,5);Z2:=MA(CLOSE,55);XG:CROSS(C,Z1) AND CROSS(C,Z2);。
大智慧组合主图指标公式
大智慧组合主图指标公式K线美化,无未来,可单独删除STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;{红买绿卖点显示,无未来,可单独删除}DRAWGBK(c>=0),Color2B5516;平衡:EMA(C,20),CIRCLEDOT,COLORwhite;STICKLINE((CLOSE >平衡),平衡,平衡,1,0),LINETHICK6,color0000ff;STICKLINE((平衡 > CLOSE),平衡,平衡,1,0),LINETHICK6,colorff6600;{画线显示,带未来,正常,可单独删除}Var1:=DATE>900101 AND DATE<2098108;Var2:=DATE>2098106;Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),18)/4*Var1; Var4:=IF(DATE<2098231,IF(Var3>23.16,Var3,0),0);Var5:=Var3<10;Var6:=Var3<2;Var7:=Var5 OR Var6;长期趋势: ZIG(3,19)*Var1,COLORBLUE;短期趋势: ZIG(3,6.5)*Var1,COLORYELLOW;{压力支撑显示,带未来,正常,可单独删除}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,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;STICKLINE(t1,A,A,9,0),ColorFF00FF;支撑线:IF(t2,B,B),Color80FF00,POINTDOT;STICKLINE(t2,B,B,9,0),Color80FF00;{BS买卖点显示,无未来,可单独删除}a:="LTFunc5@FORLT2"; {计算BS点}s1:="LTFunc5@LT_S1"; {s1=0,向下; s1=1,向上}hs:="LTFunc5@LT_HS"; {短线买入机会}ls:="LTFunc5@LT_LS"; {短线卖出机会}p1:="LTFunc5@LT_P1"; {p1=1,显示BS,p1上穿0线,B点 ; p1下穿1线,S点}upp:="LTFunc5@LT_UPP";{明日B点预测}udd:="LTFunc5@LT_UDD";{明日S点预测}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(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;{筹码成本显示,带未来,正常,可单独删除}Zyz:=cost(99.9);Zyx:=cost(0.1);Zy:=(Zyz-Zyx)/50;Zy1:=Zyz-Zy;Zy2:=Zyz-2*Zy;Zy3:=Zyz-3*Zy;Zy4:=Zyz-4*Zy;Zy5:=Zyz-5*Zy;Zy6:=Zyz-6*Zy;Zy7:=Zyz-7*Zy;Zy8:=Zyz-8*Zy;Zy9:=Zyz-9*Zy;Zy10:=Zyz-10*Zy;Zy11:=Zyz-11*Zy;Zy12:=Zyz-12*Zy;Zy13:=Zyz-13*Zy; Zy14:=Zyz-14*Zy; Zy15:=Zyz-15*Zy; Zy16:=Zyz-16*Zy; Zy17:=Zyz-17*Zy; Zy18:=Zyz-18*Zy; Zy19:=Zyz-19*Zy; Zy20:=Zyz-20*Zy; Zy21:=Zyz-21*Zy; Zy22:=Zyz-22*Zy; Zy23:=Zyz-23*Zy; Zy24:=Zyz-24*Zy; Zy25:=Zyz-25*Zy; Zy26:=Zyz-26*Zy; Zy27:=Zyz-27*Zy; Zy28:=Zyz-28*Zy; Zy29:=Zyz-29*Zy; Zy30:=Zyz-30*Zy; Zy31:=Zyz-31*Zy; Zy32:=Zyz-32*Zy; Zy33:=Zyz-33*Zy; Zy34:=Zyz-34*Zy; Zy35:=Zyz-35*Zy; Zy36:=Zyz-36*Zy; Zy37:=Zyz-37*Zy; Zy38:=Zyz-38*Zy; Zy39:=Zyz-39*Zy; Zy40:=Zyz-40*Zy; Zy41:=Zyz-41*Zy; Zy42:=Zyz-42*Zy; Zy43:=Zyz-43*Zy; Zy44:=Zyz-44*Zy; Zy45:=Zyz-45*Zy; Zy46:=Zyz-46*Zy; Zy47:=Zyz-47*Zy; Zy48:=Zyz-48*Zy; Zy49:=Zyz-49*Zy;Z1:=winner(Zyz)*100-winner(Zy4)*100;Z2:=winner(Zy4)*100-winner(Zy7)*100;Z3:=winner(Zy7)*100-winner(Zy10)*100;Z4:=winner(Zy10)*100-winner(Zy13)*100;Z5:=winner(Zy13)*100-winner(Zy16)*100;Z6:=winner(Zy16)*100-winner(Zy19)*100;Z7:=winner(Zy19)*100-winner(Zy22)*100;Z8:=winner(Zy22)*100-winner(Zy25)*100;Z9:=winner(Zy25)*100-winner(Zy28)*100;Z10:=winner(Zy28)*100-winner(Zy31)*100;Z11:=winner(Zy31)*100-winner(Zy34)*100;Z12:=winner(Zy34)*100-winner(Zy37)*100;Z13:=winner(Zy37)*100-winner(Zy40)*100;Z14:=winner(Zy40)*100-winner(Zy43)*100;Z15:=winner(Zy43)*100-winner(Zy46)*100;Z16:=winner(Zy46)*100-winner(Zy49)*100;STICKLINE( DISPSTATUS=2,Zy1 ,Zy4 ,Z1*50 ,1 ),LAYER7,coloryellow; STICKLINE( DISPSTATUS=2,Zy5 ,Zy7 ,Z2*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy8 ,Zy10 ,Z3*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy11 ,Zy13 ,Z4*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy14 ,Zy16 ,Z5*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy17 ,Zy19 ,Z6*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy20 ,Zy23 ,Z7*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy24 ,Zy26 ,Z8*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy27 ,Zy29 ,Z9*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy30 ,Zy31 ,Z10*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy32 ,Zy34 ,Z11*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy35 ,Zy37 ,Z12*50 ,1),LAYER7,DOTLINE;; STICKLINE( DISPSTATUS=2,Zy47 ,Zy49 ,Z16*50 ,1),LAYER7,coloryellow; DRAWTEXTABS(5,5,'股旁网 '),linethick1,COLOR00EEff; {文字显示,带未来,正常,可单独删除}DRAWTEXTABS(10,10,'所属板块:'+BKNAME),COLOR00FF00,linethick1;市值:=C*CAPITAL*VOLUNIT/100000000;股本:=FINANCE2(35)/10000;流通:=FINANCE2(37)/10000;人均持股:=CEILING(CAPITAL*100/selfdata('shx'));市盈率:=DYNAINFO(39);市净率:=c/FINANCE2(4);F:=COST(5 );J:=COST(95 );M:=COST(15 );N:=COST(85 );F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;成本集中度:=F1;莸利比例:=WINNER(c )*100;日换手率:=vol/CAPITAL*100;净资产:=FINANCE2(4);净资收益率:=FINANCE2(5);最新收益:=FINANCE2(3);每股未分配:=FINANCE2(8);毛利润率:=FINANCE2(12);净利润率:=FINANCE2(33)/FINANCE2(27)*100;股东权益比:=FINANCE2(9);每股公积金:=FINANCE2(7);DRAWTEXTABS(10,30,'市值:'+市值+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,30,'股本:'+股本+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,30,'流通:'+流通+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,50,'市盈率:'+市盈率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,50,'市净率:'+市净率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,50,'成本集中度:'+成本集中度+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,70,'莸利比例:'+莸利比例+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,70,'日换手率:'+日换手率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,70,'净资产:'+净资产+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,90,'净资收益率:'+净资收益率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,90,'最新收益:'+最新收益+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,90,'每股未分配:'+每股未分配+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,110,'毛利润率:'+毛利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,110,'净利润率:'+净利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,110,'股东权益比:'+股东权益比+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,130,'每股公积金:'+每股公积金+'元 '),LINETHICK1,Color00FF00;{文字显示,无未来,可单独删除}mc:=REF(c,1);阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);止损位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));止损位2:=IF((mc < 10),(mc * 0.95),止损位b);DRAWTEXTABS(10,150,'[昨/今日止损位 :'+NUMTOSTRn(止损位b,2)+'/'+NUMTOSTRn(止损位1,2)+']'),LINETHICK1,COLORYELLOW;DRAWTEXTABS(10,170,'[昨/今日阻力位 :'+NUMTOSTRn(阻力位2,2)+'/'+NUMTOSTRn(阻力位1,2)+']'),LINETHICK1,COLORYELLOW;。
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)INPUT:AM(1,0,1),AJ(1,0,1),AC(1,0,1),AR(1,0,1),AD(1,0,1),DM(1,0,1),ZL(1,0,1); DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(0,0,120),0));{1.K线}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),color0000FF;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),color006600;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),color008800;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),color00AA00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),color00BB00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),color00CC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),color00DD00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),color00EE00;STICKLINE((OPEN > CLOSE),HIGH,LOW,1,0),color00FF00;LC:=REF(C,1);卖黄金:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0; DRAWTEXT(CROSS(80,卖黄金) ,high*1.04,'顶'),COLOR00ffFF,ALIGN1,LINETHICK1; STICKLINE(CROSS(80,卖黄金) AND C<O,H,L,2,0),COLOR00ffff,LAYER0;STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,12,0 ),COLOR007777,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,8,0 ),COLOR009999,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,6,0 ),COLOR00BBBB,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,4,0 ),COLOR00DDDD,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,2 ,0 ),COLOR00ffff,LAYER0; DRAWTEXTABS(5,5,'基本指标:MA5波段'),Color00FFff,LINETHICK3;BC:=(3*C+H+L)/5;MA5:EMA(MA(BC,5),5);PARTLINE(MA5,(MA5>REF(MA5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYE R0;XL:=BARSLAST(DISPSTATUS=1)+1;E:=llvall(llv(L,XL))*0.95;IF AM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:MACD'),Color0000ff,LINETHICK4;DIFF:=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3);DEA:=EMA(DIFF,9);MACD:2*(DIFF-DEA),Color0598FF,LINETHICK0;;STICKLINE(MACD>0,E+MACD*2,E,12,0),Color0598FF;STICKLINE(MACD<0,E+MACD*2,E,12,0),ColorFF5500;END;IF AJ=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:KDJ'),Colorff00ff,LINETHICK4;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),Color05FFFF,LINETHICK0;if(CROSS(K,D) AND BARSLAST(CROSS(D,K))<3,E*1.09,E),ColorFF9910 ; STICKLINE(K>D,E+(K-D)/50,E,12,0),Color0000FF;STICKLINE(K<D,E+(K-D)/50,E,12,0),Color00FF00;END;IF AC=1 THEN BEGINDRAWTEXTABS(200,5,'指标:CCI'),Color00ffff,LINETHICK4;TYP := (HIGH + LOW + CLOSE)/3;CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),Color05FF00,LINETHICK0;; STICKLINE(CCI>0,E+CCI/350,E,12,0),Color0077FF;STICKLINE(CCI<0,E+CCI/350,E,12,0),ColorFF9900;END;IF AR=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:RSI'),Color00ff00,LINETHICK4;LC := REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,ColorFF05FF,LINE THICK0;CRSI:="RSI.RSI3#WEEK";金叉RSI:STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E,E*1.1,0.6,0),ColorFF 00FF;DRAWTEXT(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E*1.1,'金叉'),COLOR0000FF;STICKLINE(RSI>CRSI,E+(RSI-CRSI)/50,E,12,0),Color0000FF;STICKLINE(RSI<CRSI,E+(RSI-CRSI)/50,E,12,0),Color00FF00;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:=EMA(VAR1,13)-EMA(VAR1,73);SD:=EMA(SK,2);XG:=((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) OR 金叉RSI);STICKLINE(XG,E,E*1.15,0.6,0),COLOR00FFFF;DRAWTEXT(XG,E*1.15,'突破'),COLOR00FFBB;END;IF AD=1 THEN BEGIN{DMI新编}DRAWTEXTABS(250,5,'技术指标:DMI'),Color0598ff,LINETHICK4;N:=21;M:=6;M1:=20;TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),N);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),N);PDI:= DMP*100/TR1;MDI:DMM*100/TR1,Color05FFFF,LINETHICK0;ADX:= EMA((PDI-MDI)/(MDI+PDI)*100,M)*2;ADXR:=EMA(ADX,M);ADMA:=EMA(ADX,M1);OMD:=(ADX-2*ADMA+ADXR)/2;STICKLINE( OMD>0,E,E+OMD/100,12,0),COLORRED;STICKLINE(OMD<0,E,E+OMD/100,12,0),COLORGREEN;END;IF DM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:DMA'),ColorFF55ff,LINETHICK4;DDD:=(MA(CLOSE,10)-MA(CLOSE,50));AMA:=MA(DDD,10);STICKLINE( DDD>AMA,E,E+(DDD-AMA),12,0),COLORFF22FF;STICKLINE(DDD<AMA,E,E+(DDD-AMA),12,0),COLOR99FF99;END;IF ZL=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:主力进出'),ColorFF55ff,LINETHICK4;jcs:=ZLSHORT;jcm:=ma(zlshort ,12);STICKLINE(jcs>jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLOR222299; STICKLINE(jcs<jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLORFFee00; END;。
主升浪点选股公式
主升浪点选股公式
主升浪点选股公式是一种股票选股策略,用于找出处于主升浪上的潜力股票。
下面是一个简化的主升浪点选股公式:
1. 增长因子:选取近期股价增长快速、营收增长稳定、盈利增长高速的股票。
常用指标包括季度或年度营收增长率、净利润增长率等。
2. 资金流入:关注资金流入情况,选取有资金流入且流入规模较大的股票。
可使用技术分析指标如成交量、资金净流入等来判断。
3. 趋势线突破:关注股票走势线的突破情况,选择处于突破或即将突破趋势线的股票。
常见的趋势线包括均线、通道线等。
4. 技术指标:结合技术指标来辅助选股,如相对强弱指标(RSI)、移动平均线(MA)等。
需要注意的是,这只是一个简化的选股公式,实际选股过程需要综合考虑更多因素,如行业发展趋势、公司基本面等,以及灵活地根据市场情况进行调整。
另外,选择适合自己的投资策略也非常重要。
大智慧大小通道主图指标公式源码编程思路破译
大智慧大小通道主图指标公式源码编程思路破译源码编程思路破译N赋值:5输出多空平衡:最高价的N日指数移动平均的N日指数移动平均的N日指数移动平均,线宽为2输出高位止赢:多空平衡*1.10输出弱势反弹:多空平衡*0.90输出强势回档:多空平衡*0.95输出获利了结:多空平衡*1.05当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLORAAAAAA当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORBBBBBB当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.4,0不为0则画空心柱.,COLORCCCCCC当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.1,0不为0则画空心柱.,COLORDDDDDD当满足条件收阳线时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLOR6666CC当满足条件收阳线时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR7777DD当满足条件收阳线时,在收盘价和开盘价位置之间画柱状线,宽度为2.4,0不为0则画空心柱.,COLOR8888EE当满足条件收阳线时,在收盘价和开盘价位置之间画柱状线,宽度为1.1,0不为0则画空心柱.,COLOR9999FF当满足条件收阳线时,在开盘价和最低价位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR1199FF当满足条件收阳线时,在收盘价和最高价位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR1199FF当满足条件开盘价>=收盘价时,在收盘价和最低价位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORCCCCCC当满足条件开盘价>=收盘价时,在开盘价和最高价位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORCCCCCCGJ赋值:成交额(元)/成交量(手)/100输出必跌:最高价的30日简单移动平均*1.15,COLOR0000FF,线宽为2输出必涨:最低价的30日简单移动平均*0.85,线宽为2,COLOR0000FF输出大底:最低价的30日简单移动平均*0.77,线宽为2B1赋值:'------------量能平台'当满足条件成交量(手)=13日内成交量(手)的最高值时,在收盘价位置书写文字VAR1赋值:(收盘价+最高价+最低价)/3VAR2赋值:VAR1的10日指数移动平均VAR3赋值:1日前的VAR2程序源码N:=5;多空平衡:EMA(EMA(EMA(H,N),N),N),LINETHICK2;高位止赢:多空平衡*1.10;弱势反弹:多空平衡*0.90;强势回档:多空平衡*0.95;获利了结:多空平衡*1.05;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,9,0 ),COLORAAAA AA;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORBBBBB B;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.4,0 ),COLORCCC CCC;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 ),COLORCCCCC C;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLORCCCCC C;GJ:=AMOUNT/V/100;必跌:MA(HIGH,30)*1.15,COLOR0000FF,LINETHICK2;必涨:MA(LOW,30)*0.85,LINETHICK2,COLOR0000FF;大底:MA(LOW,30)*0.77,LINETHICK2;B1:='------------量能平台';DRAWTEXT(VOL=HHV(VOL,13),CLOSE,B1);VAR1:=(CLOSE+HIGH+LOW)/3;VAR2:=EMA(VAR1,10);VAR3:=REF(VAR2,1);。
大智慧技术指标公式,非常重要,绝不删除.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,。
大智慧自动画趋势线主图指标公式
大智慧自动画趋势线主图指标公式2010-08-20 标签: 主图自动画线趋势线大智慧自动画趋势线主图指标公式股票软件源码如下:input: N(5,1,100);A1:=ref(h,N)=hhv(h,2*N+1);B1:=filter(A1,N);C1:=backset(B1,N+1);D1:=filter(C1,n);{高点}A2:=ref(l,N)=llv(l,2*N+1);B2:=filter(A2,N);C2:=backset(B2,N+1);D2:=filter(C2,N);{低点}E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND not(D2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1;L1:=(D2 AND not(D1 AND E1<E2)); H2:=D1 AND not(D2 AND E1>=E2);X1:=ref(barslast(H1),1)+1; F1:=backset(H1 AND count(L1,X1)>0,llvbars(if(L1,l,10000),X1));G1:=F1>ref(F1,1); I1:=backset(G1,2); LD:=I1>ref(I1,1);{过滤后低点}L2:=LD OR barstatus=2 OR barscount(c)=1;X2:=ref(barslast(L2),1)+1; F2:=backset(L2 AND count(H2,X2)>0,hhvbars(if(H2,h,0),X2));G2:=F2>ref(F2,1); I2:=backset(G2,2); HD:=I2>ref(I2,1);{过滤后高点}R1:=backset(barstatus=2,barslast(HD)+1);S1:=R1>ref(R1,1); {前一高}T1:=backset(barstatus=2,barslast(LD)+1);U1:=T1>ref(T1,1); {前一低}R2:=backset(S1,ref(barslast(HD),1)+2);S2:=R2>ref(R2,1); {前二高}T2:=backset(U1,ref(barslast(LD),1)+2);U2:=T2>ref(T2,1); {前二低}短期压力:drawline(S2,h,S1,h,1),Colorred;短期支撑:drawline(U2,l,U1,l,1),Colorgreen;{股旁网-股票公式网站 }HH1:=if(s2,H,ref(H,BARSLAST(s2)));HH2:=if(s1,H,ref(H,BARSLAST(s1)));LL1:=if(u2,l,ref(l,BARSLAST(u2)));LL2:=if(u1,l,ref(l,BARSLAST(u1)));上线:HH1+(HH2-HH1)*BARSLAST(s2)/(BARSLAST(s2)-BARSLAST(s1)); 下线:LL1+(LL2-LL1)*BARSLAST(U2)/(BARSLAST(U2)-BARSLAST(u1));。
大智慧绝对厉害的主图指标公式源码编程思路破译
大智慧绝对厉害的主图指标公式源码编程思路破译编程思路破译R1赋值:收盘价的1日简单移动平均R2赋值:收盘价的3日简单移动平均R3赋值:(R2的1日简单移动平均*1)R4赋值:(R2的3日简单移动平均*1)X1赋值:(收盘价+最低价+最高价)/3DD赋值:FINANCE2(35)SS赋值:FINANCE2(37)GG赋值:FINANCE2(3)TH赋值:市盈(动)A51赋值:3*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均-2*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均LC赋值:1日前的收盘价RSI赋值:(((收盘价-LC)和0的较大值的3日[1日权重]移动平均/ (收盘价-LC)的绝对值的3日[1日权重]移动平均) * 100)FF赋值:收盘价的3日指数移动平均MA15赋值:收盘价的21日指数移动平均A1赋值:如果(收盘价<800),返回((成交额(元)/成交量(手))/100),否则返回((((收盘价*2)+最高价)+最低价)/4)A2赋值:((15日内最高价的最高值) + (30日内最低价的最低值)) / 2A3赋值:(A1的5日简单移动平均)的10日指数移动平均A4赋值:(A1的15日简单移动平均)的10日指数移动平均A5赋值:(A1的13日简单移动平均)的21日指数移动平均A6赋值:((A3 + A4) + A5) / 3输出决策线:(收盘价的5日简单移动平均)的3日指数移动平均,线宽为2,COLORFF0000PARTLINE(决策线,决策线> (3日前的决策线),自定色),线宽为2,COLOR3300FF当满足条件((收盘价>0)AND(DISPSTATUS=2))时,在(决策线*0.95)位置书写文字,MOVE10,ALIGN2,线宽为2,画红色VAR1111赋值:若2日前的最高价=5日内最高价的最高值则将最近3周期置为1VAR2222赋值:VAR1111上穿0.9VAR3333赋值:若2日前的最低价=5日内最低价的最低值则将最近3周期置为1VAR4444赋值:VAR3333上穿0.9输出压力: 上次VAR2222距今天数日前的最高价, POINTDOT,COLOREA91B5当满足条件收盘价时,在上次VAR2222距今天数日前的最高价和上次VAR2222距今天数日前的最高价位置之间画柱状线,宽度为5,0不为0则画空心柱.,线宽为3,COLOREA91B5输出支撑: 上次VAR4444距今天数日前的最低价, POINTDOT,COLOR00B4FF,线宽为3当满足条件收盘价时,在上次VAR4444距今天数日前的最低价和上次VAR4444距今天数日前的最低价位置之间画柱状线,宽度为5,0不为0则画空心柱.,线宽为3,COLOR00B4FF输出弱势双线持币:2日内最高价的(3)日简单移动平均的最高值,线宽为2,COLOR00FF00输出强势单线持股:1日内最高价的(3)日简单移动平均的最低值,线宽为2,COLORFF00FFAA1赋值:成交额(元)/成交量(手)BB1赋值:最低价<AA1*0.9CC1赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>1.2DD1赋值:最低价<收盘价的5日简单移动平均*0.921EE1赋值:成交量(手)<成交量(手)的5日简单移动平均*1.5输出老鼠仓:BB1 AND CC1 AND DD1 AND EE1,线宽为0当满足条件老鼠仓时,在(最低价*0.99)位置书写文字,线宽为3,COLOR40CCFFA74赋值:收盘价的20日简单移动平均A75赋值:(收盘价 > 收盘价的5日简单移动平均)A76赋值:(收盘价的5日简单移动平均 > 收盘价的10日简单移动平均)A77赋值:(收盘价 > 收盘价的10日简单移动平均)A78赋值:(收盘价的5日简单移动平均 > 收盘价的20日简单移动平均)A79赋值:(收盘价 > 收盘价的20日简单移动平均)A710赋值:1日前的A74A711赋值:(A74 > A710)AVX赋值:(((((如果A75,返回10,否则返回(0-10) + 如果A76,返回10,否则返回(0-10)) + 如果A77,返回10,否则返回(0-10)) + 如果A78,返回10,否则返回(0-10)) + 如果A79,返回10,否则返回(0-10)) + 如果A711,返回10,否则返回(0-10))DSLX赋值:(收盘价 / 大盘的收盘价)DSLX1赋值:DSLX的5日简单移动平均DSLX2赋值:DSLX的10日简单移动平均V1赋值:成交量(手)的5日简单移动平均V2赋值:成交量(手)的10日简单移动平均赋值: 上次DISPSTATUS=1距今天数+1赋值: 上次DISPSTATUS=1距今天数+1赋值: T日内最高价的最高值赋值: T日内最低价的最低值条件判断数据位置状态=2 AND 收盘价<200 AND ((AVX上穿1 AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTABS(32,100,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
大智慧主图公式
大智慧主图公式: 招招绝(原码)A3 :(EMA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15))/3,colorff00ff;a4 :(EMA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/3,color00ff00;A5 :(EMA(CLOSE,40)+MA(CLOSE,50)+MA(CLOSE,60))/3,coloryellow;a6 :(EMA(CLOSE,80)+MA(CLOSE,85)+MA(CLOSE,90))/3,colorff9900;A7 :(EMA(CLOSE,120)+MA(CLOSE,130)+MA(CLOSE,150))/3,color0000ff;a8 :(EMA(CLOSE,160)+MA(CLOSE,170)+MA(CLOSE,180))/3,coloryellow;A9 :(EMA(CLOSE,200)+MA(CLOSE,225)+MA(CLOSE,250))/3,color00ff00;V1:EMA(CLOSE,5),Color00FFFF;V2:EMA((EMA(CLOSE,29))*(1.01),10),ColorFF00FF;DRAWICON(CROSS(V1,V2),V2,1),Color00FF00;V3:EMA(CLOSE,10),ColorFFFFFF;V4:EMA((EMA(CLOSE,60))*(0.99),10),ColorFFFF00;DRAWICON(CROSS(V3,V4),V2,1),Color0000FF;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),colorred;VarA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VarB:=EMA(0.667*REF(VarA,1)+0.333*VarA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VarA>=VarB and VarA<-17,3) ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');Varr1:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;DRAWICON(CROSS(82,Varr1),HIGH,2);DRAWTEXT(CROSS(82,Varr1),high,'快卖↓'),coloryellow;Var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;Var2:=REF(Var1,1);Var3:=SMA(MAX(Var1-Var2,0),10,1)/SMA(ABS(Var1-Var2),10,1)*100;HY3:=IF(COUNT(Var3<20,5)>=1 AND COUNT(Var1=LLV(Var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(hy3,low,'▲买入'),colorred;夺宝:Var1:=EMA(C,3);Var2:=EMA(C,5);Var3:=EMA(C,10);Var4:=EMA(C,20);Var5:=EMA(C,30);Var6:=(Var2+Var3+Var4+Var5)/4;Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;Var9:=EMA(Var7,8);STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;{蓝-持币}STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORBLUE;STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;{红-持股}STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLORRED;STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;{白-买进}STICKLINE(买进条件,o,c,6,0),colorwhite,linethick2;加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;{黄-加码}STICKLINE(加码条件,o,c,6,0),coloryellow,linethick2;X1:EMA(C,7),color0088ff;X2:EMA(c,21),coloree00ee;X3:EMA(X2,21),colorwhite;x4:ema(x3,27),color009900;x5:ema(x2,100),colorFFAA00;x6:ema(x5,100),color009999;v1:ema(close,5);v2:ema(ema(close,29)*1.01,10);DRAWICON(cross(v1,v2),v2,1); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃:if(CROSS(84,RSI) , HIGH,high+1),pointdot,linethick7,COLORYELLOW ;high+1,pointdot,linethick7,COLOR000000; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));DRAWICON(FILTER(B2>0,5),L*0.96,10);DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWICON(FILTER(B3>0,5),L*0.98,10);DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORFFFF00;{RSI底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)); DRAWICON(FILTER(D2>0,5),H*1.05,12);DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));DRAWICON(FILTER(D3>0,5),H*1.03,12),;DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORFF00FF;{RSI顶背离}。
大智慧基本面提示主图指标公式程序源码编程思路破译及
大智慧基本面提示主图指标公式程序源码编程思路破译及编程思路破译DRAWRECTABS(0,6,60,25,自定色),画黄色DRAWTEXTABS(3,10,'先看大盘!'),画黑色,线宽为1大盘涨跌赋值:(大盘的收盘价-1日前的大盘的收盘价)*100/1日前的大盘的收盘价上涨家数赋值:大盘的上涨家数下跌家数赋值:大盘的下跌家数DRAWTEXTABS(80,10,'大盘涨跌:'),画黄色,线宽为1DRAWTEXTABS(150,10,IFS(大盘涨跌>0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),画红色,线宽为1DRAWTEXTABS(150,10,IFS(大盘涨跌=0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),画白色,线宽为1DRAWTEXTABS(150,10,IFS(大盘涨跌<0,NUMTOSTRN(大盘涨跌,2)+'%','')),画绿色,线宽为1DRAWTEXTABS(210,10,'上涨家数:'+NUMTOSTRN(上涨家数,0)+'家'),画黄色,线宽为1DRAWTEXTABS(365,10,'下跌家数:'+NUMTOSTRN(下跌家数,0)+'家'),画黄色,线宽为1DRAWTEXTABS(0,30,'■盘面提示:'),画黄色,线宽为1DRAWTEXTABS(80,30,品种名称+' '+STKLABEL),画黄色,线宽为1流通盘大小赋值:FINANCE2(37)/1000000*100流通比例赋值:100*FINANCE2(37)/FINANCE2(35)DRAWTEXTABS(210,30,'流通市值:'+NUMTOSTRN(流通盘大小,2)+'亿'),画黄色,线宽为1DRAWTEXTABS(365,30,'流通比例:'+NUMTOSTRN(流通比例,2)+'%'),画黄色,线宽为1每股净资产赋值:FINANCE2(4)每股收益赋值:FINANCE2(3)每股市盈率赋值:市盈(动)销售毛利率赋值:FINANCE2(12)主营收入同比赋值:FINANCE2(11)净利润同比增长赋值:FINANCE2(10)DRAWTEXTABS(0,50,'基本面情况:'),画黄色,线宽为1DRAWTEXTABS(80,50,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),画黄色,线宽为1DRAWTEXTABS(210,50,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),画黄色,线宽为1DRAWTEXTABS(365,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),画黄色,线宽为1DRAWTEXTABS(80,70,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),画黄色,线宽为1DRAWTEXTABS(210,70,'主营收入同比增:'+NUMTOSTRN(主营收入同比,2)+'%'),画黄色,线宽为1DRAWTEXTABS(365,70,'净利润同比增:'+NUMTOSTRN(净利润同比增长,2)+'%'),画黄色,线宽为1DRAWTEXTABS(0,90,'换手率高低:'),画黄色,线宽为1当日换手率赋值:100*成交量(手)/当前流通股本(手)的1日累和DRAWTEXTABS(80,90,'今日换手率:'+NUMTOSTRN(当日换手率,2)+'%'),画黄色,线宽为1五日换手率赋值:100*成交量(手)/当前流通股本(手)的5日累和DRAWTEXTABS(210,90,'5日换手率:'+NUMTOSTRN(五日换手率,2)+'%'),画黄色,线宽为1十日换手率赋值:成交量(手)的10日累和*100/当前流通股本(手) DRAWTEXTABS(365,90,'10日换手率: '+NUMTOSTRN(十日换手率,2)+'%'),画黄色,线宽为1DRAWTEXTABS(0,110,'■所属板块:'+' '+BKNAME),画黄色,线宽为1程序源码DRAWRECTABS(0,6,60,25,RGB(235,235,30)),COLORYELLOW;DRAWTEXTABS(3,10,'先看大盘!'),COLORBLACK,LINETHICK1;大盘涨跌:=(INDEXC-REF(INDEXC,1))*100/REF(INDEXC,1);上涨家数:=INDEXADV;下跌家数:=INDEXDEC;DRAWTEXTABS(80,10,'大盘涨跌:'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(150,10,IFS(大盘涨跌>0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),COLORRED,LINETHICK1;DRAWTEXTABS(150,10,IFS(大盘涨跌=0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),COLORWHITE,LINETHICK1;DRAWTEXTABS(150,10,IFS(大盘涨跌<0,NUMTOSTRN(大盘涨跌,2)+'%','')),COLORGREEN,LINETHICK1;DRAWTEXTABS(210,10,'上涨家数:'+NUMTOSTRN(上涨家数,0)+'家'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(365,10,'下跌家数:'+NUMTOSTRN(下跌家数,0)+'家'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(0,30,'■盘面提示:'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(80,30,STKNAME+''+STKLABEL),COLORYELLOW,LINETHICK1;流通盘大小:=FINANCE2(37)/1000000*100;流通比例:=100*FINANCE2(37)/FINANCE2(35);DRAWTEXTABS(210,30,'流通市值:'+NUMTOSTRN(流通盘大小,2)+'亿'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(365,30,'流通比例:'+NUMTOSTRN(流通比例,2)+'%'),COLORYELLOW,LINETHICK1;每股净资产:=FINANCE2(4);每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);DRAWTEXTABS(0,50,'基本面情况:'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(80,50,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(210,50,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(365,50,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(80,70,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(210,70,'主营收入同比增:'+NUMTOSTRN(主营收入同比,2)+'%'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(365,70,'净利润同比增:'+NUMTOSTRN(净利润同比增长,2)+'%'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(0,90,'换手率高低:'),COLORYELLOW,LINETHICK1;当日换手率:=SUM(100*V/CAPITAL,1);DRAWTEXTABS(80,90,'今日换手率:'+NUMTOSTRN(当日换手率,2)+'%'),COLORYELLOW,LINETHICK1;五日换手率:=SUM(100*V/CAPITAL,5);DRAWTEXTABS(210,90,'5日换手率:'+NUMTOSTRN(五日换手率,2)+'%'),COLORYELLOW,LINETHICK1;十日换手率:=SUM(VOL,10)*100/CAPITAL;DRAWTEXTABS(365,90,'10日换手率: '+NUMTOSTRN(十日换手率,2)+'%'),COLORYELLOW,LINETHICK1;DRAWTEXTABS(0,110,'■所属板块:'+''+BKNAME),COLORYELLOW,LINETHICK1; 风险提示该公式包含未来函数:CAPITAL该公式包含未来函数:DYNAINFO该公式包含未来函数:FINANCE。
【股票指标公式下载】-【大智慧】神奇主图(操作、拉升、压力)
【大智慧】神奇主图(操作、拉升、压力)-指标公式源码操作:MA((LOW+HIGH+CLOSE)/3,5),LINETHICK2,COLORWHITE;拉升:HHV(操作,13),COLORRED,LINETHICK3;压力:HHV(操作,60),LINETHICK1,COLORRED;支撑:LLV(操作,13),LINETHICK1,COLOR00FF00;底部支撑: LLV(LOW,60)*1.02,COLOR00CCFF;顶部:HHV(HIGH,60)*0.98,COLORFFFFCC;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 ORVAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,0),COLORRED; VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66; VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 ORVAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORred;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ECFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10FFFF;Pr2:=(2*CLOSE+HIGH+LOW)/4;Pr4:=llv(LOW,5);Pr5:=hhv(HIGH,4);散户:=EMA((Pr2-Pr4)/(Pr5-Pr4)*100,4);庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);涨停先锋1:if(CROSS(散户,庄家) AND 散户<50 AND 29<散户 ANDC>O,20,0),COLORwhite,LINETHICK0;DRAWICON(涨停先锋1 ,L-0.3 ,7 );f:=c>o or (c=o and c>ref(c,1));支撑价:=llv(LOW,19);阻力价:=hhv(HIGH,19);PPr1:=EMA(CLOSE,12)-EMA(CLOSE,26);PPr2:=EMA(PPr1,9);PPr3:=(CLOSE*2.5/100+CLOSE);PPr4:=EMA(C,3);PPr5:=llv(HIGH,240);PPr6:=100*(CLOSE-PPr5)/PPr5;PPr7:=REF(llv(CLOSE,480),1);PPr8:=REF(hhv(CLOSE,480),1);PPr9:=100*(CLOSE-PPr7)/(PPr8-PPr7);PPrA:=(CLOSE-llv(CLOSE,981))/(hhv(CLOSE,981)-llv(CLOSE,981))*100;PPrB:=(CLOSE-llv(CLOSE,393))/(hhv(CLOSE,393)-llv(CLOSE,393))*100; PPrC:=(CLOSE-llv(LOW,981))/(hhv(HIGH,981)-llv(LOW,981))*100;PPrD:=(CLOSE-llv(LOW,393))/(hhv(HIGH,393)-llv(LOW,393))*100;PPrE:=PPrC>98.5 OR PPrD>98.5;PPrF:=EMA(100*(CLOSE-llv(LOW,100))/(hhv(HIGH,100)-llv(LOW,100)),5)/4; PPr13:=PPrA=0 AND PPrC=0 AND PPr6<0;PPr14:=PPrA=100 AND PPrC=100;PPr15:=PPrB=0 OR PPrD=0 AND PPr9<0;PPr16:=PPrB=100 AND PPrD=100;PPr17:=PPr6<0 AND PPr9<0;PPr18:=PPr13 AND PPr15;PPr19:=PPr14 AND PPr16;PPr1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1) ),6,1)*100;PPr1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1) ),14,1)*100;PPr1D:=BARSCOUNT(CLOSE);PPr1E:=PPr1B<20 AND PPr1C<23 AND PPr1D>35;PPr1F:=PPr1E AND COUNT(PPr1E,1)=1;PPr20:=REF(CLOSE,1);PPr21:=SMA(MAX(CLOSE-PPr20,0),34,1)/SMA(ABS(CLOSE-PPr20),7,1)*100; PPr22:=SMA(MAX(CLOSE-PPr20,0),13,1)/SMA(ABS(CLOSE-PPr20),13,1)*100; PPr23:=BARSCOUNT(CLOSE);PPr24:=PPr21<20 AND PPr22<23 AND PPr23>35;PPr25:=PPrA=0 AND PPrF<1.2 AND PPr17;PPr27:=PPr18 AND PPrF<1.2 AND PPr17;PPr29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;PPr2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),7 7)*100;PPr2B:=CROSS(PPr29,69) AND CROSS(PPr2A,80)<150;PPr2C:=PPr24 AND PPr1F AND COUNT(PPr24,30)=1;PPr2D:=PPr1F AND PPr2C AND PPr25;短买:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 ORCLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 ANDCLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 ORCLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21)); 股海万元:(COUNT(REF(PPr4,1)<REF(PPr4,2),5)=5 ANDPPr4>REF(PPr4,1))*20,colorwhite,LINETHICK0;DRAWICON(股海万元 ,L-0.5 ,1);PARL0:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20))/4; PARL1:=C/REF(C,1)<1.05 AND C/REF(C,1)>1;PARL2:=hhv(C/REF(C,1),60)>1.06 OR llv(C/REF(C,1),60)<0.94;PARL3:=C>O AND C<30;LOWP:=llv(LOW,9);HIGHP:=hhv(HIGH,9);RSP:=EMA((CLOSE-LOWP)/(HIGHP-LOWP)*100,3);X:=EMA(RSP,3);Y:=MA(X,3);PARL4:=CROSS(X,Y) AND X<70;三天:=(CROSS(PARL0,REF(PARL0,2)) OR (PARL4 AND PARL0>REF(PARL0,2))) AND PARL1AND PARL2 AND PARL3 AND X>Y AND X<70;P1:=llv(LOW,10);P2:=hhv(H,25);价位线:=EMA((C-P1)/(P2-P1)*4,4);ss:=CROSS(价位线,0.3);极点买入:ss*20,LINETHICK0;涨停先锋:=(涨停先锋1 or 极点买入 or 股海万元 or 三天);DRAWTEXT(涨停先锋=1,支撑,'○'),coloryellow;多:=EMA(C,3);空:=EMA(C,5);均衡:=EMA(空,5);vFFF1:=COUNT(CROSS(多,均衡),2)=1;vFFF2:=COUNT(CROSS(空,均衡),2)=1;ZAI:=FILTER(vFFF1 AND vFFF2,2);DRAWTEXT(ZAI,均衡*0.98,'买'),colorFF00ff;VV2:=REF(CLOSE,1);VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,'卖'),COLORYELLOW;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>=REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'买'),COLORRED;vFFA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;vFFB:=EMA(0.667*REF(vFFA,1)+0.333*vFFA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(vFFA>=vFFB AND vFFA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'买');vFFR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*10 0;DRAWICON(CROSS(82,vFFR1),HIGH,2);DRAWTEXT(CROSS(82,vFFR1),HIGH,'卖'),COLORYELLOW;vFF1:=(HIGH+LOW+OPEN+2*CLOSE)/5;vFF2:=REF(vFF1,1);vFF3:=SMA(MAX(vFF1-vFF2,0),10,1)/SMA(ABS(vFF1-vFF2),10,1)*100;HY3:=IF(COUNT(vFF3<20,5)>=1 AND COUNT(vFF1=LLV(vFF1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(HY3,LOW,'买'),COLORyellow;S:=MA(VOL,5)/MA(VOL,60);A:=MA(S,5);BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;Fg:=MA(S,121);RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;K:=SMA(RSV,15,1);D:=SMA(K,15,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(84,RSI) , HIGH,'卖'),COLORYELLOW ;S1:IF((J<11 AND BIAS>-11 AND CROSS( S,Fg) AND(S-Fg)>0.010),2,0),STICK,LINETHICK0,COLOR00ff00;庄压:HHV(MA(H,13),13),COLOryellow,LINETHICK2;趋势:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;LCe:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LCe),0),5,1) / SMA(ABS((CLOSE - LCe)),5,1)) * 100);TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF (CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR);MDI:=((DMM * 100) / TR);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);阶段底部:=(AV + NEWVOL);趋势线:=llv(阶段底部,1);DRAWTEXT(cross(趋势线,0),支撑*0.95,'荐'), COLORwhite;DRAWTEXT(cross(230,趋势线),拉升*1.02,'减'), COLORblue;【大智慧】神奇主图(操作、拉升、压力)-指标公式效果图(文档来源:若水财经社区)。
绝对的主升浪公式
强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10),COLORYELLOW,LINETHICK2;
总主升浪:=低位主升 OR 主升浪 OR 大主升浪 OR 大主升浪2 OR 总主升,;
强势主升低买:=L<底部1 AND 总主升浪 AND 强势为王 AND C<DSA;
猎股小王:=L<底部1 AND C<DSA AND 强势为王;
猎股大王出击:=强势主升低买 AND 猎股小王 AND H<DSA,COLORRED;
A:=MA(C,30);
A1:=A*1.1;
A4:=A*0.9;
A2:=A1-(A1-A4)*0.191;
持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;
生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;
开始走强4:=强势线4>REF(强势线3,1),;
双强1:=开始走强1 AND 开始走强2,;
双强2:=开始走强2 AND 开始走强3,;
双强3:=开始走强2 AND 开始走强3,;
双强4:=开始走强3 AND 开始走强4,;
三强:=开始走强1 AND 开始走强2 AND 开始走强3,;
大智慧红蓝导航主图指标公式源码编程思路破译
大智慧红蓝导航主图指标公式源码编程思路破译源码编程思路破译P1赋值:3P2赋值:6P3赋值:18P4赋值:250DRAWGBKLAST(收盘价>收盘价的5日指数移动平均,STRIP(自定色,自定色,1))DRAWGBKLAST(收盘价<=收盘价的5日指数移动平均,STRIP(自定色,自定色,1))DRAWGBKLAST(收盘价<=收盘价的10日指数移动平均,STRIP(自定色,自定色,1))DRAWGBKLAST(收盘价<=收盘价的20日指数移动平均,STRIP(自定色,自定色,1))LL赋值:1日前的最低价HH赋值:1日前的最高价SQK赋值:最低价>HHXQK赋值:最高价<LL当满足条件SQK时,在最低价和HH位置之间画柱状线,宽度为4*5,1不为0则画空心柱.,画黄色当满足条件XQK时,在最高价和LL位置之间画柱状线,宽度为4*5,2不为0则画空心柱.,画绿色A10304赋值:3日前的最高价=2*3+1日内最高价的最高值B10304赋值:A10304的3日过滤C10304赋值:若B10304则将最近3+1周期置为1D10304赋值:C10304的3日过滤A20304赋值:3日前的最低价=2*3+1日内最低价的最低值B20304赋值:A20304的3日过滤C20304赋值:若B20304则将最近3+1周期置为1D20304赋值:C20304的3日过滤E10304赋值:(1日前的2*3日内最低价的最低值+1日前的2*3日内最高价的最高值)/2E20304赋值:(最高价+最低价)/2H10304赋值:(D10304 AND 取反) OR 数据位置状态=2 OR 收盘价的有效数据周期数=1L10304赋值:(D20304 AND 取反)X10304赋值:1日前的上次H10304距今天数+1F10304赋值:若H10304ANDCOUNT(L10304,X10304)>0则将最近X10304日内如果L10304,返回最低价,否则返回10000距今天数周期置为1G10304赋值:F10304>1日前的F10304I10304赋值:若G10304则将最近2周期置为1LD0304赋值:I10304>1日前的I10304L20304赋值:LD0304 OR 数据位置状态=2 OR 收盘价的有效数据周期数=1X20304赋值:1日前的上次L20304距今天数+1F20304赋值:若L20304ANDCOUNT(H10304,X20304)>0则将最近X20304日内如果H10304,返回最高价,否则返回0距今天数周期置为1G20304赋值:F20304>1日前的F20304I20304赋值:若G20304则将最近2周期置为1HD0304赋值:I20304>1日前的I20304UU0304赋值:若数据位置状态=2则将最近上次LD0304距今天数+1周期置为1VV0304赋值:UU0304>1日前的UU0304UU20304赋值:若数据位置状态=2则将最近上次HD0304距今天数+1周期置为1VV20304赋值:UU20304>1日前的UU20304输出底:上次VV0304距今天数日前的最低价,画红色,线宽为1输出顶:上次VV20304距今天数日前的最高价,画绿色,线宽为1当满足条件VV0304时,在顶和底位置之间画柱状线,宽度为0,0不为0则画空心柱.,画红色,线宽为3当满足条件VV20304时,在最高价位置画直线起点,当满足条件VV0304时,在最低价位置画直线终点,0表示是否延长.,画红色,线宽为3 当满足条件VV20304时,在最高价位置画直线起点,当满足条件VV0304时,在顶位置画直线终点,0表示是否延长.,画红色,线宽为3 当满足条件VV20304时,在顶和底位置之间画柱状线,宽度为0,0不为0则画空心柱.,画绿色,线宽为2当满足条件VV0304时,在最低价位置画直线起点,当满足条件VV20304时,在最高价位置画直线终点,0表示是否延长.,画绿色,线宽为2当满足条件VV0304时,在最低价位置画直线起点,当满足条件VV20304时,在底位置画直线终点,0表示是否延长.,画绿色,线宽为2 NN304赋值: DISPSTATUS=2当满足条件NN304时,在底位置书写文字,ALIGN2,画红色,线宽为1,VALIGN0当满足条件NN304时,在顶位置书写文字,ALIGN2,画绿色,线宽为1,VALIGN2TY309赋值:收盘价HD309赋值:若10日前的TY309=2*10+1日内TY309的最高值的10日过滤则将最近10+1周期置为1的10日过滤LD309赋值:若10日前的TY309=2*10+1日内TY309的最低值的10日过滤则将最近10+1周期置为1的10日过滤A309赋值:上次HD309距今天数日前的收盘价B309赋值:上次LD309距今天数日前的收盘价T1309赋值:上次HD309距今天数<上次LD309距今天数AND 取反T2309赋值:上次HD309距今天数>上次LD309距今天数AND 取反输出波浪顶:如果T1309,返回A309,否则返回A309,画青色,POINTDOT,线宽为2输出波浪底:如果T2309,返回B309,否则返回B309,画洋红色,POINTDOT,线宽为2A赋值:3日内(最低价+最高价+收盘价)/3的3日简单移动平均的最高值B赋值:10日内(最低价+最高价+收盘价)/3的3日简单移动平均的最低值当满足条件DISPSTATUS=2时,在A和A位置之间画柱状线,宽度为20,0不为0则画空心柱.,画黄色,线宽为1当满足条件DISPSTATUS=2时,在A位置书写文字,画黄色当满足条件DISPSTATUS=2时,在B和B位置之间画柱状线,宽度为20,0不为0则画空心柱.,画白色,线宽为1当满足条件DISPSTATUS=2时,在B位置书写文字,画白色K1赋值:上次DISPSTATUS=1距今天数+1日内最低价的最低值AA1赋值:获利盘为95%的成本分布AA2赋值:获利盘为5%的成本分布LY赋值:(AA1-AA2)*100/(AA1+AA2)N赋值:P1A1赋值:N日前的最高价=2*N+1日内最高价的最高值B1赋值:A1的N日过滤C1赋值:若B1则将最近N+1周期置为1D1赋值:C1的N日过滤A2赋值:N日前的最低价=2*N+1日内最低价的最低值B2赋值:A2的N日过滤C2赋值:若B2则将最近N+1周期置为1D2赋值:C2的N日过滤E1赋值:(1日前的2*N日内最低价的最低值+1日前的2*N日内最高价的最高值)/2E2赋值:(最高价+最低价)/2H1赋值:(D1 AND 取反) OR DISPSTATUS=2 OR 收盘价的有效数据周期数=1L1赋值:(D2 AND 取反)H2赋值:D1 AND 取反X1赋值:1日前的上次H1距今天数+1F1赋值:若H1ANDCOUNT(L1,X1)>0则将最近X1日内如果L1,返回最低价,否则返回10000距今天数周期置为1G1赋值:F1>1日前的F1I1赋值:若G1则将最近2周期置为1LD赋值:I1>1日前的I1L2赋值:LD OR DISPSTATUS=2 OR 收盘价的有效数据周期数=1 X2赋值:1日前的上次L2距今天数+1F2赋值:若L2ANDCOUNT(H2,X2)>0则将最近X2日内如果H2,返回最高价,否则返回0距今天数周期置为1G2赋值:F2>1日前的F2I2赋值:若G2则将最近2周期置为1HD赋值:I2>1日前的I2R1赋值:若DISPSTATUS=2则将最近上次HD距今天数+1周期置为1S1赋值:R1>1日前的R1T1赋值:若DISPSTATUS=2则将最近上次LD距今天数+1周期置为1U1赋值:T1>1日前的T1R2赋值:若S1则将最近1日前的上次HD距今天数+2周期置为1 S2赋值:R2>1日前的R2T2赋值:若U1则将最近1日前的上次LD距今天数+2周期置为1 U2赋值:T2>1日前的T2T3赋值:若U2则将最近1日前的上次LD距今天数+2周期置为1 U3赋值:T3>1日前的T3T4赋值:若U3则将最近1日前的上次LD距今天数+2周期置为1U4赋值:T4>1日前的T4R3赋值:若S2则将最近1日前的上次HD距今天数+2周期置为1 S3赋值:R3>1日前的R3R4赋值:若S3则将最近1日前的上次HD距今天数+2周期置为1 S4赋值:R4>1日前的R4当满足条件S2时,在最高价位置画直线起点,当满足条件S1时,在最高价位置画直线终点,1表示是否延长.,COLOR80FFFF当满足条件U2时,在最低价位置画直线起点,当满足条件U1时,在最低价位置画直线终点,1表示是否延长.,POINTDOT,COLOR00FFFF,线宽为1当满足条件S3时,在最高价位置画直线起点,当满足条件S2时,在最高价位置画直线终点,1表示是否延长.,COLORFF8000当满足条件U3时,在最低价位置画直线起点,当满足条件U2时,在最低价位置画直线终点,1表示是否延长.,POINTDOT,COLORFF8000 当满足条件S4时,在最高价位置画直线起点,当满足条件S3时,在最高价位置画直线终点,1表示是否延长.,COLOR0000FF当满足条件U4时,在最低价位置画直线起点,当满足条件U3时,在最低价位置画直线终点,1表示是否延长.,POINTDOT,COLOR0000FF 当满足条件S2时,在最高价*1.02位置画9号图标当满足条件S3时,在最高价*1.02位置画9号图标当满足条件S2时,在最高价*1.035位置书写文字,画洋红色,线宽为2当满足条件S1时,在最高价*1.035位置书写文字,画洋红色,线宽为2当满足条件S3时,在最高价*1.035位置书写文字,画洋红色,线宽为2当满足条件U1时,在最低价*0.98位置画10号图标当满足条件U2时,在最低价*0.98位置画10号图标当满足条件U3时,在最低价*0.98位置画10号图标当满足条件U4时,在最低价*0.98位置画10号图标当满足条件U1时,在最低价*0.96位置书写文字,画青色,线宽为2 当满足条件U2时,在最低价*0.96位置书写文字,画青色,线宽为2 当满足条件U3时,在最低价*0.96位置书写文字,画青色,线宽为2 当满足条件U4时,在最低价*0.96位置书写文字,画青色,线宽为2 DRAWTEXTABS(20,5,'所属板块:'+BKNAME),画黄色流通盘大小赋值:FINANCE2(37)/1000000*100DRAWTEXTABS(20,25,'上市日期:'+STR(FINANCE2(2))+'日'),画黄色DRAWTEXTABS(180,25,'总股本:'+NUMTOSTR(FINANCE2(35)/10000 )+'亿'),画黄色DRAWTEXTABS(320,25,'流通股:'+ NUMTOSTR(当前流通股本(手)/1000000)+'亿'),画黄色DRAWTEXTABS(460,25,'限售A股:'+ NUMTOSTR(FINANCE2(41)/10000)+'亿'),画黄色每股收益赋值:FINANCE2(3)每股市盈率赋值:市盈(动)每股净资产赋值:FINANCE2(4)销售毛利率赋值:FINANCE2(12)主营收入同比赋值:FINANCE2(11)净利润同比增长赋值:FINANCE2(10)每股公积金赋值:FINANCE2(7)每股未分配赋值:FINANCE2(8)DRAWTEXTABS(20,45,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),画绿色DRAWTEXTABS(20,65,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),画绿色DRAWTEXTABS(20,85,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),画绿色DRAWTEXTABS(20,105,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),画绿色DRAWTEXTABS(180,45,'每股收益:'+NUMTOSTRN(每股收益,2)+ '元'),画红色DRAWTEXTABS(180,65,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),画红色DRAWTEXTABS(180,85,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),画红色DRAWTEXTABS(180,105,'每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),画红色N1赋值:上次收盘价上穿收盘价的60日简单移动平均距今天数N2赋值:上次收盘价的60日简单移动平均上穿收盘价距今天数建仓成本赋值:MAXCYC日换手率赋值:(成交量(手)*100/当前流通股本(手))5日换手率赋值:日换手率的5日累和5日均量赋值:市盈(静)压力位赋值:以成交量(手)/(100*FINANCE2(37))为权重成交额(元)/(100*成交量(手))的动态移动平均*1.12强股排序赋值:如果N1<N2,返回N1+1,否则返回0输出DRAWTEXTABS(320,45,'日换手率:'+NUMTOSTRN(日换手率,3)),COLORF200F2输出DRAWTEXTABS(460,45,'5日换手率:'+NUMTOSTRN(5日换手率,3)),COLORF200F2输出DRAWTEXTABS(320,65,'5日均量:'+NUMTOSTRN(5日均量,0)+'手'),COLORF200F2输出DRAWTEXTABS(460,65,'平均成本:'+NUMTOSTRN(建仓成本,2)+'元'),COLORF200F2输出DRAWTEXTABS(320,85,'股价上穿60均线:'+NUMTOSTRN(强股排序,0)+'天'),COLORF200F2输出DRAWTEXTABS(460,85,'心理成本压力:'+NUMTOSTRN(压力位,2)+'元'),COLORF200F2DRAWTEXTABS(320,105,'上涨家数:'+NUMTOSTRN(大盘的上涨家数,0)),COLORF200F2DRAWTEXTABS(460,105,'下跌家数:'+NUMTOSTRN(大盘的下跌家数,0)),COLORF200F2DRAWTEXTABS(5,260,'【红三角】〓回调企稳形态【突破红三角后的回踩为假摔】〓'),画红色,线宽为2DRAWTEXTABS(5,285,'【红三角】〓回调企稳形态【画完介入&突破介入】〓'),画红色,线宽为2DRAWTEXTABS(5,310,'【绿三角】〓突破前高形态【画完出局】〓'),画绿色,线宽为2DRAWTEXTABS(5,335,'【绿三角】〓突破前高形态【未突破绿三角顶端的回调为真摔】〓'),画绿色,线宽为2ST赋值:STRFIND(品种名称,'ST',1)ZF赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100涨停赋值:如果ST>0,返回ZF>=4.94,否则返回ZF>=9.88跌停赋值:如果ST>0,返回ZF<=-4.94,否则返回ZF<=-9.88当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为15,0不为0则画空心柱.,COLOR004444当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为13,0不为0则画空心柱.,COLOR004444当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为11,0不为0则画空心柱.,COLOR004444当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为10,0不为0则画空心柱.,COLOR004444当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLOR005555当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR006666当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR007777当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR009999当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR00BBBB当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00DDDD当满足条件涨停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR00FFFF当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为15,0不为0则画空心柱.,COLOR333333当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为13,0不为0则画空心柱.,COLOR333333当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为11,0不为0则画空心柱.,COLOR333333当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为10,0不为0则画空心柱.,COLOR333333当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLOR444444当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR555555当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR777777当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR999999当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORBBBBBB当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLORDDDDDD当满足条件跌停>=1时,在开盘价和收盘价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFFFFFF三连阴赋值: 统计3日中满足收盘价<=开盘价的天数>2 AND 1日前的收盘价<2日前的收盘价二缩量赋值:成交量(手)<=1日前的成交量(手) AND 1日前的成交量(手)<2日前的成交量(手)三阴赋值:1日前的ALL(收盘价<1日前的收盘价,2)ANDALL(收阴线,2) AND 收盘价-开盘价的绝对值/开盘价<0.03AND (收盘价-1日前的收盘价)/收盘价*100的7日累和<-8 AND 二缩量 AND 如果收阳线,返回收盘价/开盘价<1日前的开盘价/收盘价,否则返回开盘价/收盘价<1日前的开盘价/收盘价ANDREF(开盘价/收盘价<1日前的开盘价/收盘价,1)当满足条件三阴时,在最高价*1.01位置书写文字,COLOR00DDDD RC1赋值:1日前的收盘价比前跌率赋值:(RC1-收盘价)*100/RC1长上影赋值:(最高价-收盘价和开盘价的较大值)/(最高价-最低价)>=0.618不大跌赋值: 比前跌率<=2长阴短柱赋值:比前跌率>=4 AND 成交量(手)<30日内成交量(手)的最高值/1.9长腿赋值:(收盘价和开盘价的较小值-最低价)/(最高价-最低价)>=0.382点左峰赋值:1XG1赋值: 2日前的长上影AND不大跌>0AND 1日前的长阴短柱>0AND 长腿 AND 点左峰三长假跌赋值: 统计3日中满足XG1的天数当满足条件三长假跌时,在最低价*0.99位置书写文字,COLORF00FF0长阴短柱赋值:收盘价/1日前的收盘价<0.95 AND 成交量(手)<30日内成交量(手)的最高值/1.9当满足条件长阴短柱时,在最低价*0.99位置书写文字假阴真阳赋值:成交量(手)>1日前的成交量(手)*1.5 AND 开盘价>1日前的收盘价 AND 收阴线AND 收盘价>1日前的收盘价当满足条件假阴真阳时,在最低价*0.99位置书写文字假阳真阴赋值:收阳线AND 收盘价<1日前的收盘价当满足条件假阳真阴时,在最高价*1.01位置书写文字程序源码P1:=3;P2:=6;P3:=18;P4:=250;DRAWGBKLAST(C>EMA(C,5) ,STRIP(RGB(0,0,80),RGB(80,0,0), 1));DRAWGBKLAST(C<=EMA(C,5),STRIP(RGB(0,0,80),RGB(40,40, 0),1));DRAWGBKLAST(C<=EMA(C,10),STRIP(RGB(0,0,180),RGB(0,8 0,0),1));DRAWGBKLAST(C<=EMA(C,20),STRIP(RGB(0,0,80),RGB(0,0,0 ),1));{缺口}LL:=REF(L,1);HH:=REF(H,1);SQK:=L>HH;XQK:=H<LL;{DRAWTEXT(SQK,L*0.92,' 上跳'),COLORYELLOW;DRAWTEXT(XQK,H*1.08,' 逃命'),COLORGREEN;}STICKLINE(SQK,L,HH,4*5,1),COLORYELLOW;STICKLINE(XQK,H,LL,4*5,2),COLORGREEN;{红绿三角【副图】}A10304:=REF(HIGH,3)=HHV(HIGH,2*3+1);B10304:=FILTER(A10304,3);C10304:=BACKSET(B10304,3+1);D10304:=FILTER(C10304,3);{高点}A20304:=REF(LOW,3)=LLV(LOW,2*3+1);B20304:=FILTER(A20304,3);C20304:=BACKSET(B20304,3+1);D20304:=FILTER(C20304,3);{低点}E10304:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E20304:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} H10304:=(D10304 AND NOT(D20304 AND E10304>=E20304)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;L10304:=(D20304 AND NOT(D10304 AND E10304=E20304));X10304:=REF(BARSLAST(H10304),1)+1;F10304:=BACKSET(H10304 AND COUNT(L10304,X10304)>0,LLVBARS(IF(L10304,LOW,10000),X10 304));G10304:=F10304>REF(F10304,1);I10304:=BACKSET(G10304,2);LD0304:=I10304>REF(I10304,1);{过滤后低点}L20304:=LD0304 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X20304:=REF(BARSLAST(L20304),1)+1;F20304:=BACKSET(L20304 AND COUNT(H10304,X20304)>0,HHVBARS(IF(H10304,HIGH,0),X2030 4));G20304:=F20304>REF(F20304,1);I20304:=BACKSET(G20304,2);HD0304:=I20304>REF(I20304,1);{过滤后高点}UU0304:=BACKSET(BARSTATUS=2,BARSLAST(LD0304)+1);VV0304:=UU0304>REF(UU0304,1);UU20304:=BACKSET(BARSTATUS=2,BARSLAST(HD0304)+1);VV20304:=UU20304>REF(UU20304,1);{以下语句为三角形部分}底:REF(L,BARSLAST(VV0304)),COLORRED,LINETHICK1;顶:REF(H,BARSLAST(VV20304)),COLORGREEN,LINETHICK1;{下跌三角形:红色三角形画完介入}STICKLINE(VV0304,顶,底,0,0),COLORRED,LINETHICK3;DRAWLINE(VV20304,H,VV0304,L,0),COLORRED,LINETHICK3; {斜}DRAWLINE(VV20304,H,VV0304,顶,0),COLORRED,LINETHICK3;{上涨三角形:绿色三角形画完出局}STICKLINE(VV20304 ,顶,底,0,0),COLORGREEN,LINETHICK2;DRAWLINE(VV0304,L,VV20304,H,0),COLORGREEN,LINETHIC K2;{斜}DRAWLINE(VV0304,L,VV20304,底,0),COLORGREEN,LINETHICK2;{文字}NN304:= DISPSTATUS=2;DRAWTEXT(NN304,底,'底: '+NUMTOSTRN(底,2)+'元'),ALIGN2,COLORRED,LINETHICK1,VALIGN0;DRAWTEXT(NN304,顶,'顶: '+NUMTOSTRN(顶,2)+'元'),ALIGN2,COLORGREEN,LINETHICK1,VALIGN2;{箱体}TY309:=C;HD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=HHV(TY309 ,2*10+1),10),10+1),10);LD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=LLV(TY309,2 *10+1),10),10+1),10);A309:=REF(C,BARSLAST(HD309));B309:=REF(C,BARSLAST(LD309));T1309:=BARSLAST(HD309)<BARSLAST(LD309) AND NOT(HD309) ;T2309:=BARSLAST(HD309)>BARSLAST(LD309) AND NOT(LD309);波浪顶:IF(T1309,A309,A309),COLORCYAN,POINTDOT,LINETHICK2;波浪底:IF(T2309,B309,B309),COLORMAGENTA,POINTDOT,LINETHICK 2;A:=HHV(MA((L+H+C)/3,3),3);B:=LLV(MA((L+H+C)/3,3),10);STICKLINE(DISPSTATUS=2,A,A,20,0),COLORYELLOW,LINETHI CK1;{小箱体--上沿}DRAWTEXT(DISPSTATUS=2 ,A,NUMTOSTRN(A,3)),COLORYE LLOW;STICKLINE(DISPSTATUS=2,B,B,20,0),COLORWHITE,LINETHIC K1;{小箱体--下沿}DRAWTEXT(DISPSTATUS=2,B,NUMTOSTRN(B,3)),COLORWH ITE;K1:=LLV(L,BARSLAST(DISPSTATUS=1)+1);AA1:=COST(95);AA2:=COST(5);LY:=(AA1-AA2)*100/(AA1+AA2);N:=P1;{原码 N:=3;}A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR DISPSTATUS=2 OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR DISPSTATUS=2 OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}R1:=BACKSET(DISPSTATUS=2,BARSLAST(HD)+1);S1:=R1>REF(R1,1); {前一高}T1:=BACKSET(DISPSTATUS=2,BARSLAST(LD)+1);U1:=T1>REF(T1,1); {前一低}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1); {前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1); {前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1); {前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4>REF(T4,1); {前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3>REF(R3,1); {前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);S4:=R4>REF(R4,1); {前四高}DRAWLINE(S2,H,S1,H,1),COLOR80FFFF; {★压力1:}DRAWLINE(U2,L,U1,L,1),POINTDOT,COLOR00FFFF,LINETHIC K1;{★支撑1:}DRAWLINE(S3,H,S2,H,1),COLORFF8000; {★压力2:}DRAWLINE(U3,L,U2,L,1),POINTDOT,COLORFF8000;{★支撑2:} DRAWLINE(S4,H,S3,H,1),COLOR0000FF;{★压力3:}DRAWLINE(U4,L,U3,L,1),POINTDOT,COLOR0000FF;{★支撑3:};DRAWICON(S2,H*1.02,9);{高点红电池}DRAWICON(S3,H*1.02,9);DRAWTEXT(S2,H*1.035,NUMTOSTRN(H,2)),COLORMAGENT A,LINETHICK2;{高价点位}DRAWTEXT(S1,H*1.035,NUMTOSTRN(H,2)),COLORMAGENT A,LINETHICK2;{高价点位}DRAWTEXT(S3,H*1.035,NUMTOSTRN(H,2)),COLORMAGENT A,LINETHICK2;{高价点位}DRAWICON(U1,L*0.98,10); {低点小红旗}DRAWICON(U2,L*0.98,10);{低点小红旗}DRAWICON(U3,L*0.98,10);{低点小红旗}DRAWICON(U4,L*0.98,10);{低点小红旗}DRAWTEXT(U1,L*0.96,NUMTOSTRN(L,2)),COLORCYAN,LINET HICK2;{低价点位}DRAWTEXT(U2,L*0.96,NUMTOSTRN(L,2)),COLORCYAN,LINET HICK2;{低价点位}DRAWTEXT(U3,L*0.96,NUMTOSTRN(L,2)),COLORCYAN,LINET HICK2;{低价点位}DRAWTEXT(U4,L*0.96,NUMTOSTRN(L,2)),COLORCYAN,LINET HICK2;{低价点位}{K线变色}{STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR00880 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR00990 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC0 0;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD 00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;};{基本面}DRAWTEXTABS(20,5,'所属板块:'+BKNAME),COLORYELLOW;流通盘大小:=FINANCE2(37)/1000000*100;DRAWTEXTABS(20,25,'上市日期:'+STR(FINANCE2(2))+'日'),COLORYELLOW;DRAWTEXTABS(180,25,'总股本:'+NUMTOSTR(FINANCE2(35)/10000 )+'亿'),COLORYELLOW;DRAWTEXTABS(320,25,'流通股:'+ NUMTOSTR(CAPITAL/1000000)+'亿'),COLORYELLOW;DRAWTEXTABS(460,25,'限售A股:'+ NUMTOSTR(FINANCE2(41)/10000)+'亿'),COLORYELLOW;每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);每股净资产:=FINANCE2(4);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);每股公积金:=FINANCE2(7);每股未分配:=FINANCE2(8);DRAWTEXTABS(20,45,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),COLORGREEN;DRAWTEXTABS(20,65,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),COLORGREEN;DRAWTEXTABS(20,85,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),COLORGREEN;DRAWTEXTABS(20,105,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),COLORGREEN;DRAWTEXTABS(180,45,'每股收益:'+NUMTOSTRN(每股收益,2)+ '元'),COLORRED;DRAWTEXTABS(180,65,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORRED;DRAWTEXTABS(180,85,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORRED;DRAWTEXTABS(180,105,'每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),COLORRED;N1:=BARSLAST(CROSS(C,MA(C,60)));N2:=BARSLAST(CROSS(MA(C,60),C));建仓成本:=MAXCYC;日换手率:=(VOL*100/CAPITAL);;5日换手率:=SUM(日换手率,5);;5日均量:=DYNAINFO(38);压力位:=DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*1.12;强股排序:=IF(N1<N2,N1+1,0);DRAWTEXTABS(320,45,'日换手率:'+NUMTOSTRN(日换手率,3)),COLORF200F2;DRAWTEXTABS(460,45,'5日换手率:'+NUMTOSTRN(5日换手率,3)),COLORF200F2;DRAWTEXTABS(320,65,'5日均量:'+NUMTOSTRN(5日均量,0)+'手'),COLORF200F2;DRAWTEXTABS(460,65,'平均成本:'+NUMTOSTRN(建仓成本,2)+'元'),COLORF200F2;DRAWTEXTABS(320,85,'股价上穿60均线:'+NUMTOSTRN(强股排序,0)+'天'),COLORF200F2;DRAWTEXTABS(460,85,'心理成本压力:'+NUMTOSTRN(压力位,2)+'元'),COLORF200F2;DRAWTEXTABS(320,105,'上涨家数:'+NUMTOSTRN(INDEXADV,0)),COLORF200F2;DRAWTEXTABS(460,105,'下跌家数:'+NUMTOSTRN(INDEXDEC,0)),COLORF200F2;DRAWTEXTABS(5,260,'【红三角】〓回调企稳形态【突破红三角后的回踩为假摔】〓'),COLORRED,LINETHICK2;DRAWTEXTABS(5,285,'【红三角】〓回调企稳形态【画完介入&突破介入】〓'),COLORRED,LINETHICK2;DRAWTEXTABS(5,310,'【绿三角】〓突破前高形态【画完出局】〓'),COLORGREEN,LINETHICK2;DRAWTEXTABS(5,335,'【绿三角】〓突破前高形态【未突破绿三角顶端的回调为真摔】〓'),COLORGREEN,LINETHICK2;ST:=STRFIND(STKNAME,'ST',1);ZF:=(C-REF(C,1))/REF(C,1)*100;涨停:=IF(ST>0,ZF>=4.94,ZF>=9.88);跌停:=IF(ST>0,ZF<=-4.94,ZF<=-9.88);{涨停金柱}STICKLINE(涨停>=1,O,C,15,0),COLOR004444;STICKLINE(涨停>=1,O,C,13,0),COLOR004444;STICKLINE(涨停>=1,O,C,11,0),COLOR004444;STICKLINE(涨停>=1,O,C,10,0),COLOR004444;STICKLINE(涨停>=1,O,C,7,0),COLOR005555;STICKLINE(涨停>=1,O,C,6,0),COLOR006666;STICKLINE(涨停>=1,O,C,5,0),COLOR007777;STICKLINE(涨停>=1,O,C,4,0),COLOR009999;STICKLINE(涨停>=1,O,C,3,0),COLOR00BBBB;STICKLINE(涨停>=1,O,C,2,0),COLOR00DDDD;STICKLINE(涨停>=1,O,C,1,0),COLOR00FFFF;{DRAWTEXT(涨停>0,L*1.01,'↖涨停'),COLOR00FFFF;}{跌停银柱}STICKLINE(跌停>=1,O,C,15,0),COLOR333333;STICKLINE(跌停>=1,O,C,13,0),COLOR333333;STICKLINE(跌停>=1,O,C,11,0),COLOR333333;STICKLINE(跌停>=1,O,C,10,0),COLOR333333;STICKLINE(跌停>=1,O,C,7,0),COLOR444444;STICKLINE(跌停>=1,O,C,6,0),COLOR555555;STICKLINE(跌停>=1,O,C,5,0),COLOR777777;STICKLINE(跌停>=1,O,C,4,0),COLOR999999;STICKLINE(跌停>=1,O,C,3,0),COLORBBBBBB;STICKLINE(跌停>=1,O,C,2,0),COLORDDDDDD;STICKLINE(跌停>=1,O,C,1,0),COLORFFFFFF;{DRAWTEXT(跌停>0,H*1.01,'↙跌停'),COLORFFFFFF;};{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);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'), COLORD8BFD8;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR00FFFF;}三连阴:={COUNT(C<REF(C,1),3)>2 AND} COUNT(C<=O,3)>2 AND REF(C,1)<REF(C,2);二缩量:=VOL<=REF(VOL,1) AND REF(VOL,1)<REF(VOL,2);三阴:=REF(ALL(C<REF(C,1),2)AND ALL(C<O,2),1) AND ABS(C-O)/O<0.03AND SUM((C-REF(C,1))/C*100,7)<-8 AND 二缩量AND IF(C>O,C/O<REF(O/C,1),O/C<REF(O/C,1))ANDREF(O/C<REF(O/C,1),1);DRAWTEXT(三阴,H*1.01,'三阴'),COLOR00DDDD;{三长假跌}RC1:=REF(C,1);比前跌率:=(RC1-C)*100/RC1;长上影:=(H-MAX(C,O))/(H-L)>=0.618;{这个可自调0.5-0.66}不大跌:= 比前跌率<=2;{这个可自调0.5-3}长阴短柱:=比前跌率>=4 AND V<HHV(V,30)/1.9;长腿:=(MIN(C,O)-L)/(H-L)>=0.382;{这个可自调0.3-0.66}点左峰:=1;{暂时不考虑}XG1:= REF(长上影 AND 不大跌,2)>0AND REF(长阴短柱,1)>0AND 长腿 AND 点左峰;三长假跌:= COUNT(XG1,3);{3天内出现信号选出,这个3可往大调,如果选不出};DRAWTEXT(三长假跌,L*0.99,'三长'),COLORF00FF0;长阴短柱:=C/REF(C,1)<0.95 AND V<HHV(V,30)/1.9;DRAWTEXT(长阴短柱,L*0.99,'长阴短');假阴真阳:=V>REF(V,1)*1.5 AND O>REF(C,1) AND C<O AND C>REF(C,1);DRAWTEXT(假阴真阳,L*0.99,'假阴真阳');假阳真阴:=C>O AND C<REF(C,1);DRAWTEXT(假阳真阴,H*1.01,'假阳真阴');该公式包含未来函数:BACKSET未发现:WINNER...未发现:LWINNER...未发现:PWINNER...该公式包含未来函数:COST该公式包含未来函数:CAPITAL该公式包含未来函数:DYNAINFO该公式包含未来函数:FINANCE未发现:XMA...未发现:#MONTH...未发现:#WEEK...未发现:#YEAR...未发现:DHIGH...未发现:DOPEN...未发现:DLOW...未发现:DCLOSE...未发现:DVOL...未发现:BARSNEXT...未发现:REFX...未发现:REFXV...该公式包含未来函数:DRAWLINE。
通达信 大智慧【趋势主升】主图指标
今天分享一个不错的趋势主升指标,指标是主图指标,通达信和大智慧可以通用,指标是源代码{趋势主升主图}MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);MA250:MA(C,250);MID:=MA(CLOSE,21);风险线:= MA(CLOSE,13);止损线:= MA(CLOSE,27);牛熊线:=EMA(C,250);界:=MA(CLOSE,21);DRAWTEXT(CROSS(MA10,界),(LOW * 0.950),'◇底背离'),COLORWHITE;DRAWTEXT(CROSS(C,止损线)AND 止损线>风险线,(LOW * 0.96),'主升浪'),COLORRED,LINETHICK3;DK:=MA(((SLOPE(C,20)*5)+C),20);DRAWTEXT(CROSS(C,DK),LOW*0.99,'★B'),COLORMAGENTA;DRAWTEXT(CROSS(DK,C),H*1.01,'☆S'),COLORYELLOW;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45上升'),COLORWHITE;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);{}三拾日乖离率:=(C-AA30)/AA30*100;VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);VAR2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;DMR:=FILTER(MR,10);DRAWTEXT(DMR,LOW*0.92,'☆低买'),COLORYELLOW;。
大智慧主图公式
VAR2:=MA(CLOSE,5);
VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;
VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);
VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);
VARA:=IF(VAR3<VAR8 AND REF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));
VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));
VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));
VARD:=IF(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5)));
压力线: VAR11,COLORFF00FF ,LINETHICK2 ;
大智慧绝对厉害的主图指标公式
大智慧绝对厉害的主图指标公式R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);X1:=(C+L+H)/3;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,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);a1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));a2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;a3:=EMA((MA(a1,5)),10);a4:=EMA((MA(a1,15)),10);a5:=EMA((MA(a1,13)),21);a6:=((a3 + a4) + a5) / 3;决策线:EMA((MA(CLOSE,5)),3),linethick2,colorFF0000;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick2,Color3300FF;DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(决策线* 0.95),'决策价:'+决策线),MOVE10,ALIGN2,linethick2,colorRed;{支撑}VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力: REF(HIGH,BARSLAST(Var2222)), POINTDOT,ColorEA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2222)),REF(HIGH, BARSLAST(Var2222)),5,0),LINETHICK3,ColorEA91B5;支撑: REF(LOW,BARSLAST(Var4444)), POINTDOT,Color00b4ff,linethick3;STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4444)),REF(LOW,B ARSLAST(Var4444)),5,0),LINETHICK3,Color00b4ff;弱势双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;强势单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,ColorFF00FF;{老鼠仓}AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1,linethick0;DRAWTEXT(老鼠仓, (LOW* 0.99),'老鼠仓'),LINETHICK3,Color40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;T := BARSLAST(DISPSTATUS=1)+1;HHg := HHV(H, T);ddg := LLV(L, T);{Hk := LL-HH; G12 := LL-HK*1.55; }IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTABS(32,100,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
大智慧VOL抓主升浪指标公式
大智慧VOL抓主升浪指标公式大智慧VOL抓主升浪指标公式来源:Internet,编辑:股旁网,2010-05-24用法:红色持股,青色卖出,更多用法还需自己揣摩。
指标只是参考,重点在于自己怎样操作,准确熟练把握指标的用法,再结合K线知识,正所谓一招鲜吃遍天。
var0:=eMA(vol,20);var1:= var0 + 2*STD(vol,10);var2:=var0 - 2*STD(vol,10);主升浪:STICKLINE(var1>ref(var1,1) ,var1 ,ref(var1,1) ,8 ,1),colorred;STICKLINE(var1<ref(var1,1) ,var1 ,ref(var1,1) ,8 ,1),COLORCY AN;相关文章•大智慧新VOL指标公式•大智慧秘密主升主图指标公式•大智慧异动指标公式•大智慧擒主升浪主图指标公式•大智慧强抓主升主图指标公式•大智慧彩色VOL指标公式•大智慧虚拟VOL指标公式•大智慧OBV+VOL指标公式•大智慧据说是年费200万的主图指标公式•大智慧正大VOL指标公式•大智慧VOL成交量指标公式•大智慧VOL虚拟成交量指标公式•大智慧只做主升浪主图指标公式•大智慧DDXVOL指标公式•大智慧VOL彩带指标公式•大智慧真实VOL指标公式•大智慧捕捉主升浪指标公式•大智慧量价VOL指标公式•大智慧VOL优化指标公式•大智慧VOLK指标公式•大智慧vol+kdj+主力散户买入线指标公式•大智慧VOL主力量指标公式•大智慧VOLL解盘指标公式•大智慧超牛抓主升指标公式•大智慧超强主升浪起爆主图指标公式•大智慧主升浪持仓指标公式•大智慧主升浪主图指标公式•大智慧自用vol指标公式•大智慧VOL立庄量指标公式•大智慧VOL新成交量指标公式月点击榜•大智慧胜利逃亡主图指标公式•大智慧GJ多空线主图指标公式•大智慧不套牢指标公式•大智慧MACD改进指标公式•大智慧TOP伴侣指标公式•大智慧突破天使主图指标公式•大智慧中线逃顶指标公式•大智慧顶底操盘指标公式年点击榜•大智慧有很强的实用指导性主图指标公式•大智慧见红必涨主图指标公式•大智慧私募顶底指标公式•大智慧庄拉黑马线指标公式•大智慧中短波上涨买入主图指标公式•大智慧分时突破主图2指标公式•大智慧买点绝了主图指标公式•大智慧号称百万主图指标公式总点击榜•大智慧专抓涨停的动态买卖公式•大智慧实战很强的公式•大智慧精确买卖分时指标公式•大智慧超级资金指标公式•大智慧没见过这么准的主图指标公式•大智慧大小黑马全拿下公式•大智慧资金进出公式•大智慧买卖天机公式。
波浪理论指标公式(大智慧,通达信)
波浪理论指标公式(大智慧,通达信)大智慧版:pl5:=zig(3,5);en1:=zig(3,5)>ref(zig(3,5),1) andref(zig(3,5),1)ref(zig(3,10),1)and ref(zig(3,10),1)=ref(zig(3,10),3);pl20:=zig(3,26);en3:=zig(3,20)>ref(zig(3,20),1)and ref(zig(3,20),1)=ref(zig(3,20),3);pl40:=zig(3,55);走强一:=BARSLAST(pl5ref(pl10,1),COUNT(en1,走强二),0);ztjd5:=if(pl10>ref(pl10,1),COUNT(ex1,走强二),0);dtjz5:=if(pl10ref(pl20,1),COUNT(ex2,走强三),0);dtjz10:=if(pl20<ref(pl20,1),COUNT(en2,走弱三),0); dtjd10:=if(pl20<ref(pl20,1),COUNT(ex2,走弱三),0); DRAWTEXT(en1and dtjz5=1,LOW*0.98,'(Ⅰ)'),colorffff00;DRAWTEXT(ex1 anddtjd5=2,HIGH*1.02,'(Ⅱ)'),colorffff00;DRAWTEXT(en2 andztjz5=1,LOW*0.98,'(Ⅲ)'),colorffff00;DRAWTEXT(ex1 and pl10>ref(pl10,1) andztjd5=1,HIGH*1.02,'⑴'),color0000ff;DRAWTEXT(en1 and pl10>ref(pl10,1) andztjz5=2,LOW*0.98,'⑵'),color0000ff;DRAWTEXT(ex1 and pl10>ref(pl10,1) andztjz5=2,HIGH*1.02,'⑶'),color0000ff;DRAWTEXT(en1 and pl10>ref(pl10,1) andztjz5=3,LOW*0.98,'⑷'),color0000ff;DRAWTEXT(ex2 and pl20>ref(pl20,1) andztjd10=1,HIGH*1.02,'⑸'),color0000ff; DRAWTEXT(en2 anddtjz10=1,LOW*0.94,'【A】'),color00ff00; DRAWTEXT(ex2 anddtjd10=2,HIGH*1.03,'【B】'),color00ff00; DRAWTEXT(en3 andztjz10=1,LOW*0.94,'【C】'),color00ff00; DRAWTEXT(ex2 and pl20>ref(pl20,1)and ztjd10=1,HIGH*1.04,'①'),Linethick3,color00ffff; DRAWTEXT(en2 andpl20>ref(pl20,1) andztjz10=2,LOW*0.94,'②'),Linethick3,color00ffff; DRAWTEXT(ex2 andpl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2) andex2,HIGH*1.04,'③'),Linethick3,color00ffff;DRAWTEXT(en2 andpl20>ref(pl20,1) andztjz10=3,LOW*0.94,'④'),Linethick3,color00ffff;DMLJ:=HHV(HIGH,120);TY:=CLOSE;HD:=FILTER(BACKSET(FILTER(ref(TY,10)=HHV(TY,2*1 0+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(ref(TY,10)=LLV(TY,2*10 +1),10),10+1),10);A:=ref(CLOSE,BARSLAST(HD));B:=ref(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)BARSLAST(LD) ANDNOT(LD);波浪顶:if(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2; STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:if(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2; VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(L OW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LL V(CLOSE,530))*100;VAR7:=0;VAR8:=MA(HHV(CLOSE-ref(CLOSE,1),0),34)/MA(ABS(C LOSE-ref(CLOSE,1)),7)*100;VAR9:=MA(HHV(CLOSE-ref(CLOSE,1),0),13)/MA(ABS(C LOSE-ref(CLOSE,1)),13)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8LOW+0.04,4,0);VAR11:=zig(3,6)>ref(zig(3,6),1) ANDref(zig(3,6),1)ref(zig(3,22),1) ANDref(zig(3,22),1)ref(zig(3,51),1)AND ref(zig(3,51),1)ref(zig(3,72),1)AND ref(zig(3,72),1)=ref(zig(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1 F,14));VAR21:=CROSS(VAR1E,LOW);买点一:=VAR10;买点二:=(VAR11+VAR13+VAR15+VAR17);卖点一:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买点一AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 ANDVAR20<(-110);VAR1:=MA(CLOSE,6);VAR2:=MA(CLOSE,18);VAR31:=MA(CLOSE,30);VARB1:=SUM(CLOSE*vol*100,28)/SUM(vol*100,28); VARC1:=INTPART(VARB1*100)/100;VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE1:=EMA(VARD1,9);VAR131:=ref(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-VAR131;VAR161:=ref(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-VAR161;VAR191:=OPEN;VAR1A1:=CLOSE;DRAWTEXT(买点一>0,LOW-0.01,'▲买!'),COLORRED; DRAWTEXT(买点二>0,LOW-0.01,'▲买入待涨'),COLORYELLOW;DRAWTEXT(卖点一>0,HIGH+0.1,'▼快卖欲跌'), COLORWHITE;a:=BARSCOUNT(CLOSE);ah:=HHV(HIGH,72);al:=LLV(LOW,72);a0:=(ah-al)/21;b1:=LOW-a0;DRAWTEXT((a+0)/15=FLOOR((a+0)/15),b1-2.5*a0,'▲时窗'),COLORWHITE;var31:=HHVBARS(zig(3, 19)>ref(zig(3,19),1)and ref(zig(3,19),1)<ref(zig(3,19),2),0);STICKLINE(var31=2,LOW*0.95,LOW*0.98,8,0),color0000f f;DRAWTEXT(var31=2,LOW*0.95,'3天'),COLORWHITE; STICKLINE(var31=4,HIGH*1.05,HIGH*1.02,8,0),color996 6ff;DRAWTEXT(var31=4,HIGH*1.06,'5天'),COLORWHITE; STICKLINE(var31=7,LOW*0.95,LOW*0.98,8,0),color00ffff; DRAWTEXT(var31=7,LOW*0.95,'8天'),COLORWHITE; STICKLINE(var31=12,HIGH*1.05,HIGH*1.02,8,0),colorff3 3ff;DRAWTEXT(var31=12,HIGH*1.06,'13天'),COLORWHITE; STICKLINE(var31=20,LOW*0.95,LOW*0.98,8,0),color006 6ff;DRAWTEXT(var31=20,LOW*0.95,'21天'),COLORWHITE; STICKLINE(var31=33,HIGH*1.05,HIGH*1.02,8,0),colorffff 00;DRAWTEXT(var31=33,HIGH*1.06,'34天'),COLORWHITE; STICKLINE(var31=54,LOW*0.95,LOW*0.98,8,0),COLOR WHITE;DRAWTEXT(var31=54,LOW*0.95,'55天'),COLORWHITE; STICKLINE(var31=88,HIGH*1.05,HIGH*1.02,8,0),color00f f00;DRAWTEXT(var31=88,HIGH*1.06,'89天'),COLORWHITE; STICKLINE(var31=143,LOW*0.95,LOW*0.98,8,0),colorccf fff;DRAWTEXT(var31=143,LOW*0.95,'144天'),COLORWHITE;STICKLINE(var31=232,HIGH*1.05,HIGH*1.02,8,0),colorff0033;DRAWTEXT(var31=232,HIGH*1.06,'233天'),COLORWHITE;STICKLINE(var31=376,LOW*0.95,LOW*0.98,8,0),colorff9 966;DRAWTEXT(var31=376,LOW*0.95,'377天'),COLORWHITE;立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2); 雨水:=FILTER(MONTH=2 AND(DAY=18 OR DAY=20),2);惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7),2);春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);清明:=FILTER(MONTH=4 AND(DAY=3 OR DAY=6 ),2);谷雨:=FILTER(MONTH=4 AND (DAY=19 ORDAY=21),2);立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8),2);小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2); 芒种:=FILTER(MONTH=6 AND(DAY=5 OR DAY=7 ),2);夏至:=FILTER(MONTH=6 AND (DAY=20 ORDAY=22),2);小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8),2);大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2); 立秋:=FILTER(MONTH=8 AND(DAY=7 OR DAY=9 ),2);处暑:=FILTER(MONTH=8 AND (DAY=22 ORDAY=24),2);白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9),2);秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2); 寒露:=FILTER(MONTH=10AND (DAY=7 OR DAY=9 ),2);霜降:=FILTER(MONTH=10 AND (DAY=22 ORDAY=24),2);立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9),2);小雪:=FILTER(MONTH=11 AND (DAY=22 ORDAY=24),2);大雪:=FILTER(MONTH=12AND (DAY=6 OR DAY=8 ),2);冬至:=FILTER(MONTH=12 AND (DAY=21 ORDAY=23),2);小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7),2);大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2);DRAWTEXT(立春,HIGH*1.02,'立春'),COLORgreen,ALIGN1;DRAWTEXT(雨水,HIGH*1.02,'雨水'),COLORgreen,ALIGN1;DRAWTEXT(惊蛰,HIGH*1.02,'惊蛰'),COLORgreen,ALIGN1;DRAWTEXT(春分,HIGH*1.02,'春分'),COLORgreen,ALIGN1; DRAWTEXT(清明,HIGH*1.02,'清明'),COLORgreen,ALIGN1; DRAWTEXT(谷雨,HIGH*1.02,'谷雨'),COLORgreen,ALIGN1; DRAWTEXT(立夏,HIGH*1.02,'立夏'),COLORMAGENTA,ALIGN1; DRAWTEXT(小满,HIGH*1.02,'小满'),COLORMAGENTA,ALIGN1; DRAWTEXT(芒种,HIGH*1.02,'芒种'),COLORMAGENTA,ALIGN1; DRAWTEXT(夏至,HIGH*1.02,'夏至'),COLORMAGENTA,ALIGN1; DRAWTEXT(小暑,HIGH*1.02,'小暑'),COLORMAGENTA,ALIGN1; DRAWTEXT(大署,HIGH*1.02,'大署'),COLORMAGENTA,ALIGN1; DRAWTEXT(立秋,HIGH*1.02,'立秋'),COLORYELLOW,ALIGN1; DRAWTEXT(处暑,HIGH*1.02,'处暑'),COLORYELLOW,ALIGN1; DRAWTEXT(白露,HIGH*1.02,'白露'),COLORYELLOW,ALIGN1;DRAWTEXT(秋分,HIGH*1.02,'秋分'),COLORYELLOW,ALIGN1;DRAWTEXT(寒露,HIGH*1.02,'寒露'),COLORYELLOW,ALIGN1;DRAWTEXT(霜降,HIGH*1.02,'霜降'),COLORYELLOW,ALIGN1;DRAWTEXT(立冬,HIGH*1.02,'立冬'),COLORWHITE,ALIGN1;DRAWTEXT(小雪,HIGH*1.02,'小雪'),COLORWHITE,ALIGN1;DRAWTEXT(大雪,HIGH*1.02,'大雪'),COLORWHITE,ALIGN1;DRAWTEXT(冬至,HIGH*1.02,'冬至'),COLORWHITE,ALIGN1;DRAWTEXT(小寒,HIGH*1.02,'小寒'),COLORWHITE,ALIGN1;DRAWTEXT(大寒,HIGH*1.02,'大寒'),COLORWHITE,ALIGN1;GET:ZIG(3,5),COLORWHITE,LINETHICK2; ===============通达信:PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) ANDREF(ZIG(3,5),1)REF(ZIG(3,10),1)AND REF(ZIG(3,10),1)=REF(ZIG(3,10),3);PL20:=ZIG(3,26);EN3:=ZIG(3,20)>REF(ZIG(3,20),1)AND REF(ZIG(3,20),1)=REF(ZIG(3,20),3);PL40:=ZIG(3,55);走强一:=BARSLAST(PL5REF(PL10,1),COUNT(EN1,走强二),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二),0);DTJZ5:=IF(PL10REF(PL20,1),COUNT(EX2,走强三),0); DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0); DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0); DRAWTEXT(EN1AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00; DRAWTEXT(EX1 ANDDTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00; DRAWTEXT(EN2 ANDZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) ANDZTJD5=1,HIGH*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) ANDZTJZ5=2,LOW*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) ANDZTJZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) ANDZTJZ5=3,LOW*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) ANDZTJD10=1,HIGH*1.02,'⑸'),COLOR0000F F; DRAWTEXT(EN2 ANDDTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00; DRAWTEXT(EX2 ANDDTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00; DRAWTEXT(EN3 ANDZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00; DRAWTEXT(EX2 AND PL20>REF(PL20,1)ANDZTJD10=1,HIGH*1.04,'①'),LINETHICK3,COLOR00FFFF; DRAWTEXT(EN2 ANDPL20>REF(PL20,1) ANDZTJZ10=2,LOW*0.94,'②'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 ANDPL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) ANDEX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF; DRAWTEXT(EN2 ANDPL20>REF(PL20,1) ANDZTJZ10=3,LOW*0.94,'④'),LINETHICK3,COLOR00FFFF; DMLJ:=HHV(HIGH,120);TY:=CLOSE;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*1 0+1),10),10+1),10);A:=REF(CLOSE,BARSLAST(HD));B:=REF(CLOSE,BARSLAST(LD));T1:=BARSLAST(HD)BARSLAST(LD) ANDNOT(LD);波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2; STICKLINE(T1,A,A,9,0),COLORFF00FF;波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(L OW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LL V(CLOSE,530))*100;VAR7:=0;VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS( CLOSE-REF(CLOSE,1)),7)*100;VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS( CLOSE-REF(CLOSE,1)),13)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)REF(ZIG(3,51),1)AND REF(ZIG(3,51),1)REF(ZIG(3,72),1)AND REF(ZIG(3,72),1)=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1 F,14));VAR21:=CROSS(VAR1E,LOW);买点一:=VAR10;买点二:=(VAR11+VAR13+VAR15+VAR17);卖点一:=(VAR12+VAR14+VAR16+VAR18);VAR22:=买点一AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 ANDVAR20<(-110);VAR1:=MA(CLOSE,6);VAR2:=MA(CLOSE,18);VAR31:=MA(CLOSE,30);VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28); VARC1:=INTPART(VARB1*100)/100;VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE1:=EMA(VARD1,9);VAR131:=REF(VARE1,1);VAR141:=VARE1;VAR151:=VAR141-VAR131;VAR161:=REF(VARD1,1);VAR171:=VARD1;VAR181:=VAR171-VAR161;VAR191:=OPEN;VAR1A1:=CLOSE;DRAWTEXT(买点一>0,LOW-0.01,'▲买!'),COLORRED; DRAWTEXT(买点二>0,LOW-0.01,'▲买入待涨'),COLORYELLOW;DRAWTEXT(卖点一>0,HIGH+0.1,'▼快卖欲跌'), COLORWHITE;A1:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,72);AL:=LLV(LOW,72);A0:=(AH-AL)/21;B1:=LOW-A0;DRAWTEXT((A1+0)/15=FLOOR((A1+0)/15),B1-2.5*A0,'▲时窗'),COLORWHITE;VAR51:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1)AND REF(ZIG(3,19),1)<REF(ZIG(3,19),2),0);STICKLINE(VAR51=2,LOW*0.95,LOW*0.98,8,0),COLOR 0000FF;DRAWTEXT(VAR51=2,LOW*0.95,'3天'),COLORWHITE; STICKLINE(VAR51=4,HIGH*1.05,HIGH*1.02,8,0),COLOR 9966FF;DRAWTEXT(VAR51=4,HIGH*1.06,'5天'),COLORWHITE; STICKLINE(VAR51=7,LOW*0.95,LOW*0.98,8,0),COLOR 00FFFF;DRAWTEXT(VAR51=7,LOW*0.95,'8天'),COLORWHITE; STICKLINE(VAR51=12,HIGH*1.05,HIGH*1.02,8,0),COLO RFF33FF;DRAWTEXT(VAR51=12,HIGH*1.06,'13天'),COLORWHITE;STICKLINE(VAR51=20,LOW*0.95,LOW*0.98,8,0),COLO R0066FF;DRAWTEXT(VAR51=20,LOW*0.95,'21天'),COLORWHITE;STICKLINE(VAR51=33,HIGH*1.05,HIGH*1.02,8,0),COLO RFFFF00;DRAWTEXT(VAR51=33,HIGH*1.06,'34天'),COLORWHITE;STICKLINE(VAR51=54,LOW*0.95,LOW*0.98,8,0),COLORWHITE;DRAWTEXT(VAR51=54,LOW*0.95,'55天'),COLORWHITE;STICKLINE(VAR51=88,HIGH*1.05,HIGH*1.02,8,0),COLO R00FF00;DRAWTEXT(VAR51=88,HIGH*1.06,'89天'),COLORWHITE;STICKLINE(VAR51=143,LOW*0.95,LOW*0.98,8,0),COLO RCCFFFF;DRAWTEXT(VAR51=143,LOW*0.95,'144天'),COLORWHITE;STICKLINE(VAR51=232,HIGH*1.05,HIGH*1.02,8,0),COLORFF0033; DRAWTEXT(VAR51=232,HIGH*1.06,'233天'),COLORWHITE;STICKLINE(VAR51=376,LOW*0.95,LOW*0.98,8,0),COLO RFF9966;DRAWTEXT(VAR51=376,LOW*0.95,'377天'),COLORWHITE;立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2); 雨水:=FILTER(MONTH=2 AND(DAY=18 OR DAY=20),2);惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7),2);春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2); 清明:=FILTER(MONTH=4 AND(DAY=3 OR DAY=6 ),2);谷雨:=FILTER(MONTH=4 AND (DAY=19 ORDAY=21),2);立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8),2);小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2); 芒种:=FILTER(MONTH=6 AND(DAY=5 OR DAY=7 ),2);夏至:=FILTER(MONTH=6 AND (DAY=20 ORDAY=22),2);小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8),2);大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2); 立秋:=FILTER(MONTH=8 AND(DAY=7 OR DAY=9 ),2);处暑:=FILTER(MONTH=8 AND (DAY=22 ORDAY=24),2);白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9),2);秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2); 寒露:=FILTER(MONTH=10AND (DAY=7 OR DAY=9 ),2);霜降:=FILTER(MONTH=10 AND (DAY=22 ORDAY=24),2);立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9),2);小雪:=FILTER(MONTH=11 AND (DAY=22 ORDAY=24),2);大雪:=FILTER(MONTH=12AND (DAY=6 OR DAY=8 ),2);冬至:=FILTER(MONTH=12 AND (DAY=21 ORDAY=23),2);小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7),2);大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2); DRAWTEXT(立春,HIGH*1.02,'立春');DRAWTEXT(雨水,HIGH*1.02,'雨水');DRAWTEXT(惊蛰,HIGH*1.02,'惊蛰');DRAWTEXT(春分,HIGH*1.02,'春分');{由于通达信只能显示50个,以下部分要删掉!!}{DRAWTEXT(清明,HIGH*1.02,'清明'); DRAWTEXT(谷雨,HIGH*1.02,'谷雨'),;DRAWTEXT(立夏,HIGH*1.02,'立夏'),;DRAWTEXT(小满,HIGH*1.02,'小满'),;DRAWTEXT(芒种,HIGH*1.02,'芒种'),;DRAWTEXT(夏至,HIGH*1.02,'夏至'),;DRAWTEXT(小暑,HIGH*1.02,'小暑'),;DRAWTEXT(大署,HIGH*1.02,'大署'),;DRAWTEXT(立秋,HIGH*1.02,'立秋'),;DRAWTEXT(处暑,HIGH*1.02,'处暑'),;DRAWTEXT(白露,HIGH*1.02,'白露'),;DRAWTEXT(秋分,HIGH*1.02,'秋分'),;DRAWTEXT(寒露,HIGH*1.02,'寒露'),;DRAWTEXT(霜降,HIGH*1.02,'霜降'),;DRAWTEXT(立冬,HIGH*1.02,'立冬'),;DRAWTEXT(小雪,HIGH*1.02,'小雪'),;DRAWTEXT(大雪,HIGH*1.02,'大雪'),;DRAWTEXT(冬至,HIGH*1.02,'冬至'),;DRAWTEXT(小寒,HIGH*1.02,'小寒'),;DRAWTEXT(大寒,HIGH*1.02,'大寒'),;}GET:ZIG(3,5),COLORWHITE,LINETHICK2;。
大智慧数浪强弱主图指标公式源码编程思路破译和风险提示
大智慧数浪强弱主图指标公式源码编程思路破译和风险提示编程思路破译输出GET:收盘价5%的之字转向,线宽为2,画黄色PL5赋值:收盘价5%的之字转向EN1赋值:PL5>1日前的PL5 AND 1日前的PL5<=2日前的PL5 AND 2日前的PL5<=3日前的PL5EX1赋值:PL5<1日前的PL5 AND 1日前的PL5>=2日前的PL5 AND 2日前的PL5>=3日前的PL5PL10赋值:收盘价10%的之字转向EN2赋值:PL10>1日前的PL10 AND 1日前的PL10<=2日前的PL10 AND 2日前的PL10<=3日前的PL10EX2赋值:PL10<1日前的PL10 AND 1日前的PL10>=2日前的PL10 AND 2日前的PL10>=3日前的PL10PL20赋值:收盘价20%的之字转向EN3赋值:PL20>1日前的PL20 AND 1日前的PL20<=2日前的PL20 AND 2日前的PL20<=3日前的PL20EX3赋值:PL20<1日前的PL20 AND 1日前的PL20>=2日前的PL20 AND 2日前的PL20>=3日前的PL20走强1赋值:上次PL5<1日前的PL5距今天数走弱1赋值:上次PL5>1日前的PL5距今天数走强2赋值:上次PL10<1日前的PL10距今天数走弱2赋值:上次PL10>1日前的PL10距今天数走强3赋值:上次PL20<1日前的PL20距今天数走弱3赋值:上次PL20>1日前的PL20距今天数ZTJZ5赋值:如果PL10>1日前的PL10,返回统计走强2日中满足EN1的天数,否则返回0ZTJD5赋值:如果PL10>1日前的PL10,返回统计走强2日中满足EX1的天数,否则返回0DTJZ5赋值:如果PL10<1日前的PL10,返回统计走弱2日中满足EN1的天数,否则返回0DTJD5赋值:如果PL10<1日前的PL10,返回统计走弱2日中满足EX1的天数,否则返回0ZTJZ10赋值:如果PL20>1日前的PL20,返回统计走强3日中满足EN2的天数,否则返回0ZTJD10赋值:如果PL20>1日前的PL20,返回统计走强3日中满足EX2的天数,否则返回0DTJZ10赋值:如果PL20<1日前的PL20,返回统计走弱3日中满足EN2的天数,否则返回0DTJD10赋值:如果PL20<1日前的PL20,返回统计走弱3日中满足EX2的天数,否则返回0当满足条件EN1ANDDTJZ5=1时,在最低价*0.98位置书写文字,COLORFFFF00当满足条件EX1ANDDTJD5=2时,在最高价*1.02位置书写文字,COLORFFFF00当满足条件EN2ANDZTJZ5=1时,在最低价*0.98位置书写文字,COLORFFFF00当满足条件EX1ANDPL10>1日前的PL10ANDZTJD5=1时,在最高价*1.02位置书写文字,COLOR0000FF当满足条件EN1ANDPL10>1日前的PL10ANDZTJZ5=2时,在最低价*0.98位置书写文字,COLOR0000FF当满足条件EX1ANDPL10>1日前的PL10ANDZTJZ5=2时,在最高价*1.02位置书写文字,COLOR0000FF当满足条件EN1ANDPL10>1日前的PL10ANDZTJZ5=3时,在最低价*0.98位置书写文字,COLOR0000FF当满足条件EX2ANDPL20>1日前的PL20ANDZTJD10=1时,在最高价*1.02位置书写文字,COLOR0000FF当满足条件EN2ANDDTJZ10=1时,在最低价*0.9位置书写文字,画红色当满足条件EX2ANDDTJD10=2时,在最高价*0.9位置书写文字,画红色当满足条件EN3ANDZTJZ10=1时,在最低价*0.9位置书写文字,画红色当满足条件EX2ANDPL20>1日前的PL20ANDZTJD10=1时,在最高价*1.06位置书写文字,线宽为2,COLOR00FFFF当满足条件EN2ANDPL20>1日前的PL20ANDZTJZ10=2时,在最低价*0.94位置书写文字,线宽为2,COLOR00FFFF当满足条件EX2ANDPL20>1日前的PL20ANDZTJD10=2OR(ZTJD10=0ORZTJD10=2)ANDEX2时,在最高价*1.06位置书写文字,线宽为2,COLOR00FFFF当满足条件EN2ANDPL20>1日前的PL20ANDZTJZ10=3时,在最低价*0.94位置书写文字,线宽为2,COLOR00FFFF程序源码GET:ZIG(3,5),LINETHICK2,COLORYELLOW;PL5:=ZIG(3,5);EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3);PL10:=ZIG(3,10);EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);PL20:=ZIG(3,20);EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFF00;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.9,'Ⅰ'),COLORRED;DRAWTEXT(EX2 AND DTJD10=2,H*0.9,'Ⅱ'),COLORRED;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.9,'Ⅲ'),COLORRED;DRAWTEXT(EX2 AND PL20>REF(PL20,1) ANDZTJD10=1,H*1.06,'①'),LINETHICK2,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),LINETHICK2,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③'),LINETHICK2,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④'),LINETHICK2,COLOR00FFFF;风险提示该公式包含未来函数:ZIG。