大智慧缺口画线主图指标公式

合集下载

大智慧dmi公式

大智慧dmi公式

大智慧dmi公式
大智慧(DMI)指的是趋势指标动向指标(Directional Movement Indicator)的一种应用。

DMI公式包括以下几个部分:
1. 真实范围(TR,True Range):TR表示当前价格与前一日最高价和最低价之间的最大差值。

计算公式为:TR = Max(High - Low, abs(High - Close_prev), abs(Low - Close_prev))
2. 方向线(DM,Directional Movement):DM表示价格上涨或下跌的方向。

根据当天最高价、最低价和前一天的最高价、最低价之间的关系进行计算。

如果当天的上涨幅度(High - High_prev)大于当天的下跌幅度(Low_prev - Low),则DM为当天的上涨幅度;如果当天的下跌幅度大于上涨幅度,则DM为当天的下跌幅度;如果上涨和下跌幅度相等,则DM为0。

3. 正向指标(+DI,Positive Directional Indicator):+DI表示上升方向线(+DM)的移动平均值与真实范围(TR)的比率。

计算公式为:+DI = MA(+DM) / TR * 100
4. 负向指标(-DI,Negative Directional Indicator):-DI表示下降方向线(-DM)的移动平均值与真实范围(TR)的比率。

计算公式为:-DI = MA(-DM) / TR * 100。

缺口主图公式通达信指标公式源码

缺口主图公式通达信指标公式源码

【缺口主图公式】未回补的最后一个向上跳空缺口和向下跳空缺口公式源码TS:=CURRBARSCOUNT;TS1:=BARSSINCE(C);常数:=CONST(BARSSINCE(C));C1:=REFX(C,常数-TS1*2+2);C2:=REF(C,常数-TS*2+2);O1:=REFX(O,常数-TS1*2+2);O2:=REF(O,常数-TS*2+2);H1:=REFX(H,常数-TS1*2+2);H2:=REF(H,常数-TS*2+2);L1:=REFX(L,常数-TS1*2+2);L2:=REF(L,常数-TS*2+2);CC:=IF(TS>TS1,C1,C2);OO:=IF(TS>TS1,O1,O2);LL:=IF(TS>TS1,L1,L2);HH:=IF(TS>TS1,H1,H2);回补上缺口:=HH<REF(LL,1);信号1:=回补上缺口AND REF(LLV(LL,TS1),1)>HH;返信号1:=CROSS(SUM(信号1,TS1)=1,0.5);低价:=IF(返信号1,REF(LLV(LL,TS1),1),0);低价横线:=REF(低价,BARSLAST(返信号1));正信号:=REF(HH,BARSLAST(返信号1))=H AND REF(LL,BARSLAST(返信号1))=L ANDREF(CC,BARSLAST(返信号1))=C AND REF(OO,BARSLAST(返信号1))=O;天天1:=BARSLAST(正信号);缺口上1:REF(低价横线,天天1);缺口下1:REF(H,天天1);DRAWBAND(低价横线,RGB(128,128,128),REF(H,天天1),RGB(128,128,128));。

大智慧公式集锦之主图

大智慧公式集锦之主图

大智慧公式集锦之主图{三线玄机}MA3:MA(CLOSE,5),colorred;MA4:MA(CLOSE,6),colorred;MA5:MA(CLOSE,7),colorred;MA6:MA(CLOSE,8),colorred;MA7:MA(CLOSE,9),colorred;MA8:MA(CLOSE,10),colorred;MA9:MA(CLOSE,11),colorred;MA10:MA(CLOSE,12),colorred;MA11:MA(CLOSE,13),colorred;MA12:MA(CLOSE,14),colorred;MA13:MA(CLOSE,15),colorred;MA14:MA(CLOSE,21);洼: IF(MA14>MA3,MA3,MA14),coloryellow;洼1: IF(MA14>MA4,MA4,MA14),coloryellow;洼2: IF(MA14>MA5,MA5,MA14),coloryellow;洼3: IF(MA14>MA6,MA6,MA14),coloryellow;洼4: IF(MA14>MA7,MA7,MA14),coloryellow;洼5: IF(MA14>MA8,MA8,MA14),coloryellow;洼6: IF(MA14>MA9,MA9,MA14),coloryellow;洼7: IF(MA14>MA10,MA10,MA14),coloryellow; 洼8: IF(MA14>MA11,MA11,MA14),coloryellow; 洼9: IF(MA14>MA12,MA12,MA14),coloryellow; 洼10: IF(MA14>MA13,MA13,MA14),coloryellow; {可取之处在于运用IF引用函数将均线变色}====================={三线开花趋势王}线A1:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3,COLOR00F F00;线A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,3 0)+MA(CLOSE,60)+MA(CLOSE,120))/6,COLOR00FF00;线A3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3,COLOR 00FF00,linethick2;线A4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;Stickline(线A1>线A4,线A1,线A4,0.1,1),ColorFF0080;Stickline(线A1<线A4,线A1,线A4,0.1,1),COLOR00FF00;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);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);STICKLINE(t1,A,A,9,0),ColorFF00FF;STICKLINE(t2,B,B,9,0),Color80FF00;STICKLINE(C>O OR (C=O AND C>REF(C,1)),H,L,0.1,0),COLORRED;STICKLINE(C>O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE(C<O OR (C=O AND C<=REF(C,1)),H,L,0.1,0),COLORFFEEAF;STICKLINE(C<O OR (C=O AND C<=REF(C,1)),O,C,4,0),COLORFFEEAF;线1:IF(线A1<线A3,线A1,线A3),COLOR00FF00;IF(线A1<线A3,线A3,线A1),COLORRED;线2:IF(线A2<线A3,线A2,线A3),COLOR00FF00;IF(线A2<线A3,线A3,线A2),COLORRED;线3:IF(线A3<线A1,线A3,线A3),COLOR00FF00,LINETHICK2;IF(线A1<线A3,线A3,线A3),COLORRED,linethick2;DRAWICON(CROSS(线A1,线A4),线A1,1);ss1:=(LOW+HIGH+CLOSE*2)/4;ss2:= MA(ss1,4);ss3:=HHV(ss2,10);ss4:=ma(ss3,3);ss5:=1.25*ss4-0.25*ss3;kki:=if(ss5>ss3,ss3,ss5);ff1:=LLV(ss2,10);ff2:=ma(ff1,3);ff3:=1.25*ff2-0.25*ff1;kkj:=if(ff3<ff1,ff1,ff3);ma13:=ma(c,13);zdhm:=cross(c,kkj) and cross(c,ma13) and cross(c,kki);zhm:=cross(c,ma13) and cross(c,kki);黑马:if(zdhm or zhm,l,h),colorwhite,pointdot;STICKLINE(zdhm or zhm,h,l,0,1),colorwhite,linethick2;STICKLINE(zdhm or zhm,o,c,4,1),colorwhite,linethick2;======================--------------------------------------------------------------------------------{乾坤线主图 AA:1 10 5 BB:1 100 15 M2:1 100 3 M22:1 100 8} MID:=MA(CLOSE,20);UPPER:=MID+2*STD(CLOSE,20);LOWER:=MID-2*STD(CLOSE,20);V1:=(CLOSE-LOWER)/(UPPER-LOWER)*100;V2:=V1-EMA(V1,5);K1:=SUM(LLV(V2,4),4)/4;V3:=EMA(V2,64)*10;V4:=EMA(0.4*V2*(-1),3);V5:=-1*EMA(V2,39)*10;A:=V3>10;B:=V2>V4;D:=V5>10;E:=V3<=10 OR V2<=V4 OR V5<=10;KS:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);RKS:=REF(KS,1);MLS:=RKS/KS>1.23 AND RKS>13 AND CLOSE/REF(CLOSE,1)>1.03;STICKLINE(C>=O AND E,H,L,0,0),COLORRED;STICKLINE(C>=O AND E,C,O,4,0),COLORRED;STICKLINE(C<O AND E,H,L,0,0),COLOR00FF00;STICKLINE(C<O AND E,C,O,4,0),COLOR00FF00;STICKLINE(O>C AND A,L,H,0,0),COLORYELLOW;STICKLINE(O>C AND A,C,O,4,0),COLORYELLOW;STICKLINE(O<=C AND A,L,H,0,0),COLORYELLOW;STICKLINE(O<=C AND A,C,O,4,1),COLORYELLOW;STICKLINE(O>C AND B,L,H,0,0),COLORRED;STICKLINE(O>C AND B,C,O,4,0),COLORRED;STICKLINE(O<=C AND B,L,H,0,0),COLORRED;STICKLINE(O<=C AND B,C,O,4,1),COLORRED;STICKLINE(O>C AND D,L,H,0,0),COLORFFCC66;STICKLINE(O>C AND D,C,O,4,0),COLORFFCC66;STICKLINE(O<=C AND D,L,H,0,0),COLORFFCC66;STICKLINE(O<=C AND D,C,O,4,1),COLORFFCC66;超跌:IF(KS>13,低,高),COLORWHITE,POINTDOT;STICKLINE(KS>13,高,低,0,1),colorwhite,linethick2;反弹:IF(MLS=1,高,低),COLORFF00FF,POINTDOT;STICKLINE(MLS=1,高,低,0,1),colorff00ff,linethick2;STICKLINE(KS>13,开,收,4,1),colorwhite,linethick2;STICKLINE(MLS=1,开,收,4,1),colorff00ff,linethick2;tj1:=SLOPE(EMA(CLOSE,2),aa)*bb+CLOSE ;s:=EMA(SLOPE(CLOSE,5)/REF(CLOSE,14),3)*302 ;t1:=BARSLAST(CROSS(CLOSE,KS));t2:=BARSLAST(CROSS(KS,CLOSE));红跟入:IF(CLOSE>KS ,REF(CLOSE,t1),REF(CLOSE,t1)),COLORRED,POIN TDOT;STICKLINE(CLOSE>KS ,REF(CLOSE,t1),REF(CLOSE,t1),1,0),line thick6,colorred;黄洗盘:IF(CLOSE>KS and CLOSE<REF(CLOSE,t1),REF(CLOSE,t1),REF(CLOSE,t1)),COLORYELL OW,POINTDOT;STICKLINE(CLOSE>KS and CLOSE<REF(CLOSE,t1),REF(CLOSE,t1),REF(CLOSE,t1),1,0),linethick 6,coloryellow;灰下跌:IF(CLOSE<KS,REF(CLOSE,t2),REF(CLOSE,t2)),COLORFFCC66,PO INTDOT;STICKLINE(CLOSE<KS,REF(CLOSE,t2),REF(CLOSE,t2),1,0),linet hick6,COLORFFCC66;鄂:REF(CLOSE,t1),linethick1,colorblue;圆圈:REF(CLOSE,t2),linethick1,colorwhite;================================{黄金箱 n1:0 100 4}上收:=c;上开:=o;上高:=h;上低:=l;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,N1);B:=REF(A,1);智能黄金线:A,POINTDOT,COLORYELLOW;B,POINTDOT,COLORYELLOW;STICKLINE(A>B,A,B,5,0),COLORYELLOW;STICKLINE(A<B,A,B,5,0),COLORBLUE;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA2,VA1),h,''★''),COLORYELLOW;DRAWTEXT(CROSS(VA2,VA1),h+0.09,''止损''),COLORYELLOW;DRAWTEXT(CROSS(VA1,VA2),L,''★''),COLORWHITE;DRAWTEXT(CROSS(VA1,VA2),L-0.09,''买入''),COLORWHITE;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);t1:=MA(上收,20)>=REF(MA(上收,20),1);t2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND t1;t3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00;t4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;t5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;DRAWICON(t2 OR t4,l,1);DRAWICON(t3 OR t5,h,2);Var1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;Var2:=SMA(Var1,3,1);Var3:=SMA(Var2,3,1);Var4:=SMA(Var3,3,1);DRAWTEXT(CROSS(Var3,Var4) AND Var3<40,箱底,''逢低吸呐''),COLORf00ff0;DRAWTEXT(CROSS(Var4,Var3) AND Var4>75 ,箱顶*1.02,''逢高减磅''),COLORf0f000;======================={垂帘听股主图}MA5:=MA(C,5);a:=(3*c+l+o+h)/6;垂帘:(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref( a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10) +9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15) +4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/210,COLORR ED,POINTDOT;听股:ma(垂帘,13),colorffcccc,circledot;zar1:=SLOPE(EMA(CLOSE,2),5)*15+C;zar2:=EMA(zar1,5);zarA:=EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(zar2,5),5), 5),5),5),5),5),5);zarB:=BARSLAST(CROSS(CLOSE,zarA));zarC:=BARSLAST(CROSS(zarA,CLOSE));STICKLINE(CLOSE<zarA,REF(CLOSE,zarC),REF(CLOSE,zarC),1 2,0),linethick2,colorFFCCCC;上涨:if(CLOSE>zarA ANDCLOSE>REF(CLOSE,zarB),REF(CLOSE,zarB),REF(CLOSE,zarB)),COL ORFFC8FF,pointdot;STICKLINE(CLOSE>zarA AND CLOSE>REF(CLOSE,zarB),REF(CLOSE,zarB),垂帘,1,0),colorFFC8FF;STICKLINE(CLOSE>zarA AND CLOSE>REF(CLOSE,zarB),REF(CLOSE,zarB),REF(CLOSE,zarB),12,0), COLORFFC8FF,LINETHICK2;止盈止损:IF(CLOSE<zarA AND CLOSE<REF(CLOSE,zarC),REF(CLOSE,zarC),REF(CLOSE,zarC)),COL OR00FF00,POINTDOT;STICKLINE(CLOSE<zarA AND CLOSE<REF(CLOSE,zarC),REF(CLOSE,zarC),垂帘,1,0),COLOR00FF00;VAR41:= EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);VAR42:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);VAR4A:=REF(VAR41,1)>92 AND VAR41<92;DRAWTEXT(VAR4A,H+0.12,''短卖''),COLOR00FF00;DRAWTEXT(VAR4A,H+0.05,''●''),COLOR00FF00;STICKLINE(C>=O,H,L,0,0),colorred;STICKLINE(C<O,H,L,0,0),colorFFFF52;STICKLINE(C>=O,C,O,4,1),colorred;STICKLINE(C<O,C,O,4,0),colorFFFF52;MA13:MA(C,13),COLORWHITE,LINETHICK2;MA55:MA(C,55),COLORFF00FF;MA125:MA(C,125),COLORFFCC66;MA250:MA(C,250),COLORBLUE;STICKLINE(cross(ma5,听股) and ma5>听股and c>o,ma13,ma13-0.09,4,0),coloryellow;DRAWTEXT(cross(ma5,听股) and ma5>听股and c>o,ma13-0.12,''垂帘听股''),coloryellow;{这个指标的图形比较形象,当浅粉色帘低垂时正是阳光普照之时,反映在股票上就是一波阳多阴少开始上升的趋势,如果出现垂帘听股信号,这个时候买入再加上有浅粉色垂帘相映一定会心情不错吧!当绿色帘低垂时,预示着明媚的阳光即将被乌云遮盖,随之而来的阴雨绵绵,反映在股票上就是阴多阳少或者连续阴跌,这可不是踏青赏绿的时候,而是止盈止损保住钱袋子,这才是英明的选择,此时应该结束垂帘听股.}==============================={卷帘操作}Var2:=EMA(SLOPE(EMA(CLOSE,20),10)*34+CLOSE,30);Var3:=EMA(Var2,3);Var4:=EMA(Var3,3);Var5:=EMA(Var4,3);Var6:=EMA(Var5,3);Va7:=EMA(Var6,3);VAR7:=EMA(Va7,3);VA8:=EMA(VAR7,3);Var8:=EMA(VA8,3);Var9:=EMA(Var8,3);VarA:=BARSLAST(CROSS(CLOSE,Var9));VarB:=BARSLAST(CROSS(Var9,CLOSE));卷帘操作:IF(CLOSE>Var9 AND CLOSE>REF(CLOSE,VarA),REF(CLOSE,VarA),REF(CLOSE,VarA)),CO LORFFC8FF,POINTDOT;STICKLINE(CLOSE>Var9 AND CLOSE>REF(CLOSE,VarA),REF(CLOSE,VarA),LOW*1,00,1),COLORF FC8FF;强:IF(CLOSE<Var9 ANDCLOSE<REF(CLOSE,VarB),REF(CLOSE,VarB),REF(CLOSE,VarB)),COL OR0099FF,POINTDOT;STICKLINE(CLOSE<Var9 AND CLOSE<REF(CLOSE,VarB),REF(CLOSE,VarB),HIGH*1,0,1),COLOR00 FF00;势:IF(CLOSE>Var9 AND CLOSE<REF(CLOSE,VarA),REF(CLOSE,VarA),REF(CLOSE,VarA)),CO LORWHITE,POINTDOT;STICKLINE(CLOSE>Var9 AND CLOSE<REF(CLOSE,VarA),REF(CLOSE,VarA),LOW*1.02,0,1),COLOR FFCCCC;垂帘休息:IF(CLOSE>Var9 AND CLOSE<REF(CLOSE,VarA),REF(CLOSE,VarA),REF(CLOSE,VarA)),CO LOR00ff00,POINTDOT;STICKLINE(CLOSE>Var9 AND CLOSE<REF(CLOSE,VarA),REF(CLOSE,VarA),REF(CLOSE,VarA),6,1), COLOR00FF00;沉:IF(CLOSE<Var9,REF(CLOSE,VarB),REF(CLOSE,VarB)),ColorB 3B3B3,POINTDOT;STICKLINE(CLOSE<Var9,REF(CLOSE,VarB),REF(CLOSE,VarB),1 6,0),ColorB3B3B3,linethick2;STICKLINE(CLOSE>Var9,REF(CLOSE,VarA),REF(CLOSE,VarA),1 6,0),COLORBLUE,linethick2;STICKLINE(C>=O,H,L,0,0),colorred;STICKLINE(C<O,H,L,0,0),colorFFFF52;STICKLINE(C>=O,C,O,4,1),colorred;STICKLINE(C<O,C,O,4,0),colorFFFF52;x5:HHV((REF(CLOSE,1)+REF(CLOSE,2)+REF(CLOSE,3)+REF(CL OSE,4))/4,5),COLOR00FF00;x10:HHV((REF(CLOSE,2)+REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5))/4,10),COLORyellow;x20:HHV((REF(CLOSE,3)+REF(CLOSE,4)+REF(CLOSE,5)+REF(C LOSE,6))/4,20),COLORFF00FF;BY:=CROSS(C,X5) AND CROSS(C,X10) AND CROSS(C,X20) AND C/REF(C,1)>1.015;BH:=CROSS(X5,X10) AND C>O;STICKLINE(BY OR BH,L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(BY OR BH,L-0.12,''操作''),COLORYELLOW;DDC:=CROSS(X5,C) AND CROSS(X10,C) AND CROSS(X20,C);DRAWTEXT(DDC,H+0.15,''●''),COLOR00FF00;{指标要点:卷帘操作,垂帘休息.指标原理:X5、X10、X20均线依次取前4天平均值的5、10、20天最高值,通过运算显示出不同于其它均线运行的趋势,当三条均线由下或由上发散粘合时,股价在不同周期内的最高值趋于一致,股价变动的几率比较大。

大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)

大智慧七种技术指标主图指标公式(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. 做空95:HHV((HIGH+LOW+OPEN+2CLOSE)/5+H-L,5),颜色为蓝色。

2. 做空68:HHV((HIGH+LOW+OPEN+2CLOSE)/52-L,5),颜色为红色。

3. 平衡点:LLV((HIGH+LOW+OPEN+2CLOSE)/5,3),颜色为灰色,DOTLINE。

4. 做多68:LLV((HIGH+LOW+OPEN+2CLOSE)/52-H,8),颜色为绿色。

5. 做多95:LLV((HIGH+LOW+OPEN+2CLOSE)/5-H+L,8),颜色为浅绿色。

6. F:=100(C-REF(C,1))/REF(C,1),表示当前收盘价与前一日收盘价的差值
占前一日收盘价的百分比。

7. 今小昨:IF(C<REF(O,1) AND f<0,1,0),表示当前收盘价小于前一日开
盘价且当前差值小于0时为1,否则为0。

8. 今小前:IF(C<REF(O,2) AND f<0,1,0),表示当前收盘价小于前两日开
盘价且当前差值小于0时为1,否则为0。

9. 真实波动范围(TR)的计算公式为TR=Max(H-L,H-PDC,PDC-L),其中
H表示当日的最高价,L表示当日的最低价,PDC表示前一日的收盘价。

以上是大智慧股票指标公式的部分示例,如需更多信息,建议查阅大智慧股票软件官网或咨询专业金融分析师。

大智慧技术指标公式,非常重要,绝不删除.doc

大智慧技术指标公式,非常重要,绝不删除.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,。

大智慧缺口画线主图指标公式

大智慧缺口画线主图指标公式

大智慧缺口画线主图指标公式大智慧缺口画线主图指标公式2011-01-14 股旁网分类:大智慧公式标签: 主图画线缺口n:=5;{缺口}LL:=REF(L,1);HH:=REF(H,1);SQK:=L>HH;XQK:=H<LL;DRAWTEXT(SQK,L*0.92,' 向上跳空'),COLORRED; DRAWTEXT(XQK,H*1.08,' 逃命跳空'),COLORYELLOW; STICKLINE(SQK,L,HH,4*N,1),COLORRED;STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)<REF(INDEXC,2) ANDREF(C,2)*0.95>=REF(C,1) ANDREF(O,1)/REF(C,1)>=1.05AND REF(C,1)<REF(O,1) AND C>O ANDC/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)<REF(VOL,2);STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.98,'○追'),COLORYELLOW;V AR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV( LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);V AR2:=8;CC:=CROSS(V AR1,V AR2);DRAWTEXT(CC,L*0.98,'◎买'),COLOR0099FF;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*A VEDEV(TYP,14))<=2 0 ANDREF(MA(C,21),1)<MA(C,21);TJ1:=O<MAX(REF(C,1),REF(O,1));TJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 ANDMA(C,144)>MA(C,250) AND V<MA(V,10) ANDTJ3:=REF(MA(C,250),90)<REF(MA(C,144),90) ANDMA(C,144)>MA(C,250) AND O>MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 ANDREF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 ANDHHV(H,5)/LLV(L,30)>=1.65 ANDREF(H,5)/REF(L,1)>=1.15 ANDREF(C,1)/REF(O,1)<=0.995 AND (L<REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)>=2) ANDO/REF(L,1)<=1.04OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 ANDREF(L,1)/REF(O,4)<=0.85 ANDREF(C,1)/REF(O,1)<=1.03 AND O<REF(C,1) AND HHV(H,5)/LLV(L,35)>1.35 AND V<MA(V,10);TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 AND HHV(H,4)/LLV(L,16)>=1.35 ANDREF(O,4)/REF(C,2)>=1.08 ANDREF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)<REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))>=2) ANDOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)<REF(H,5) AND REF(C,4)<REF(C,5) AND REF(C,3)<REF(C,4) AND REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDMA5/O<1.1;DATOUJI:=TYP1 AND TJ3 AND O<REF(C,5) ANDO<=REF(C,1) AND REF(H,10)/O>=1.17 ANDHHV(H,10)/LLV(L,30)>1.4 AND(MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02; DATOUJI1:=TYP1 AND TJ3 AND O<REF(L,6) ANDO<MIN(REF(C,5)AND REF(O,5),5) ;DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI ORDATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L<MA(C,20) ANDC>=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/S MA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'◎短卖'),COLORGREEN; C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1; DRAWICON(突破盘整,L-0.10,1);{画线高低}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);{低点} DRAWTEXTABS(5,5,'股旁网。

大智慧指标公式

大智慧指标公式

波段之星(副图指标)“波段之星”使用说明“波段之星”指标为图形化指标。

本指标反映的是多空博弈游戏中多空动能、势能交替转换的基本状态,是《庄家克星》系列精华指标之一。

本指标由“AK”、“AD”、“AJ”线”构成,整幅图形与传统指标“KDJ”相似,但形态更鲜明,买卖指示更准确,是短线波段炒作的有力工具。

操作要领:1、买点:当“AK”线上翘、并与“AD”线金叉时买进。

2、卖点:当“AK”线下勾、并与“AD”线死叉时卖出。

3、注意事项:A、超短线炒作股票进出频繁,风险极大,务必慎之又慎。

B、当“AK”线与“AD”在“0”或“20”线附近发生金叉向上反弹时,多数情况是调整结束的低点,往往是炒底的好时机,此时可试行建仓。

利用本指标确定买点,十分有效,但要十分注意是否有成交量的配合,并确立快进快出的战术。

本指标如能与“神奇均线”配合使用,效果更好。

C、本指标一旦发出买进信号,均是调整结束的标志。

此时可以试建仓或加码建仓。

如果本指标“AK”线上穿“80”或“100”线,或在“80”、“100”附近发出金叉向上买进信号时,往往会产生一段急升行情。

此时不但不能卖出股票,而且还可加码迫涨。

不过,此时风险也将加大,不应掉以轻心,应随时准备清仓离场。

一定要注意:一旦“AK”线上穿“100”后,应随时防范风险,做好随时清仓出局的准备。

D、在确定买卖点时,请参照《庄家克星》其它指标做出决策。

Var2:=(HIGH+LOW+CLOSE*2)/4;Var3:=EMA(Var2,21);Var4:=STD(Var2,21);Var5:=((Var2-Var3)/Var4*100+200)/4;Var6:=(EMA(Var5,5)-25)*1.56;AK: EMA(Var6,2)*1.22;AD: EMA(AK,2);AJ: 3*AK-2*AD;100, POINTDOT;0, POINTDOT;80, POINTDOT;买进: IF(CROSS(AK,AD),58,20);卖出: IF(CROSS(AD,AK),58,20);财运亨通(副图指标)“财运亨通”使用说明“财运亨通”指标为图形化指标。

大智慧公式多年收集的大智慧指标公式(源码)

大智慧公式多年收集的大智慧指标公式(源码)

漓江渔歌VarA:=MA(CLOSE,20);RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));K:=SMA(RSV,5,1);D:=SMA(K,3,1);D2:=SMA(K,2,1);t1:=(3*K-2*D)*100;天空:STICKLINE(t1,0,120,0.5,0),COLORFFFFFF;山:=(3*K-2*D)*100;桂山:STICKLINE(山,0,山,5,0),COLOR00FFDD;STICKLINE(山,0,山*0.95,5,0),COLOR00FFBB;STICKLINE(山,0,山*0.88,5,0),COLOR00FF99;STICKLINE(山,0,山*0.8,5,0),COLOR00DD99;STICKLINE(山,0,山*0.71,5,0),COLOR00BB99;STICKLINE(山,0,山*0.6,5,0),COLOR00AA99;STICKLINE(山,0,山*0.5,5,0),COLOR009999;STICKLINE(山,0,山*0.4,5,0),COLOR008899;t2:=((100-山)-100)*2/3;漓江水:STICKLINE(t2,懒旅呐魄壬仕掏COLORCCFF00;倒影:t2,COLOR00FFCC,STICK;STICKLINE(倒影,0,倒影*4/5,0.1,0),COLOR00CC99;STICKLINE(倒影,0,倒影*3/5,0.1,0),COLOR009999;STICKLINE(倒影,0,倒影*2/5,0.1,0),COLOR006699;顶线:=100-((HIGH-VarA)/VarA);RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1:=SMA(RSV2,3,1);Var2:=SMA(Var1,3,1);买入:=Var1<16 and Var2<21 ;卖出预警:=t1>=88 or 顶线<=90;卖出:=CROSS(顶线,t1) or CROSS(90,t1);t3:=买入;打渔船:DRAWTEXT(FILTER(t3,2),山-45,'︼'),COLOR0000FF,LINETHICK2; t4:=卖出预警or 卖出;南归雁:DRAWTEXT(FILTER(t4,2),山+10,'>'),COLORFFFF00;示例 2一个副图公式:《雨季彩虹》ys1:=(high+low+close*2)/4;rk3:=ema(ys1,10);rk4:=std(ys1,10);rk5:=(ys1-rk3)*100/rk4;rk6:=ema(rk5,5);rk7:=ema(rk6,10);涨:ema(rk6,10)+100/2-5,linethick1,colorred;跌:ema(涨,4),linethick1,colorwhite;天晴:if(cross(涨,跌) and 跌<-10,30,0),linethick1,colorccccff;雨季:if(cross(跌,80),70,100),color0099ff,linethick1;彩虹1:ema(跌,4),colorf00ff0;彩虹2:ema(彩虹1,4),colorgreen;彩虹3:=ema(彩虹2,4),coloryellow;彩虹4:=ema(彩虹3,4),colorcc9900;-10,pointdot,color888888,linethick2;80,pointdot,color888888,linethick2;stickline(涨> ref(涨,1),涨,ema(涨,3),0,0) ,color00bbff;stickline(涨> ref(涨,1),涨,ema(涨,3),8,0) ,color0011ff;stickline(涨> ref(涨,1),涨,ema(涨,3),7,0) ,color0022ff;stickline(涨> ref(涨,1),涨,ema(涨,3),6,0) ,color0044ff;stickline(涨> ref(涨,1),涨,ema(涨,3),5,0) ,color0066ff;stickline(涨> ref(涨,1),涨,ema(涨,3),4,0) ,color0088ff;stickline(涨> ref(涨,1),涨,ema(涨,3),3,0) ,color0099ff;stickline(涨> ref(涨,1),涨,ema(涨,3),2,0) ,color00aaff;stickline(涨> ref(涨,1),涨,ema(涨,3),1,0) ,color00bbff;drawicon(天晴,30,1),color0000ff;drawicon(cross(跌,80),70,2),colorgreen;drawtext(cross(涨,跌) and 跌<20 and 跌>-10,40,'停雨多云'),colorccff99; drawtext(天晴>0,-20,'天晴'),color0000ff;var11:=sumbars(vol,finance(7)*100);var22:=dma(ema(close,12),sum(vol,5)/3/capital);var3:=(close-var22)/var22*100;var4:=hhv(var3,var11);var5:=llv(var3,var11);var6:=(var3-var5)/(var4-var5)*100;k:=sma(var6,3,1);d:=sma(k,3,1);j:=3*k-2*d;ma1:=ma(j,3),colorgreen;stickline(filter(j>ma1 and j<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow; drawtext(filter(j>ma1 and j<=3,5)=1 and 跌<0,60,'注意'),colorffffff;。

大智慧主图公式

大智慧主图公式

大智慧主图公式: 招招绝(原码)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顶背离}。

大智慧指标公式编写1

大智慧指标公式编写1

大智慧指标公式编写1大智慧指标公式编写创新高创新高指当日最高价是最近一段时间的最高价:HIGH=HHV(HIGH,N)其中的HIGH为当期最高价,HHV(X,N)是求N周期内X最高值。

因此该公式的含义是当日最高价创N日新高时返回值为1,否则为0。

横盘整理横盘整理指最近一段时期价格在一定幅度之内摆动:(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.05其中的LLV(X,N)是求N周期内X最低值。

因此该公式表示10日收盘价振幅振幅在5%以内。

区间统计例如,要取得2002年2月1日到2002年12月30日间的最低价。

思考一下,一段时间的最低价必然是该段时间内每个分析周期的最低价中最小的那个。

所以我们要引用的数据是该段时间各分析周期的最低价,而不需要用到开盘价、收盘价或最高价;还要将不需要的数据,即区间外的数据设为0。

语句为:LL:=IF(YEAR=2002 AND MONTH>=2 AND MONTH<=12,LOW,0)该语句用一个条件函数来判断时间是否处于规定区间,若是则返回最低价,否则返回0。

我们再用LLV函数,就可求得该段时间最低的最低价:LLV(LL,0)技术指标公式技术指标公式用于绘制技术指标线。

以KDJ指标为例,右键点击KDJ,选择“编辑公式”后打开公式算法编辑器,显示出KDJ指标公式的内容。

参数名称:最小值,最大值,缺省值N: 1 10O 9M1: 2 40 3M2: 2 40 3RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D该公式绘制K、D、J两条指标线。

RSV行是一个中间语句,计算当期收盘价与N天内最低价之差除以N内最高价与最低价之差的比值,再乘以系数100。

K线为RSV的M1天移动平均线,D线为线K的M2天移动平均线,J线为K线与J线的差值。

大智慧无未来的主图指标公式源码编程思路破译

大智慧无未来的主图指标公式源码编程思路破译

大智慧无未来的主图指标公式源码编程思路破译编程思路破译输出快线:收盘价的3日指数移动平均的3日指数移动平均的3日指数移动平均的3日指数移动平均,线宽为2,画红色输出慢线:1日前的快线的3日指数移动平均,线宽为2,COLOR00FFFF输出总趋势:收盘价的65日指数移动平均的3日指数移动平均的3日指数移动平均的3日指数移动平均的3日指数移动平均,线宽为2,画蓝色VAR84赋值: (收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100VAR85赋值: 100-VAR84的绝对值VAR86赋值: 3*(收盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均-2*(收盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均的15日[1日权重]移动平均VAR87赋值: 3*(开盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均-2*(开盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均的15日[1日权重]移动平均VAR88赋值: 100-VAR87VAR89赋值: 100-VAR86VAR92赋值: 100*(收盘价-34日内收盘价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)的5日简单移动平均-20 VAR93赋值: 100-3*(收盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均+2*(收盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均的15日[1日权重]移动平均VAR94赋值: 100-3*(开盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均+2*(开盘价-75日内最低价的最低值)/(75日内最高价的最高值-75日内最低价的最低值)*100的20日[1日权重]移动平均的15日[1日权重]移动平均VAR95赋值: VAR93<1日前的VAR94 AND 成交量(手)>1日前的成交量(手) AND 收盘价>1日前的收盘价VARA赋值: (收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100VARB赋值: VARA的3日[1日权重]移动平均VARC赋值: VARB的3日[1日权重]移动平均探索赋值: 3*VARB-2*VARC的3日指数移动平均主力赋值: (-1)*(VAR89的1日指数移动平均-50)+50Z1赋值: 主力的9日简单移动平均VARD赋值: (-1)*(VAR89的1日指数移动平均-50)+50VARE赋值: (-1)*(VAR89的12日指数移动平均-50)+50LCC赋值: 1日前的收盘价RSI1赋值: 收盘价-LCC和0的较大值的6日[1日权重]移动平均/收盘价-LCC的绝对值的6日[1日权重]移动平均*100苦海赋值: 100*(14日内最高价的最高值-收盘价)/(14日内最高价的最高值-14日内最低价的最低值)的6日指数移动平均ZS赋值: 探索的3日简单移动平均ZM赋值: 探索的3日简单移动平均的3日简单移动平均A11赋值: 3*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均-2*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均黑马线赋值: A11的5日指数移动平均A12赋值: (黑马线-1日前的黑马线)/1日前的黑马线*100A4赋值: (收盘价-21日内最低价的最低值)/(21日内最高价的最高值-21日内最低价的最低值)*100趋势线3赋值: 3*A4的6日[1日权重]移动平均-2*A4的5日[1日权重]移动平均的5日[1日权重]移动平均的2日简单移动平均A5赋值: (60日内最高价的最高值-收盘价)/(60日内最高价的最高值-60日内最低价的最低值)*100N赋值: 3VAR1赋值: 1日前的(最低价+开盘价+收盘价+最高价)/4VAR2赋值: 最低价-VAR1的绝对值的13日[1日权重]移动平均/最低价-VAR1和0的较大值的10日[1日权重]移动平均VAR3赋值: VAR2的10日指数移动平均VAR4赋值: 33日内最低价的最低值VAR5赋值: 如果最低价<=VAR4,返回VAR3,否则返回0的5日指数移动平均VAR6赋值: 1日前的收盘价VAR7赋值: 收盘价-VAR6和0的较大值的6日[1日权重]移动平均/收盘价-VAR6的绝对值的6日[1日权重]移动平均*100 VAR8赋值: 5日内最低价的最低值=45日内最低价的最低值 AND 收盘价>=开盘价*1.04VAR9赋值: 收盘价>(1日前的最高价+1日前的最低价)/2VAR10赋值: VAR8 AND VAR9VAR11赋值: (2*收盘价+最高价+最低价)/4VAR12赋值: 13日内最低价的最低值VAR13赋值: 13日内最高价的最高值VAR14赋值: 1日内最低价的最低值=35日内最低价的最低值AND 收盘价>=开盘价*1.04VAR15赋值: 收盘价>(1日前的最高价+1日前的最低价)/2VAR16赋值: (VAR11-VAR12)/(VAR13-VAR12)*100的13日指数移动平均VAR17赋值:(收盘价-收盘价的6日简单移动平均/收盘价的6日简单移动平均*100+(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100+(收盘价-收盘价的32日简单移动平均)/收盘价的32日简单移动平均*100)/3VAR19赋值: 收盘价的13日简单移动平均VAR20赋值: 100-(收盘价-VAR19)/VAR19*100的绝对值VAR21赋值: 75日内最低价的最低值VAR22赋值: 75日内最高价的最高值VAR23赋值: (VAR22-VAR21)/100VAR24赋值: (收盘价-VAR21)/VAR23的20日[1日权重]移动平均VAR25赋值: (开盘价-VAR21)/VAR23的20日[1日权重]移动平均VAR26赋值: 3*VAR24-2*VAR24的15日[1日权重]移动平均VAR27赋值: 485日内最高价的最高值的17日简单移动平均VAR28赋值: 222日内最高价的最高值的17日简单移动平均VAR29赋值: 96日内最高价的最高值的17日简单移动平均VAR30赋值: 485日内最低价的最低值的17日简单移动平均VAR31赋值: 222日内最低价的最低值的17日简单移动平均VAR32赋值: 96日内最低价的最低值的17日简单移动平均VAR33赋值: (VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR28*0. 558+VAR29*0.558)/6的17日简单移动平均VAR34赋值: (VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28*0.55 +VAR29*0.65)/6的17日简单移动平均VAR35赋值: (VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0.68+ VAR29*0.68)/6的17日简单移动平均VAR36赋值: 30日内最低价的最低值VAR37赋值: (VAR33*3+VAR34*2+VAR35)/6*1.738的17日简单移动平均VAR38赋值: VAR37VAR39赋值: 最低价VAR40赋值: 1日前的最低价VAR41赋值: VAR39-VAR40的绝对值的3日[1日权重]移动平均/VAR39-VAR40和0的较大值的N日[1日权重]移动平均*100 VAR42赋值: 如果收盘价*1.35<=VAR38,返回VAR41*10,否则返回VAR41/10的N日简单移动平均VAR43赋值: 30日内VAR42的最高值VAR45赋值: 3*VAR25-2*VAR25的15日[1日权重]移动平均VAR46赋值: 100-VAR45VAR49赋值: 1日前的最低价*0.9VAR50赋值: 最低价*0.9VAR53赋值: 收盘价-1日前的收盘价VAR54赋值: VAR53和0的较大值VAR55赋值: VAR53的绝对值VAR56赋值: VAR54的7日[1日权重]移动平均/VAR55的7日[1日权重]移动平均*100VAR57赋值: VAR54的13日[1日权重]移动平均/VAR55的13日[1日权重]移动平均*100VAR58赋值: 收盘价的有效数据周期数VAR59赋值: VAR53和0的较大值的6日[1日权重]移动平均/VAR53的绝对值的6日[1日权重]移动平均*100VAR60赋值: (-200)*(60日内最高价的最高值-收盘价)/(60日内最高价的最高值-60日内最低价的最低值)+100VAR61赋值: (收盘价-15日内最低价的最低值)/(15日内最高价的最高值-15日内最低价的最低值)*100VAR62赋值: (VAR61的4日[1日权重]移动平均-50)*2的3日[1日权重]移动平均VAR63赋值: (大盘的收盘价-14日内大盘的最低价的最低值)/(14日内大盘的最高价的最高值-14日内大盘的最低价的最低值)*100 VAR64赋值: VAR63的4日[1日权重]移动平均VAR65赋值: VAR64的3日[1日权重]移动平均VAR66赋值: (30日内最高价的最高值-收盘价)/收盘价*100VAR68赋值: (最高价+最低价+收盘价)/3VAR69赋值: (VAR68-VAR68的14日简单移动平均)/(0.015*VAR68的14日平均绝对偏差)VAR70赋值: (VAR68-VAR68的70日简单移动平均)/(0.015*VAR68的70日平均绝对偏差)VAR71赋值: 如果VAR69>=150ANDVAR69<200ANDVAR70>=150ANDVAR70<20 0,返回10,否则返回0VAR72赋值: 如果VAR69<=(-150)ANDVAR69>(-200)ANDVAR70<=(-150)ANDVAR70>(-200),返回-10,否则返回VAR71VAR73赋值: (收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100VAR74赋值: VAR73的相反数VAR75赋值: VAR73的3日[1日权重]移动平均绝佳买点赋值:如果最低价<=VAR36,返回(VAR42+VAR43*2)/2,否则返回0的N日简单移动平均跑赋值: 1日前的黑马线>90ANDA12<0的7日过滤买线赋值: 收盘价的2日指数移动平均卖线赋值: 收盘价的21日线性回归斜率*20+收盘价的42日指数移动平均指數位置赋值: 3*(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100的5日[1日权重]移动平均-2*(收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值)*100的5日[1日权重]移动平均的3日[1日权重]移动平均抄底赋值: 指數位置上穿10 AND 日期<=10280531A1赋值: 成交量(手)=120日内成交量(手)的最高值A2赋值: 收盘价/开盘价>1.05TJ赋值: A1 AND A2龙赋值: VAR10买4赋值: VAR14AA1赋值: 成交额(元)/成交量(手)BB1赋值: 最低价<AA1*0.9CC1赋值: (收盘价-1日前的收盘价)/1日前的收盘价*100>1.2DD1赋值: 最低价<收盘价的5日简单移动平均*0.921EE1赋值: 成交量(手)<成交量(手)的5日简单移动平均*1.5FF1赋值: BB1 AND CC1 AND DD1 AND EE1买3赋值: FF1的3日过滤 AND 日期<=10280530二十天最低跌幅赋值: 20日内收盘价的最高值/20日内收盘价的最低值RSV赋值: (收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100K赋值: RSV的3日[1日权重]移动平均D赋值: K的3日[1日权重]移动平均J赋值: 3*K-2*DX赋值: 2日内J的最低值=8日内J的最低值买1赋值: J上穿1日前的J+0.01 AND X AND J<20 AND 二十天最低跌幅>=1.3长期底部赋值: 30日内最高价的最低值上赋值: 最低价的5日[2日权重]移动平均*0.96短期底部赋值: 30日内最高价的最低值*0.93LC赋值: 1日前的收盘价RSI赋值: 收盘价-LC和0的较大值的6日[1日权重]移动平均/收盘价-LC的绝对值的6日[1日权重]移动平均*100大顶赋值: VAR17>20 AND (VAR17<1日前的VAR17)VAR76赋值: (开盘价+最低价+最高价+收盘价)/4MAN赋值: 最高价的21日[2日权重]移动平均*1.05短底2赋值: VAR76的5日指数移动平均支撑赋值: 60日内短底2的最高值VAR77赋值: (36日内最高价的最高值-收盘价)/(36日内最高价的最高值-36日内最低价的最低值)*100VAR78赋值: VAR77的5日[1日权重]移动平均VAR79赋值: VAR78的8日[1日权重]移动平均VAR80赋值: VAR78上穿VAR79 AND VAR79<5VAR81赋值: 收盘价>60日内收盘价的最低值+0.3*60日内收盘价的最低值 AND VAR80VAR82赋值: 如果收盘价>1000,返回VAR80,否则返回VAR81黑马起步赋值: VAR82逃赋值: 最高价>支撑ANDCLOSE<支撑ANDCLOSE/开盘价>0-1.06ANDCLOSE<开盘价的5日过滤逃命赋值: 黑马起步>0选逃赋值: 逃命OR逃ORCROSS(84,RSI)OR大顶的3日过滤上线赋值: 收盘价的6.5日[1日权重]移动平均下线赋值: 收盘价的13.5日[1日权重]移动平均散户赋值: VAR75的3日[1日权重]移动平均新庄赋值: 散户的3日[1日权重]移动平均高抛赋值: 新庄上穿散户 AND 新庄>75买赋值: 买线上穿卖线卖赋值: 卖线上穿买线大黑马赋值: 趋势线3上穿0 AND 黑马线<40大买赋值: 绝佳买点>30000的5日过滤选底赋值: 最低价<=上ANDHIGH>=短期底部ANDCLOSE>=长期底部ANDCLOSE/开盘价>1.03的3日过滤稳赚10买赋值: 买3OR选底的3日过滤 AND 统计3日中满足买1+买4+龙的天数>0大资金进场赋值: VAR95 AND 统计30日中满足VAR95的天数=1当满足条件买线>=卖线时,在最低价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0000FF当满足条件买线>=卖线时,在收盘价和开盘价位置之间画柱状线,宽度为4.5,0不为0则画空心柱.,COLOR0000AA当满足条件买线>=卖线时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR0000CC当满足条件买线>=卖线时,在收盘价和开盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000CC当满足条件买线>=卖线时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR0000EE当满足条件买线<卖线时,在收盘价和开盘价位置之间画柱状线,宽度为4.5,0不为0则画空心柱.,COLORAAAA00当满足条件买线<卖线时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORBBBB00当满足条件买线<卖线时,在收盘价和开盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORCCCC00当满足条件买线<卖线时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOREEEE00当满足条件买线<卖线时,在最低价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFFFF00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为9*0.5,0不为0则画空心柱.,COLORFF5B00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为8*0.5,0不为0则画空心柱.,COLORFF6C00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为7*0.5,0不为0则画空心柱.,COLORFF7B00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为6*0.5,0不为0则画空心柱.,COLORFF9C00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为5*0.5,0不为0则画空心柱.,COLORFFBE00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3.5*0.5,0不为0则画空心柱.,COLORFFCC00当满足条件开盘价>=收盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5*0.5,0不为0则画空心柱.,COLORFFFF00当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为9*0.5,0不为0则画空心柱.,COLOR070084当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为8*0.5,0不为0则画空心柱.,COLOR0000A3当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为7*0.5,0不为0则画空心柱.,COLOR0000B7当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为6*0.5,0不为0则画空心柱.,COLOR0000CD当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为5*0.5,0不为0则画空心柱.,COLOR0000E9当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3*0.5,0不为0则画空心柱.,COLOR0754E9当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5*0.5,0不为0则画空心柱.,COLOR076EF3当满足条件收盘价>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1*0.5,0不为0则画空心柱.,COLOR077BF3当满足条件收阳线时,在开盘价和最低价位置之间画柱状线,宽度为1*0.5,0不为0则画空心柱.,COLOR0726CA当满足条件收阳线时,在收盘价和最高价位置之间画柱状线,宽度为1*0.5,0不为0则画空心柱.,COLOR0726CA当满足条件收阴线时,在收盘价和最低价位置之间画柱状线,宽度为1*0.5,0不为0则画空心柱.,COLORDE9100当满足条件收阴线时,在开盘价和最高价位置之间画柱状线,宽度为1*0.5,0不为0则画空心柱.,COLORDE9100选买赋值: 买3OR选底的3日过滤 AND 统计3日中满足买1+买4+龙的天数>0当满足条件选买时,在收盘价和90日内最高价的最高值*0.94位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLORFF0000 当满足条件选买时,在90日内最高价的最高值*1位置书写文字,COLORFF0000当满足条件选买时,在90日内最高价的最高值*0.97位置书写文字,COLORFF0000当满足条件选逃时,在最高价*1.04位置书写文字,COLOR00FFFF 当满足条件买时,在最低价*0.996位置书写文字,COLOR0000FF当满足条件卖时,在最高价*1位置书写文字,COLOR00FFFF当满足条件VAR95ANDCOUNT(VAR95,30)=1时,在最高价*1.095位置书写文字,COLOR008000当满足条件VAR95ANDCOUNT(VAR95,30)=1时,在最高价*1.06位置书写文字,COLOR008000当满足条件跑时,在最高价*1.02位置书写文字,COLOR00FFFF当满足条件大黑马时,在最低价*0.98位置书写文字,COLORFFFFFF 当满足条件新庄上穿散户AND新庄>75时,在最高价*1.04位置书写文字,COLOR00FFFF当满足条件大买时,在最低价*0.96位置书写文字,COLOR0000FF 当满足条件如果选底,返回100,否则返回0时,在最低价*0.995位置书写文字,COLOR399C71程序源码快线:EMA(EMA(EMA(EMA(CLOSE,3),3),3),3),LINETHICK2,COLORRE D;慢线:EMA(REF(快线,1),3),LINETHICK2,COLOR00FFFF;总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,COLORBLUE;VAR84:= (CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR85:= 100-ABS(VAR84);VAR86:= 3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR87:= 3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR88:= 100-VAR87;VAR89:= 100-VAR86;VAR92:= MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR93:= 100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR94:= 100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR95:= VAR93<REF(VAR94,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);VARA:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:= SMA(VARA,3,1);VARC:= SMA(VARB,3,1);探索:= EMA(3*VARB-2*VARC,3);主力:= (-1)*(EMA(VAR89,1)-50)+50;Z1:= MA(主力,9);VARD:= (-1)*(EMA(VAR89,1)-50)+50;VARE:= (-1)*(EMA(VAR89,12)-50)+50;LCC:= REF(CLOSE,1);RSI1:= SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;苦海:= EMA(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),6);ZS:= MA(探索,3);ZM:= MA(MA(探索,3),3);A11:= 3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1);黑马线:= EMA(A11,5);A12:= (黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A4:= (CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;趋势线3:= MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);A5:= (HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;N:= 3;VAR1:= REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:= SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:= EMA(VAR2,10);VAR4:= LLV(LOW,33);VAR5:= EMA(IF(LOW<=VAR4,VAR3,0),5);VAR6:= REF(CLOSE,1);VAR7:= SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;VAR8:= LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR9:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR10:= VAR8 AND VAR9;VAR11:= (2*CLOSE+HIGH+LOW)/4;VAR12:= LLV(LOW,13);VAR13:= HHV(HIGH,13);VAR14:= LLV(LOW,1)=LLV(LOW,35) AND CLOSE>=OPEN*1.04;VAR15:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;VAR16:= EMA((VAR11-VAR12)/(VAR13-VAR12)*100,13);VAR17:=(CLOSE-MA(CLOSE,6)/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;VAR19:= MA(CLOSE,13);VAR20:= 100-ABS((CLOSE-VAR19)/VAR19*100);VAR21:= LLV(LOW,75);VAR22:= HHV(HIGH,75);VAR23:= (VAR22-VAR21)/100;VAR24:= SMA((CLOSE-VAR21)/VAR23,20,1);VAR25:= SMA((OPEN-VAR21)/VAR23,20,1);VAR26:= 3*VAR24-2*SMA(VAR24,15,1);VAR27:= MA(HHV(HIGH,485),17);VAR28:= MA(HHV(HIGH,222),17);VAR29:= MA(HHV(HIGH,96),17);VAR30:= MA(LLV(LOW,485),17);VAR31:= MA(LLV(LOW,222),17);VAR32:= MA(LLV(LOW,96),17);VAR33:=MA((VAR30*0.96+VAR31*0.96+VAR32*0.96+VAR27*0.558+VAR 28*0.558+VAR29*0.558)/6,17);VAR34:=MA((VAR30*1.25+VAR31*1.23+VAR32*1.2+VAR27*0.55+VAR28* 0.55+VAR29*0.65)/6,17);VAR35:=MA((VAR30*1.3+VAR31*1.3+VAR32*1.3+VAR27*0.68+VAR28*0. 68+VAR29*0.68)/6,17);VAR36:= LLV(LOW,30);VAR37:= MA((VAR33*3+VAR34*2+VAR35)/6*1.738,17);VAR38:= VAR37;VAR39:= LOW;VAR40:= REF(LOW,1);VAR41:= SMA(ABS(VAR39-VAR40),3,1)/SMA(MAX(VAR39-VAR40,0),N,1)*100;VAR42:=MA(IF(CLOSE*1.35<=VAR38,VAR41*10,VAR41/10),N);VAR43:= HHV(VAR42,30);VAR45:= 3*VAR25-2*SMA(VAR25,15,1);VAR46:= 100-VAR45;VAR49:= REF(LOW,1)*0.9;VAR50:= LOW*0.9;VAR53:= CLOSE-REF(CLOSE,1);VAR54:= MAX(VAR53,0);VAR55:= ABS(VAR53);VAR56:= SMA(VAR54,7,1)/SMA(VAR55,7,1)*100;VAR57:= SMA(VAR54,13,1)/SMA(VAR55,13,1)*100;VAR58:= BARSCOUNT(CLOSE);VAR59:=SMA(MAX(VAR53,0),6,1)/SMA(ABS(VAR53),6,1)*100;VAR60:= (-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:= (CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR62:= SMA((SMA(VAR61,4,1)-50)*2,3,1);VAR63:= (INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR64:= SMA(VAR63,4,1);VAR65:= SMA(VAR64,3,1);VAR66:= (HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR68:= (HIGH+LOW+CLOSE)/3;VAR69:= (VAR68-MA(VAR68,14))/(0.015*AVEDEV(VAR68,14));VAR70:= (VAR68-MA(VAR68,70))/(0.015*AVEDEV(VAR68,70));VAR71:= IF(VAR69>=150 AND VAR69<200 AND VAR70>=150 AND VAR70<200,10,0);VAR72:= IF(VAR69<=(-150) AND VAR69>(-200) AND VAR70<=(-150) AND VAR70>(-200),-10,VAR71);VAR73:= (CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VAR74:= REVERSE(VAR73);VAR75:= SMA(VAR73,3,1);绝佳买点:=MA(IF(LOW<=VAR36,(VAR42+VAR43*2)/2,0),N);跑:= FILTER(REF(黑马线,1)>90 AND A12<0,7);买线:= EMA(CLOSE,2);卖线:= EMA(SLOPE(CLOSE,21)*20+CLOSE,42);指數位置:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);抄底:= CROSS(指數位置,10) AND DATE<=10280531;A1:= VOL=HHV(VOL,120);A2:= CLOSE/OPEN>1.05;TJ:= A1 AND A2;龙:= VAR10;买4:= VAR14;AA1:= AMOUNT/VOL;BB1:= LOW<AA1*0.9;CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;DD1:= LOW<MA(CLOSE,5)*0.921;EE1:= VOL<MA(VOL,5)*1.5;FF1:= BB1 AND CC1 AND DD1 AND EE1;买3:= FILTER(FF1,3) AND DATE<=10280530;二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:= SMA(RSV,3,1);D:= SMA(K,3,1);J:= 3*K-2*D;X:= LLV(J,2)=LLV(J,8);买1:= CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND 二十天最低跌幅>=1.3;长期底部:= LLV(HIGH,30);上:= SMA(LOW,5,2)*0.96;短期底部:= LLV(HIGH,30)*0.93;LC:= REF(CLOSE,1);RSI:= SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;大顶:= VAR17>20 AND (VAR17<REF(VAR17,1));VAR76:= (OPEN+LOW+HIGH+CLOSE)/4;MAN:= SMA(HIGH,21,2)*1.05;短底2:= EMA(VAR76,5);支撑:= HHV(短底2,60);VAR77:= (HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR78:= SMA(VAR77,5,1);VAR79:= SMA(VAR78,8,1);VAR80:= CROSS(VAR78,VAR79) AND VAR79<5;VAR81:= CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR80;VAR82:= IF(CLOSE>1000,VAR80,VAR81);黑马起步:= VAR82;逃:= FILTER(HIGH>支撑AND CLOSE<支撑AND CLOSE/OPEN>0-1.06 AND CLOSE<OPEN,5);逃命:= 黑马起步>0;选逃:= FILTER(逃命 OR 逃 OR CROSS(84,RSI) OR 大顶,3);上线:= SMA(CLOSE,6.5,1);下线:= SMA(CLOSE,13.5,1);散户:= SMA(VAR75,3,1);新庄:= SMA(散户,3,1);高抛:= CROSS(新庄,散户) AND 新庄>75;买:= CROSS(买线,卖线);卖:= CROSS(卖线,买线);大黑马:= CROSS(趋势线3,0) AND 黑马线<40;大买:= FILTER(绝佳买点>30000,5);选底:= FILTER(LOW<=上AND HIGH>=短期底部AND CLOSE>=长期底部 AND CLOSE/OPEN>1.03,3);稳赚10买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0;大资金进场:= VAR95 AND COUNT(VAR95,30)=1;STICKLINE(买线>=卖线 ,LOW,HIGH,1,0),COLOR0000FF;STICKLINE(买线>=卖线 ,CLOSE,OPEN,4.5,0),COLOR0000AA;STICKLINE(买线>=卖线 ,CLOSE,OPEN,4,0),COLOR0000CC;STICKLINE(买线>=卖线 ,CLOSE,OPEN,3,0),COLOR0000CC;STICKLINE(买线>=卖线 ,CLOSE,OPEN,2,0),COLOR0000EE;STICKLINE(买线<卖线 ,CLOSE,OPEN,4.5,0),COLORAAAA00;STICKLINE(买线<卖线 ,CLOSE,OPEN,4,0),COLORBBBB00;STICKLINE(买线<卖线 ,CLOSE,OPEN,3,0),COLORCCCC00;STICKLINE(买线<卖线 ,CLOSE,OPEN,2,0),COLOREEEE00;STICKLINE(买线<卖线 ,LOW,HIGH,1,0),COLORFFFF00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,9*0.5,0),COLORFF5B 00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8*0.5,0),COLORFF6 C00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7*0.5,0),COLORFF7B 00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6*0.5,0),COLORFF9 C00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5*0.5,0),COLORFFBE 00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.5*0.5,0),COLORFF CC00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5*0.5,0),COLORFF FF00;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,9*0.5,0),COLOR070 084;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8*0.5,0),COLOR000 0A3;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7*0.5,0),COLOR000 0B7;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6*0.5,0),COLOR000 0CD;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5*0.5,0),COLOR000 0E9;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3*0.5,0),COLOR075 4E9;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.5*0.5,0),COLOR07 6EF3;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1*0.5,0),COLOR077 BF3;STICKLINE(CLOSE>OPEN,OPEN,LOW,1*0.5,0),COLOR0726CA;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,1*0.5,0),COLOR0726C A;STICKLINE(OPEN>CLOSE,CLOSE,LOW,1*0.5,0),COLORDE910 0;STICKLINE(OPEN>CLOSE,OPEN,HIGH,1*0.5,0),COLORDE910 0;选买:= FILTER(买3 OR 选底,3) AND COUNT(买1+买4+龙,3)>0 ;STICKLINE(选买,CLOSE,HHV(HIGH,90)*0.94,0.3,0),COLORFF0000;DRAWTEXT(选买,HHV(HIGH,90)*1,'稳赚'),COLORFF0000;DRAWTEXT(选买,HHV(HIGH,90)*0.97,'10%买'),COLORFF0000;DRAWTEXT(选逃,HIGH*1.04,'逃'),COLOR00FFFF;DRAWTEXT(买,LOW*0.996,'买'),COLOR0000FF;DRAWTEXT(卖,HIGH*1,'卖'),COLOR00FFFF;DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.095,'大资金'),COLOR008000;DRAWTEXT(VAR95 AND COUNT(VAR95,30)=1,HIGH*1.06,'进场'),COLOR008000;DRAWTEXT(跑,HIGH*1.02,'跑'),COLOR00FFFF;DRAWTEXT(大黑马,LOW*0.98,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND 新庄>75,HIGH*1.04,'抛'),COLOR00FFFF;DRAWTEXT(大买,LOW*0.96,'大买'),COLOR0000FF;DRAWTEXT(IF(选底,100,0),LOW*0.995,'底'),COLOR399C71;。

大智慧指标公式集

大智慧指标公式集

大智慧指标公式集一、预测明天{预测明天-大智慧公式}E:=(H+L+O+2*C)/5;次日突破价:E+(H-L);次日阻力价:2*E-L;次日支撑价:2*E-H;次日下跌反转价:E-(H-L);次日心理价:(E+次日突破价+次日阻力价+次日支撑价+次日下跌反转价)/5;DIFF1:=EMA(C,3)-EMA(C,13);DEA1:=EMA(DIFF1,9);MACD1:=2*(DIFF1-DEA1)*10;DIFF2:=EMA(C,5)-EMA(C,21);DEA2:=MA(DIFF2,9);MACD2:=2*(DIFF2-DEA2)*10;DIFF3:=EMA(C,5)-EMA(C,89);DEA3:=EMA(DIFF3,21);MACD3:=2*(DIFF3-DEA3)*10;STICKLINE(C>0,0,22,6,0),Color8BA400;STICKLINE(C>0,0,10,6,0),Color8BA411;STICKLINE(C>0,0,9.5,6,0),Color8BA422;STICKLINE(C>0,0,9,6,0),Color8BA433;STICKLINE(C>0,0,8.5,6,0),Color8BA444;STICKLINE(C>0,0,8,6,0),Color8BA455;STICKLINE(C>0,0,7.5,6,0),Color8BA466;STICKLINE(C>0,0,7,10,0),Color8BA477;STICKLINE(C>0,0,6.5,6,0),Color8BA488;STICKLINE(C>0,0,6,6,0),Color8BA499;STICKLINE(C>0,0,5.5,6,0),Color8BA4aa;STICKLINE(C>0,0,5,6,0),Color8BA4cc;STICKLINE(C>0,0,4,6,0),Color8BA4ee;STICKLINE(C>0,0,3,6,0),Color8BA4ff;STICKLINE(C>0,0,-15,6,0),Color8BA433;STICKLINE(C>0,0,-10,6,0),Color8BA444;STICKLINE(C>0,0,-5,6,0),Color8BA455;STICKLINE(C>0,0,-1,6,0),Color8BA466;STICKLINE(macd3>=0,0,macd3,8,0),color009e3a;STICKLINE(macd3<0,0,-macd3,8,0),color646464;STICKLINE(macd2>=0,0,macd2,8,0),color007d19;STICKLINE(macd2<0,0,-macd2,8,0),color555555;STICKLINE(macd1>=0,0,macd1,8,0),color006400;STICKLINE(macd1<0,0,-macd1,8,0),color414141;STICKLINE(macd3,0,-abs(macd3)*0.6,8,0),color232323;STICKLINE(macd1,0,-abs(macd1)*0.6,8,0),color0f0f0f;x1:=MA(LLV(C,8)*1.1,13);x2:=MA(HHV(C,21)*0.9,13);x3:=MA(LLV(INDEXC,8)*1.1,13);x4:=MA(HHV(INDEXC,21)*0.9,13);资金进出:=3*(MA(C,1)-(x1+x2)/2-(x1+x2)/2*((x3+x4)/2-EMA(INDEXC,3))/((x3+x4) /2));STICKLINE(资金进出<0,资金进出,0,0.5,0),COLORFFFF00;STICKLINE(资金进出>=0,资金进出,0,0.5,0),ColorFF8BFF;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);DRAWTEXT(K<23,-10,'ャ'),ColorDBDBDB;DRAWTEXT(K<23,-10,'︼'),Color688EC1;DRAWTEXT(K<23 AND CROSS(K,D),8,'$'),COLORRED,LINETHICK7; DRAWTEXT(CROSS(MACD3,MACD2) andMACD3>ref(MACD3,1),MACD3+2,'$'),COLORRED,LINETHICK7;MA20:=MA(C,20);MA40:=MA(C,40);MA60:=MA(C,60);aa:=BARSLAST(ma60>ma40 and (ma40=ma20 or ma40>ma20));bb:=ref(count(c<ma60,aa)=aa,1);cc:=cross(c,ma60) and vol>ma(vol,5) and (c-ref(c,1))/ref(c,1)*100>3; 芙蓉出水:=bb and cc,color00ff00;drawtext(芙蓉出水,8,'$'),COLORRED;k2:=EMA(c,5),colorffff00;k3:=EMA(c,10),colorffff00;k5:=EMA(c,30),colorffff00;kk5:=EMA(indexc,30),colorffff00;k6:=2*(k2-k5);k7:=2*(k2-k3);k8:=2*(k7+k6),COLORRED;STICKLINE(CROSS(k8,0),0,50,8,0) ,COLORRED;k1:=IF(k8>ref(k8,5) and k3<ref(k3,5) ,1,0 ),COLORYELLOW;k21:=IF(k8>ref(k8,7) and k3<ref(k3,7) ,1,0 ),COLORYELLOW;k31:=IF(k8>ref(k8,9) and k3<ref(k3,9) ,1,0 ),COLORYELLOW;k4:=IF(k8>ref(k8,11) and k3<ref(k3,11) ,1,0 ),COLORYELLOW;nday := 3;down := close/llv(low,60)<=1.2;pma1 := ma(close,2);pma2 := ma(close,5);diff :=ema(close,12) - ema(close,26),colorwhite;dea :=ema(diff,9),colorgreen;vma1:=ma (vol,2)/100000,colorred;vma2:=ma(vol,5)/100000,coloryellow;ppday := barslast(cross(pma1,pma2));vvday := barslast(cross(vma1,vma2));macdday := barslast(cross(diff,dea));A1:=BARSLAST(ref(cross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),1)); 背离、W底、金叉:=ref(c,A1+1)>c andref("macd.diff"(5,12,9),A1+1)<"macd.diff"(5,12,9) andcross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),,colorred;sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday ) and (diff<0),1,0);STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;MACD:= 2*(diff-dea), COLORSTICK;短趋势:=((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) -50)*1.032+50),COLORRED;Vara2:=(2*CLOSE+HIGH+LOW+OPEN)/5;Vara3:=LLV(LOW,34);Vara4:=HHV(HIGH,34);长趋势:=EMA((Vara2-Vara3)/(Vara4-Vara3)*100,13),color00ff00;判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Vara5:=CROSS(短趋势,长趋势)AND 长趋势<25;Vara6:=CROSS(短趋势,长趋势)AND 长趋势<50;STICKLINE(Vara5,60,70,8,0) ,colorgreen;XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);B003:=(((XX + B001) / 2) - (B002 ));B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) -LLV(LOW,34)));B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) -LLV(LOW,42)));B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) -LLV(LOW,72)));B007:=EMA((((B004 + B005) / 2) - B006),6);B008:=REF(CLOSE,1);B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);B014:=B012;B015:=B013;B016:=EMA(B012,4);B017:=B012;KKM1:=B013;DPM1:=EMA(B013,4);多头:=B017,color0000FF;空头:=KKM1,color00FF00;多均:=B016;空均:=DPM1;B018:=IF(CROSS(B017,KKM1),28,0);xd:=5 ;VARX:=B017;C023:=KKM1;C024:=B016;C025:=DPM1;C026:=WINNER(CLOSE);W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);HWXWINNER:=W;XD1:=EMA(W,6);XWXMH:=XD1;XD2:=MA(W,14);庄家控盘:=((HWXWINNER - XWXMH) * 10),COLORff00ff,LINETHICK2; STICKLINE(cross(多头,空均),80,70,8,0) ,COLORYELLOW;Varb1:=(2*CLOSE+HIGH+LOW)/4;Varb2:=LLV(LOW,34);Varb3:=HHV(HIGH,34);Varb4:=ma(HIGH,8);xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2) , ;STICKLINE(CROSS(xx1,20) AND yy<xx1 andVarb4>ref(Varb4,1),80,90,6,0),COLORFF0000;逃顶:=IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLOR53ff53; {Re:预测明天-用法简介用法简介:一:小船出现是在股价相对的底部,$是参考买点,青山出现表示股价逐渐走强.当黑色大山出现时表示股价逐渐走弱.二:1 红柱线是中线指示2 其余四色柱线是短线指示3连续发出三个以上短线指示,可以短线买入.4连续发出三个以上短线指示后,发出中线指示,可以重仓买入.一年中线重仓买入,一般不会超过4次.三:1、次日上升突破价位:如明日此价位最高价超过此价位,则有上升行情产生,可当日买入,或观察近几日可逢低吸纳。

大智慧指标公式函数大全

大智慧指标公式函数大全

大智慧指标公式函数大全1.移动平均线(MA):MA=(今日收盘价×N日+昨天收盘价×(N-1)日+⋯+第N+1日收盘价×1日)÷N2. 动量指标(Momentum):Momentum=今日收盘价-N日前收盘价3.随机指标(RSI):RSI=100×A÷(A+B),其中A是N日内上涨收盘价的累计幅度,B是N日内下跌收盘价的累计幅度4. 相对强弱指标(Relative Strength Index,RSI):RSI=100×(现价-最低价)÷(最高价-最低价)5. 威廉指标(William):William=(当日最高价-昨日收盘价)÷(昨日最低价-昨日收盘价)6. 随机振荡器(Stochastic Oscillator):StochasticOscillator=(当日最高价-当日收盘价)÷(当日最高价-当日最低价)7. 威廉超买超卖指标(Williams Overbought/Oversold):Williams Overbought/Oversold=(当日最高价-昨日收盘价)÷(昨日最低价-昨日收盘价)8. 麦克指标(Macd):Macd=(短期EMA-长期EMA)÷振荡器(改标准)9. 相对强弱比率(Relative Strength Ratio,RSR):RSR=(N日的最高价-N日内最低价)÷(N日内最低价-N日内最高价)10. 布林线指标(Bollinger Bands):BB=(今日收盘价-N日简单移动平均线)÷2×标准差11. 平均真实波幅(Average True Range):ATR=(当日最高价-当日最低价)÷前N日移动平均。

大智慧主图公式

大智慧主图公式
VAR1:=REF(CLOSE,1);
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左右。

大智慧直观显示跳空缺口主图指标公式源码编程思路破译

大智慧直观显示跳空缺口主图指标公式源码编程思路破译

大智慧直观显示跳空缺口主图指标公式源码编程思路破译源码编程思路破译输出INPUT:N1(5,1,300),N2(10,1,300),N3(30,1,300)D赋值:若数据位置状态=2则将最近上次0日内最低价的最低值=最低价距今天数+1周期置为1LS赋值:如果数据位置状态=2,返回250日内最低价的最低值,否则返回9999D1赋值:若数据位置状态=2则将最近上次250日内最低价的最低值=LORBARSTATUS=1距今天数周期置为1LD赋值:LLVALL(LS)QKG赋值:(最低价>1日前的最高价)*DGQK赋值:如果D=1ANDQKG*1日前的最高价<LD,返回QKG,否则返回如果D1,返回QKG,否则返回0GQKS赋值:GQK的历史累和G赋值:若数据位置状态=2则将最近上次0日内最高价的最高值=最高价距今天数+1周期置为1HS赋值:250日内最高价的最高值G1赋值:若数据位置状态=2则将最近上次HS=最高价距今天数+1周期置为1HG赋值:HHVALL(G1*HS)QKD赋值:(最高价<1日前的最低价)*GDQK赋值:如果G=1ANDQKD*1日前的最低价>HG,返回QKD,否则返回如果G1,返回QKD,否则返回0DQKS赋值:DQK的历史累和QKZ赋值:最低价>1日前的最高价 OR 最高价<1日前的最低价QKS1赋值:QKZ的历史累和QKS赋值:GQKS+DQKSQKLX赋值:如果最高价<1日前的最低价,返回1,否则返回如果最低价>1日前的最高价,返回2,否则返回0S赋值:HHVALL(QKS)+1输出DS:S-QKS,线宽为0LL赋值:最低价HH赋值:最高价T1赋值:首次DS=1距今天数+1 L1赋值:T1日前的最低价H1赋值:T1日前的最高价S1赋值:ANY(H1>=LL,T1)X1赋值:ANY(L1<=HH,T1)T2赋值:首次DS=2距今天数+1 L2赋值:T2日前的最低价H2赋值:T2日前的最高价S2赋值:ANY(H2>=LL,T2)X2赋值:ANY(L2<=HH,T2)T3赋值:首次DS=3距今天数+1 L3赋值:T3日前的最低价H3赋值:T3日前的最高价S3赋值:ANY(H3>=LL,T3)X3赋值:ANY(L3<=HH,T3)T4赋值:首次DS=4距今天数+1 L4赋值:T4日前的最低价H4赋值:T4日前的最高价S4赋值:ANY(H4>=LL,T4)X4赋值:ANY(L4<=HH,T4)T5赋值:首次DS=5距今天数+1 L5赋值:T5日前的最低价H5赋值:T5日前的最高价S5赋值:ANY(H5>=LL,T5)X5赋值:ANY(L5<=HH,T5)T6赋值:首次DS=6距今天数+1L6赋值:T6日前的最低价H6赋值:T6日前的最高价S6赋值:ANY(H6>=LL,T6)X6赋值:ANY(L6<=HH,T6)T7赋值:首次DS=7距今天数+1 L7赋值:T7日前的最低价H7赋值:T7日前的最高价S7赋值:ANY(H7>=LL,T7)X7赋值:ANY(L7<=HH,T7)T8赋值:首次DS=8距今天数+1 L8赋值:T8日前的最低价H8赋值:T8日前的最高价S8赋值:ANY(H8>=LL,T8)X8赋值:ANY(L8<=HH,T8)T9赋值:首次DS=9距今天数+1 L9赋值:T9日前的最低价H9赋值:T9日前的最高价S9赋值:ANY(H9>=LL,T9)X9赋值:ANY(L9<=HH,T9)T10赋值:首次DS=10距今天数+1 L10赋值:T10日前的最低价H10赋值:T10日前的最高价S10赋值:ANY(H10>=LL,T10)X10赋值:ANY(L10<=HH,T10)T11赋值:首次DS=11距今天数+1 L11赋值:T11日前的最低价H11赋值:T11日前的最高价S11赋值:ANY(H11>=LL,T11)X11赋值:ANY(L11<=HH,T11)T12赋值:首次DS=12距今天数+1H12赋值:T12日前的最高价S12赋值:ANY(H12>=LL,T12)X12赋值:ANY(L12<=HH,T12)T13赋值:首次DS=13距今天数+1 L13赋值:T13日前的最低价H13赋值:T13日前的最高价S13赋值:ANY(H13>=LL,T13)X13赋值:ANY(L13<=HH,T13)T14赋值:首次DS=14距今天数+1 L14赋值:T14日前的最低价H14赋值:T14日前的最高价S14赋值:ANY(H14>=LL,T14)X14赋值:ANY(L14<=HH,T14)T15赋值:首次DS=15距今天数+1 L15赋值:T15日前的最低价H15赋值:T15日前的最高价S15赋值:ANY(H15>=LL,T15)X15赋值:ANY(L15<=HH,T15)T16赋值:首次DS=16距今天数+1 L16赋值:T16日前的最低价H16赋值:T16日前的最高价S16赋值:ANY(H16>=LL,T16)X16赋值:ANY(L16<=HH,T16)T17赋值:首次DS=17距今天数+1 L17赋值:T17日前的最低价H17赋值:T17日前的最高价S17赋值:ANY(H17>=LL,T17)X17赋值:ANY(L17<=HH,T17)T18赋值:首次DS=18距今天数+1H18赋值:T18日前的最高价S18赋值:ANY(H18>=LL,T18)X18赋值:ANY(L18<=HH,T18)T19赋值:首次DS=19距今天数+1 L19赋值:T19日前的最低价H19赋值:T19日前的最高价S19赋值:ANY(H19>=LL,T19)X19赋值:ANY(L19<=HH,T19)T20赋值:首次DS=20距今天数+1 L20赋值:T20日前的最低价H20赋值:T20日前的最高价S20赋值:ANY(H20>=LL,T20)X20赋值:ANY(L20<=HH,T20)T21赋值:首次DS=21距今天数+1 L21赋值:T21日前的最低价H21赋值:T21日前的最高价S21赋值:ANY(H21>=LL,T21)X21赋值:ANY(L21<=HH,T21)T22赋值:首次DS=22距今天数+1 L22赋值:T22日前的最低价H22赋值:T22日前的最高价S22赋值:ANY(H22>=LL,T22)X22赋值:ANY(L22<=HH,T22)T23赋值:首次DS=23距今天数+1 L23赋值:T23日前的最低价H23赋值:T23日前的最高价S23赋值:ANY(H23>=LL,T23)X23赋值:ANY(L23<=HH,T23)T24赋值:首次DS=24距今天数+1H24赋值:T24日前的最高价S24赋值:ANY(H24>=LL,T24)X24赋值:ANY(L24<=HH,T24)T25赋值:首次DS=25距今天数+1 L25赋值:T25日前的最低价H25赋值:T25日前的最高价S25赋值:ANY(H25>=LL,T25)X25赋值:ANY(L25<=HH,T25)T26赋值:首次DS=26距今天数+1 L26赋值:T26日前的最低价H26赋值:T26日前的最高价S26赋值:ANY(H26>=LL,T26)X26赋值:ANY(L26<=HH,T26)T27赋值:首次DS=27距今天数+1 L27赋值:T27日前的最低价H27赋值:T27日前的最高价S27赋值:ANY(H27>=LL,T27)X27赋值:ANY(L27<=HH,T27)T28赋值:首次DS=28距今天数+1 L28赋值:T28日前的最低价H28赋值:T28日前的最高价S28赋值:ANY(H28>=LL,T28)X28赋值:ANY(L28<=HH,T28)T29赋值:首次DS=29距今天数+1 L29赋值:T29日前的最低价H29赋值:T29日前的最高价S29赋值:ANY(H29>=LL,T29)X29赋值:ANY(L29<=HH,T29)T30赋值:首次DS=30距今天数+1H30赋值:T30日前的最高价S30赋值:ANY(H30>=LL,T30)X30赋值:ANY(L30<=HH,T30)T31赋值:首次DS=31距今天数+1 L31赋值:T31日前的最低价H31赋值:T31日前的最高价S31赋值:ANY(H31>=LL,T31)X31赋值:ANY(L31<=HH,T31)T32赋值:首次DS=32距今天数+1 L32赋值:T32日前的最低价H32赋值:T32日前的最高价S32赋值:ANY(H32>=LL,T32)X32赋值:ANY(L32<=HH,T32)T33赋值:首次DS=33距今天数+1 L33赋值:T33日前的最低价H33赋值:T33日前的最高价S33赋值:ANY(H33>=LL,T33)X33赋值:ANY(L33<=HH,T33)T34赋值:首次DS=34距今天数+1 L34赋值:T34日前的最低价H34赋值:T34日前的最高价S34赋值:ANY(H34>=LL,T34)X34赋值:ANY(L34<=HH,T34)T35赋值:首次DS=35距今天数+1 L35赋值:T35日前的最低价H35赋值:T35日前的最高价S35赋值:ANY(H35>=LL,T35)X35赋值:ANY(L35<=HH,T35)T36赋值:首次DS=36距今天数+1H36赋值:T36日前的最高价S36赋值:ANY(H36>=LL,T36)X36赋值:ANY(L36<=HH,T36)T37赋值:首次DS=37距今天数+1 L37赋值:T37日前的最低价H37赋值:T37日前的最高价S37赋值:ANY(H37>=LL,T37)X37赋值:ANY(L37<=HH,T37)T38赋值:首次DS=38距今天数+1 L38赋值:T38日前的最低价H38赋值:T38日前的最高价S38赋值:ANY(H38>=LL,T38)X38赋值:ANY(L38<=HH,T38)T39赋值:首次DS=39距今天数+1 L39赋值:T39日前的最低价H39赋值:T39日前的最高价S39赋值:ANY(H39>=LL,T39)X39赋值:ANY(L39<=HH,T39)T40赋值:首次DS=40距今天数+1 L40赋值:T40日前的最低价H40赋值:T40日前的最高价S40赋值:ANY(H40>=LL,T40)X40赋值:ANY(L40<=HH,T40)T41赋值:首次DS=41距今天数+1 L41赋值:T41日前的最低价H41赋值:T41日前的最高价S41赋值:ANY(H41>=LL,T41)X41赋值:ANY(L41<=HH,T41)T42赋值:首次DS=42距今天数+1H42赋值:T42日前的最高价S42赋值:ANY(H42>=LL,T42)X42赋值:ANY(L42<=HH,T42)T43赋值:首次DS=43距今天数+1 L43赋值:T43日前的最低价H43赋值:T43日前的最高价S43赋值:ANY(H43>=LL,T43)X43赋值:ANY(L43<=HH,T43)T44赋值:首次DS=44距今天数+1 L44赋值:T44日前的最低价H44赋值:T44日前的最高价S44赋值:ANY(H44>=LL,T44)X44赋值:ANY(L44<=HH,T44)T45赋值:首次DS=45距今天数+1 L45赋值:T45日前的最低价H45赋值:T45日前的最高价S45赋值:ANY(H45>=LL,T45)X45赋值:ANY(L45<=HH,T45)T46赋值:首次DS=46距今天数+1 L46赋值:T46日前的最低价H46赋值:T46日前的最高价S46赋值:ANY(H46>=LL,T46)X46赋值:ANY(L46<=HH,T46)T47赋值:首次DS=47距今天数+1 L47赋值:T47日前的最低价H47赋值:T47日前的最高价S47赋值:ANY(H47>=LL,T47)X47赋值:ANY(L47<=HH,T47)T48赋值:首次DS=48距今天数+1H48赋值:T48日前的最高价S48赋值:ANY(H48>=LL,T48)X48赋值:ANY(L48<=HH,T48)T49赋值:首次DS=49距今天数+1 L49赋值:T49日前的最低价H49赋值:T49日前的最高价S49赋值:ANY(H49>=LL,T49)X49赋值:ANY(L49<=HH,T49)T50赋值:首次DS=50距今天数+1 L50赋值:T50日前的最低价H50赋值:T50日前的最高价S50赋值:ANY(H50>=LL,T50)X50赋值:ANY(L50<=HH,T50)T51赋值:首次DS=51距今天数+1 L51赋值:T51日前的最低价H51赋值:T51日前的最高价S51赋值:ANY(H51>=LL,T51)X51赋值:ANY(L51<=HH,T51)T52赋值:首次DS=52距今天数+1 L52赋值:T52日前的最低价H52赋值:T52日前的最高价S52赋值:ANY(H52>=LL,T52)X52赋值:ANY(L52<=HH,T52)T53赋值:首次DS=53距今天数+1 L53赋值:T53日前的最低价H53赋值:T53日前的最高价S53赋值:ANY(H53>=LL,T53)X53赋值:ANY(L53<=HH,T53)T54赋值:首次DS=54距今天数+1H54赋值:T54日前的最高价S54赋值:ANY(H54>=LL,T54)X54赋值:ANY(L54<=HH,T54)T55赋值:首次DS=55距今天数+1 L55赋值:T55日前的最低价H55赋值:T55日前的最高价S55赋值:ANY(H55>=LL,T55)X55赋值:ANY(L55<=HH,T55)T56赋值:首次DS=56距今天数+1 L56赋值:T56日前的最低价H56赋值:T56日前的最高价S56赋值:ANY(H56>=LL,T56)X56赋值:ANY(L56<=HH,T56)T57赋值:首次DS=57距今天数+1 L57赋值:T57日前的最低价H57赋值:T57日前的最高价S57赋值:ANY(H57>=LL,T57)X57赋值:ANY(L57<=HH,T57)T58赋值:首次DS=58距今天数+1 L58赋值:T58日前的最低价H58赋值:T58日前的最高价S58赋值:ANY(H58>=LL,T58)X58赋值:ANY(L58<=HH,T58)T59赋值:首次DS=59距今天数+1 L59赋值:T59日前的最低价H59赋值:T59日前的最高价S59赋值:ANY(H59>=LL,T59)X59赋值:ANY(L59<=HH,T59)T60赋值:首次DS=60距今天数+1H60赋值:T60日前的最高价S60赋值:ANY(H60>=LL,T60)X60赋值:ANY(L60<=HH,T60)T61赋值:首次QKS=0距今天数+1L61赋值:T61日前的最低价H61赋值:T61日前的最高价S61赋值:ANY(H61>=LL,T61)X61赋值:ANY(L61<=HH,T61)W1赋值:数据位置状态=2 AND X1=0 OR S1=0WW1赋值:如果W1*T1,返回W1*T1,否则返回9999W2赋值:数据位置状态=2 AND X2=0 OR S2=0WW2赋值:如果W2*T2,返回W2*T2,否则返回9999W3赋值:数据位置状态=2 AND X3=0 OR S3=0WW3赋值:如果W3*T3,返回W3*T3,否则返回9999W4赋值:数据位置状态=2 AND X4=0 OR S4=0WW4赋值:如果W4*T4,返回W4*T4,否则返回9999W5赋值:数据位置状态=2 AND X5=0 OR S5=0WW5赋值:如果W5*T5,返回W5*T5,否则返回9999W6赋值:数据位置状态=2 AND X6=0 OR S6=0WW6赋值:如果W6*T6,返回W6*T6,否则返回9999W7赋值:数据位置状态=2 AND X7=0 OR S7=0WW7赋值:如果W7*T7,返回W7*T7,否则返回9999W8赋值:数据位置状态=2 AND X8=0 OR S8=0WW8赋值:如果W8*T8,返回W8*T8,否则返回9999W9赋值:数据位置状态=2 AND X9=0 OR S9=0WW9赋值:如果W9*T9,返回W9*T9,否则返回9999W10赋值:数据位置状态=2 AND X10=0 OR S10=0WW10赋值:如果W10*T10,返回W10*T10,否则返回9999 W11赋值:数据位置状态=2 AND X11=0 OR S11=0W12赋值:数据位置状态=2 AND X12=0 OR S12=0WW12赋值:如果W12*T12,返回W12*T12,否则返回9999 W13赋值:数据位置状态=2 AND X13=0 OR S13=0WW13赋值:如果W13*T13,返回W13*T13,否则返回9999 W14赋值:数据位置状态=2 AND X14=0 OR S14=0WW14赋值:如果W14*T14,返回W14*T14,否则返回9999 W15赋值:数据位置状态=2 AND X15=0 OR S15=0WW15赋值:如果W15*T15,返回W15*T15,否则返回9999 W16赋值:数据位置状态=2 AND X16=0 OR S16=0WW16赋值:如果W16*T16,返回W16*T16,否则返回9999 W17赋值:数据位置状态=2 AND X17=0 OR S17=0WW17赋值:如果W17*T17,返回W17*T17,否则返回9999 W18赋值:数据位置状态=2 AND X18=0 OR S18=0WW18赋值:如果W18*T18,返回W18*T18,否则返回9999 W19赋值:数据位置状态=2 AND X19=0 OR S19=0WW19赋值:如果W19*T19,返回W19*T19,否则返回9999 W20赋值:数据位置状态=2 AND X20=0 OR S20=0WW20赋值:如果W20*T20,返回W20*T20,否则返回9999 W21赋值:数据位置状态=2 AND X21=0 OR S21=0WW21赋值:如果W21*T21,返回W21*T21,否则返回9999 W22赋值:数据位置状态=2 AND X22=0 OR S22=0WW22赋值:如果W22*T22,返回W22*T22,否则返回9999 W23赋值:数据位置状态=2 AND X23=0 OR S23=0WW23赋值:如果W23*T23,返回W23*T23,否则返回9999 W24赋值:数据位置状态=2 AND X24=0 OR S24=0WW24赋值:如果W24*T24,返回W24*T24,否则返回9999 W25赋值:数据位置状态=2 AND X25=0 OR S25=0WW25赋值:如果W25*T25,返回W25*T25,否则返回9999 W26赋值:数据位置状态=2 AND X26=0 OR S26=0W27赋值:数据位置状态=2 AND X27=0 OR S27=0WW27赋值:如果W27*T27,返回W27*T27,否则返回9999 W28赋值:数据位置状态=2 AND X28=0 OR S28=0WW28赋值:如果W28*T28,返回W28*T28,否则返回9999 W29赋值:数据位置状态=2 AND X29=0 OR S29=0WW29赋值:如果W29*T29,返回W29*T29,否则返回9999 W30赋值:数据位置状态=2 AND X30=0 OR S30=0WW30赋值:如果W30*T30,返回W30*T30,否则返回9999 W31赋值:数据位置状态=2 AND X31=0 OR S31=0WW31赋值:如果W31*T31,返回W31*T31,否则返回9999 W32赋值:数据位置状态=2 AND X32=0 OR S32=0WW32赋值:如果W32*T32,返回W32*T32,否则返回9999 W33赋值:数据位置状态=2 AND X33=0 OR S33=0WW33赋值:如果W33*T33,返回W33*T33,否则返回9999 W34赋值:数据位置状态=2 AND X34=0 OR S34=0WW34赋值:如果W34*T34,返回W34*T34,否则返回9999 W35赋值:数据位置状态=2 AND X35=0 OR S35=0WW35赋值:如果W35*T35,返回W35*T35,否则返回9999 W36赋值:数据位置状态=2 AND X36=0 OR S36=0WW36赋值:如果W36*T36,返回W36*T36,否则返回9999 W37赋值:数据位置状态=32 AND X37=0 OR S37=0 WW37赋值:如果W37*T37,返回W37*T37,否则返回9999 W38赋值:数据位置状态=2 AND X38=0 OR S38=0WW38赋值:如果W38*T38,返回W38*T38,否则返回9999 W39赋值:数据位置状态=2 AND X39=0 OR S39=0WW39赋值:如果W39*T39,返回W39*T39,否则返回9999 W40赋值:数据位置状态=2 AND X40=0 OR S40=0WW40赋值:如果W40*T40,返回W40*T40,否则返回9999 W41赋值:数据位置状态=2 AND X41=0 OR S41=0W42赋值:数据位置状态=2 AND X42=0 OR S42=0WW42赋值:如果W42*T42,返回W42*T42,否则返回9999 W43赋值:数据位置状态=2 AND X43=0 OR S43=0WW43赋值:如果W43*T43,返回W43*T43,否则返回9999 W44赋值:数据位置状态=2 AND X44=0 OR S44=0WW44赋值:如果W44*T44,返回W44*T44,否则返回9999 W45赋值:数据位置状态=2 AND X45=0 OR S45=0WW45赋值:如果W45*T45,返回W45*T45,否则返回9999 W46赋值:数据位置状态=2 AND X46=0 OR S46=0WW46赋值:如果W46*T46,返回W46*T46,否则返回9999 W47赋值:数据位置状态=2 AND X47=0 OR S47=0WW47赋值:如果W47*T47,返回W47*T47,否则返回9999 W48赋值:数据位置状态=2 AND X48=0 OR S48=0WW48赋值:如果W48*T48,返回W48*T48,否则返回9999 W49赋值:数据位置状态=2 AND X49=0 OR S49=0WW49赋值:如果W49*T49,返回W49*T49,否则返回9999 W50赋值:数据位置状态=2 AND X50=0 OR S50=0WW50赋值:如果W50*T50,返回W50*T50,否则返回9999 W51赋值:数据位置状态=2 AND X51=0 OR S51=0WW51赋值:如果W51*T51,返回W51*T51,否则返回9999 W52赋值:数据位置状态=2 AND X52=0 OR S52=0WW52赋值:如果W52*T52,返回W52*T52,否则返回9999 W53赋值:数据位置状态=2 AND X53=0 OR S53=0WW53赋值:如果W53*T53,返回W53*T53,否则返回9999 W54赋值:数据位置状态=2 AND X54=0 OR S54=0WW54赋值:如果W54*T54,返回W54*T54,否则返回9999 W55赋值:数据位置状态=2 AND X55=0 OR S55=0WW55赋值:如果W55*T55,返回W55*T55,否则返回9999 W56赋值:数据位置状态=2 AND X56=0 OR S56=0W57赋值:数据位置状态=2 AND X57=0 OR S57=0WW57赋值:如果W57*T57,返回W57*T57,否则返回9999W58赋值:数据位置状态=2 AND X58=0 OR S58=0WW58赋值:如果W58*T58,返回W58*T58,否则返回9999W59赋值:数据位置状态=2 AND X59=0 OR S59=0WW59赋值:如果W59*T59,返回W59*T59,否则返回9999W60赋值:数据位置状态=2 AND X60=0 OR S60=0WW60赋值:如果W60*T60,返回W60*T60,否则返回9999W61赋值:数据位置状态=2 AND X61=0 OR S61=0WW61赋值:如果W61*T61,返回W61*T61,否则返回9999MIN1赋值:WW1和WW2的较小值WW10,WW11,WW12,WW13,WW14,WW15,WW16)MIN2赋值:WW17和WW18的较小值WW26,WW27,WW28,WW29,WW30,WW31,WW32)MIN3赋值:WW33和WW34的较小值WW42,WW43,WW44,WW45,WW46,WW47,WW48)MIN4赋值:WW49和WW50的较小值WW58,WW59,WW60,WW61,MIN1,MIN2,MIN3)MIN5A赋值:如果MIN4>=9999,返回0,否则返回MIN4MIN5赋值:如果数据位置状态=2,返回MIN4,否则返回0W赋值:若数据位置状态=2则将最近MIN5周期置为1TX赋值:首次W距今天数QKLX1赋值:TX日前的QKLXQKH赋值:TX+1日前的最高价QKL赋值:TX+1日前的最低价QKHL赋值:如果QKLX1=2,返回QKH,否则返回如果QKLX1=1,返回QKL,否则返回0WL赋值:TX+1日内最低价的最低值WH赋值:TX+1日内最高价的最高值WL1赋值:LLVALL(WL)WH1赋值:HHVALL(WH)WHL赋值:如果QKLX1=2,返回WL1,否则返回如果QKLX1=1,返回WH1,否则返回0当满足条件TX=0ANDQKLX=1时,在QKL位置书写文字,VALIGN2,画白色当满足条件TX=0ANDQKLX=2时,在QKH位置书写文字,VALIGN0,画白色当满足条件W时,在QKHL和WHL位置之间画柱状线,宽度为13,0不为0则画空心柱.,画深灰色,LAYER0输出MA5:收盘价的N1日简单移动平均,画白色,LAYER0输出MA10:收盘价的N2日简单移动平均,画黄色,LAYER0输出MA30:收盘价的N3日简单移动平均,画洋红色,LAYER0该公式包含未来函数:BACKSET。

大智慧“跳空缺口”和“冷暖气带”主图公式

大智慧“跳空缺口”和“冷暖气带”主图公式

大智慧“跳空缺口”和“冷暖气带”主图公式的完整代码,你觉得有用不妨试试:{均线系统}ma5:ma(c,5),colorwhite,precis2;ma10:ma(c,10),coloryellow,precis2;ma20:ma(c,20),colormagenta,precis2;ma60:ma(c,60),colorgreen,precis2,linethick1;ma120:ma(c,120),colorgray,precis2,linethick1;{/均线系统}{T线}TLine:ma(ref(hhv(max(c,o),30),1),2),precis2,color808000,pointdot;{/T线}{冷暖气带}{ma60:=ma(c,60);ma120:=ma(c,120);}stickline(ma60>=ma120 and (l>=ma60 or h<ma120),ma120,ma60,0.1,0), color000033,layer7; stickline(ma60>=ma120 and h>=ma60 and l<ma60 and l>=ma120,ma120,l,0.1,0), color000033,layer7;stickline(ma60>=ma120 and h<ma60 and l>=ma120,ma120,l,0.1,0),color000033,layer7; stickline(ma60>=ma120 and h<ma60 and l>=ma120,h,ma60,0.1,0), color000033,layer7; stickline(ma60>=ma120 and h<ma60 and h>=ma120 and l<=ma120,h,ma60,0.1,0), color000033,layer7;stickline(ma60<ma120 and (l>ma120 or h<ma60),ma60,ma120,0.1,0),color003300,layer7; stickline(ma60<ma120 and h>=ma120 and l<ma120 and l>=ma60,ma60,l,0.1,0),color003300,layer7;stickline(ma60<ma120 and h<ma120 and l>=ma60,ma60,l,0.1,0),color003300,layer7;stickline(ma60<ma120 and h<ma120 and l>=ma60,h,ma120,0.1,0),color003300,layer7; stickline(ma60<ma120 and h<ma120 and h>=ma60 and l<=ma60,h,ma120,0.1,0),color003300,layer7;{/冷暖气带}{涨停板}zt:=floor((c*100+0.5))/100>=(floor(ref(c,1)*1.1*100+0.5)/100) and floor((c*100+0.5))/100<=(floor(ref(c,1)*1.1023*100+0.5)/100) and datatype=8;stickline(zt,o,c,7,0),coloryellow,layer0;{/涨停板}{五线顺上}{ma5:=ma(c,5);ma10:=ma(c,10);ma20:=ma(c,20);ma60:=ma(c,60);ma120:=ma(c,120);}td:=barscount(c);obv:=if(td=1,vol*if(c>o,1,if(c<o,-1,0)),ref(vol,td-1)*if(ref(c,td-1)>ref(o,td-1),1,if(ref(c,td-1)<ref(o,td-1),-1,0))+sum(if(c>ref(c,1),vol,if(c<ref(c,1),-vol,0)),0));五线顺上:=ma5=hhv(ma5,3) and ma10=hhv(ma10,3) and ma20=hhv(ma20,3) and ma60=hhv(ma60,3) and ma120=hhv(ma120,3) and c>max(max(max(max(ma5,ma10),ma20),ma60),ma120)and (ma60>ma120 or abs(ma60-ma120)<=max(ma60,ma120)*0.02) and c/ref(ma60,barslast(cross(ma60,ma120)))<1.6 and c>o and max(obv,max(ref(obv,1),ref(obv,2)))=hhv(obv,119) and obv>ref(obv,1) and obv>ma(obv,30); drawtext(五线顺上and ref(五线顺上,1)=0 and sumbars(五线顺上,2)>9,l,'↖顺'),color0080ff,align0;{/五线顺上}{季均价}m:=month;d0406:=barslast(m=3);d0106:=barslast(m=12);a0103:=sum(amount,d0106)-sum(amount,d0406);v0103:=sum(vol,d0106)-sum(vol,d0406);p0103:=if(m>=4 and m<=6,a0103/v0103/100,0);d0709:=barslast(m=6);d0409:=barslast(m=3);a0406:=sum(amount,d0409)-sum(amount,d0709);v0406:=sum(vol,d0409)-sum(vol,d0709);p0406:=if(m>=7 and m<=9,a0406/v0406/100,0);d1012:=barslast(m=9);d0712:=barslast(m=6);a0709:=sum(amount,d0712)-sum(amount,d1012);v0709:=sum(vol,d0712)-sum(vol,d1012);p0709:=if(m>=10 and m<=12,a0709/v0709/100,0);d0103:=barslast(m=12);d1003:=barslast(m=9);a1012:=sum(amount,d1003)-sum(amount,d0103);v1012:=sum(vol,d1003)-sum(vol,d0103);p1012:=if(m>=1 and m<=3,a1012/v1012/100,0);jjj:p0103+p0406+p0709+p1012,precis2,linethick0,colorff8080;{/季均价};{乖离率}bias5:(close-ma(close,5))/ma(close,5)*100,linethick0,precis1,color0080ff;bias60:(close-ma(close,60))/ma(close,60)*100,linethick0,precis1,color0080ff;{/乖离率}{跳空缺口}i:=0;flag:=0;s1:=0;s2:=0;while i<barslast(dispstatus=1)-barslast(barstatus=2)doif (ref(h,i)<ref(l,i+1) and ref(l,i+1)>hhv(h,i+1) or (ref(l,i)>ref(h,i+1) and ref(h,i+1)<llv(l,i+1)))then begin flag:=1;s1:=backset(barstatus=2,i+1);s2:=count(s1,0);i:=barslast(dispstatus=1);endelse i:=i+1;vl:=if(ref(h,s2)<llv(l,s2),ref(h,s2)+0.01,hhv(h,s2)+0.01);vh:=if(ref(h,s2)<llv(l,s2),llv(l,s2)-0.01,ref(l,s2)-0.01);stickline(flag,vl,vh,20*s2+20,0),colorc0c0c0,align1,layer7;drawtext(flag,vl,numtostrn(vl-0.01,2)+'-'+numtostrn(vh+0.01,2)),align2,colorgreen;{/跳空缺口};{板块流通}drawtextabs(1,5, '所属板块:'+bkname+'、流通盘:'+numtostr(finance2(37)/10000)+'亿股'+'、流通市值:'+numtostr(dynainfo(57)/100000000)+'亿元'),color8000ff,layer7;{/板块流通};。

大智慧资金K线主图指标公式编程思路破译

大智慧资金K线主图指标公式编程思路破译

大智慧资金K线主图指标公式编程思路破译
编程思路破译
AMV赋值:成交量(手)的5日[1日权重]移动平均
输出【最高】:AMV*最高价/10,线宽为0
输出【最低】:AMV*最低价/10,线宽为0
输出【收盘】:AMV*收盘价/10,线宽为0
输出【开盘】:1日前的【收盘】,线宽为0
输出【5日】:【收盘】的5日简单移动平均,COLORFFFF00
当满足条件【收盘】>【开盘】时,在【最高】和【最低】位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR0000FF 当满足条件【收盘】>【开盘】时,在【收盘】和【开盘】位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF 当满足条件【收盘】<【开盘】时,在【收盘】和【开盘】位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR00FF00 当满足条件【收盘】<【开盘】时,在【最高】和【最低】位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR00FF00。

大智慧L2跳空缺口

大智慧L2跳空缺口

大智慧L2跳空缺口知无不言版主说得没错,大智慧L2函数不够,是有很大的麻烦,下面我试做一个,您参考看看{最后1个跳空缺口大智慧L2 by一鸣}k1:=l>ref(h,1);k2:=barslast(k1);k4:=h<ref(l,1);k5:=barslast(k4);k7:=k2<k5;k3:=backset(BARSTATUS=2 and k7,k2+1);k6:=backset(BARSTATUS=2 and not(k7),k5+1);k8:=filter(backset(BARSTATUS=2 ,if(k7,k2+1,k5+1)),1000);STICKLINE((k3 and (llv(l,k2)>ref(h,k2+1) or k1)) or (BARSTATUS=2 and k1),ref(l,k2),ref(l,k2),15,0),colorred;STICKLINE((k3 and (llv(l,k2)>ref(h,k2+1) or k1)) or (BARSTATUS=2 and k1),ref(h,k2+1),ref(h,k2+1),15,0),colorred;STICKLINE((k6 and (hhv(h,k5)<ref(l,k5+1) or k4)) or (BARSTATUS=2 and k4),ref(h,k5),ref(h,k5),15,0),colorgreen;STICKLINE((k6 and (hhv(h,k5)<ref(l,k5+1) or k4)) or (BARSTATUS=2 and k4),ref(l,k5+1),ref(l,k5+1),15,0),colorgreen;DRAWTEXT(k8,if(k7,l,h),'最后缺口'),VALIGN2,coloryellow;{飞狐的}fh:=h;fl:=l;for i=datacount-1 downto 1 do beginif fh<fh[i+1] thenfh:=fh[i+1];if fl>fl[i+1] thenfl:=fl[i+1];end;qk:=l>ref(h,1)OR H<ref(L,1);G:=IF(l>ref(h,1),L,IF(H<ref(L,1),ref(L,1),0));D:=IF(l>ref(h,1),ref(H,1),IF(H<ref(L,1),H,0));S:=IF(l>ref(h,1),2,IF(H<ref(L,1),1,0));tj:=s=2 and fL<=G AND fL>=D OR s=1 and fH<G AND fH>=D ;w:=BARSSINCE(BACKSET(BARSTA TUS=2,BARSLAST(TJ*BARPOS=BARPOS)+1))+1;S1:=IF(ref(S,W-1)=2,ref(fL,w-1),IF(ref(S,W-1)=1,ref(fH,w-1),0));S2:=IF(ref(S,W-1)=2,ref(D,w-1),IF(ref(S,W-1)=1,ref(G,w-1),0));A:=MAX(S1,S2);B:=MIN(S1,S2);缺口:B[datacount],COLORWHITE,LINETHICK,,PRECISION2;→:A[datacount],COLORWHITE,LINETHICK,PRECISION2; STICKLINE(w,S1,S2,12,0),COLORGRAY;DRAWTEXT(BARSTATUS=2,A,NUMTOSTR(B,2)+'-'+NUMTOSTR(A,2));。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

大智慧缺口画线主图指标公式大智慧缺口画线主图指标公式2011-01-14 股旁网分类:大智慧公式标签: 主图画线缺口n:=5;{缺口}LL:=REF(L,1);HH:=REF(H,1);SQK:=L&gt;HH;XQK:=H&lt;LL;DRAWTEXT(SQK,L*0.92,' 向上跳空'),COLORRED; DRAWTEXT(XQK,H*1.08,' 逃命跳空'),COLORYELLOW; STICKLINE(SQK,L,HH,4*N,1),COLORRED; STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)&lt;REF(INDEXC,2) ANDREF(C,2)*0.95&gt;=REF(C,1) ANDREF(O,1)/REF(C,1)&gt;=1.05AND REF(C,1)&lt;REF(O,1) AND C&gt;O ANDC/O&gt;=1.05 AND C&gt;REF(O,1)AND REF(VOL,1)&lt;REF(VOL,2);STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.98,'○追'),COLORYELLOW;V AR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV( LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(L OW,5))*100,5,1),3.2,1);V AR2:=8;CC:=CROSS(V AR1,V AR2);DRAWTEXT(CC,L*0.98,'◎买'),COLOR0099FF;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*A VEDEV(TYP,14))&lt;=2 0 AND REF(MA(C,21),1)&lt;MA(C,21);TJ1:=O&lt;MAX(REF(C,1),REF(O,1));TJ2:=REF(C,1)&gt;=MA(C,21) AND L/MA(C,21)&gt;=1.015 AND MA(C,144)&gt;MA(C,250) AND V&lt;MA(V,10) ANDTJ3:=REF(MA(C,250),90)&lt;REF(MA(C,144),90) ANDMA(C,144)&gt;MA(C,250) AND O&gt;MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 ANDREF(C,2)/REF(O,2)&lt;1.06 AND C/O&lt;=1.05 ANDHHV(H,5)/LLV(L,30)&gt;=1.65 ANDREF(H,5)/REF(L,1)&gt;=1.15 ANDREF(C,1)/REF(O,1)&lt;=0.995 AND (L&lt;REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)&gt;=2) ANDO/REF(L,1)&lt;=1.04OR TYP1 AND TJ1 AND O/REF(L,1)&lt;1.05 ANDREF(L,1)/REF(O,4)&lt;=0.85 ANDREF(C,1)/REF(O,1)&lt;=1.03 AND O&lt;REF(C,1) AND HHV(H,5)/LLV(L,35)&gt;1.35 AND V&lt;MA(V,10);TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)&lt;1.05 AND O/LLV(L,3)&lt;1.1 AND REF(C,1)/REF(0,1)&lt;=1.05 AND HHV(H,4)/LLV(L,16)&gt;=1.35 ANDREF(O,4)/REF(C,2)&gt;=1.08 ANDREF(C,2)/REF(O,2)&lt;=0.995 AND (REF(L,2)&lt;REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))&gt;=2) ANDOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)&gt;=1.3 AND REF(C,5)&lt;REF(H,5) AND REF(C,4)&lt;REF(C,5) AND REF(C,3)&lt;REF(C,4) AND REF(C,2)&lt;REF(C,3) AND REF(C,1)&lt;REF(C,2) AND L&lt;REF(L,1) ANDMA5/O&lt;1.1;DATOUJI:=TYP1 AND TJ3 AND O&lt;REF(C,5) ANDO&lt;=REF(C,1) AND REF(H,10)/O&gt;=1.17 ANDHHV(H,10)/LLV(L,30)&gt;1.4 AND(MA(V,10)/HHV(V,10)&gt;0.5 AND V/HHV(V,10)&gt;0.2 AND V/HHV(V,10)&lt;0.4 OR REF(V,3)&gt;REF(V,2) AND REF(V,2)&gt;REF(V,1)) AND REF(C,1)/REF(C,2)&lt;=1.02; DATOUJI1:=TYP1 AND TJ3 AND O&lt;REF(L,6) ANDO&lt;MIN(REF(C,5)AND REF(O,5),5) ;DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)&gt;MA(VOL,10) AND L&lt;MA(C,20) ANDC&gt;=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/S MA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'◎短卖'),COLORGREEN; C3:=REF(C,1);涨停:=IF((C-C3)*100/C3&gt;=(10-0.01*100/C3),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3&gt;=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2&gt;0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1; DRAWICON(突破盘整,L-0.10,1);{画线高低}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);{低点}DRAWTEXTABS(5,5,'股旁网'),linethick2,COLOR00EEff;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&gt;=E2)) OR barstatus=2 OR barscount(c)=1;L1:=(D2 AND not(D1 AND E1&lt;E2)); H2:=D1 AND not(D2 AND E1&gt;=E2);X1:=ref(barslast(H1),1)+1; F1:=backset(H1 ANDcount(L1,X1)&gt;0,llvbars(if(L1,l,10000),X1));G1:=F1&gt;ref(F1,1); I1:=backset(G1,2);LD:=I1&gt;ref(I1,1);{过滤后低点}L2:=LD OR barstatus=2 OR barscount(c)=1;X2:=ref(barslast(L2),1)+1; F2:=backset(L2 ANDcount(H2,X2)&gt;0,hhvbars(if(H2,h,0),X2));G2:=F2&gt;ref(F2,1); I2:=backset(G2,2);HD:=I2&gt;ref(I2,1);{过滤后高点}R1:=backset(barstatus=2,barslast(HD)+1); S1:=R1&gt;ref(R1,1); {前一高}T1:=backset(barstatus=2,barslast(LD)+1); U1:=T1&gt;ref(T1,1); {前一低}R2:=backset(S1,ref(barslast(HD),1)+2); S2:=R2&gt;ref(R2,1); {前二高}T2:=backset(U1,ref(barslast(LD),1)+2); U2:=T2&gt;ref(T2,1); {前二低}T3:=backset(U2,ref(barslast(LD),1)+2); U3:=T3&gt;ref(T3,1); {前三低}T4:=backset(U3,ref(barslast(LD),1)+2); U4:=T4&gt;ref(T4,1); {前四低}R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3&gt;ref(R3,1); {前三高}R4:=backset(S3,ref(barslast(HD),1)+2); S4:=R4&gt;ref(R4,1); {前四高}短期压力:drawline(S2,h,S1,h,1),Colorred;短期支撑:drawline(U2,l,U1,l,1),Colorgreen;中期压力:drawline(S3,h,S2,h,1),Coloryellow;中期支撑:drawline(U3,l,U2,l,0),Colorgreen;长期压力:drawline(S4,h,S3,h,1),COLORwhite;长期支撑:drawline(U4,l,U3,l,0),Colorgreen;DRAWICON(S1,H*1.01,10);DRAWICON(S2,H*1.01,10);DRAWICON(S3,H*1.01,10);DRAWICON(S4,H*1.01,10);DRAWICON(U1,L*0.99,9);DRAWICON(U2,L*0.99,9);DRAWICON(U3,L*0.99,9);DRAWICON(U4,L*0.99,9);与大智慧缺口画线主图指标公式相关的股票公式大智慧日出股海决策主图指大智慧高抛低吸主图指标公大智慧牵牛线主图指标公式大智慧王子量柱主图指标公大智慧底部雷达主图指标公大智慧极品黄金主图指标公-本周热门大智慧公式大智慧很好的入场指标公式大智慧明天重心指标公式大智慧高抛低吸主图指标公式大智慧布林短买指标公式大智慧主力增减指标公式大智慧滑头主力指标公式大智慧猎庄端窝分时指标公式大智慧主力入货指标公式本月热门大智慧公式大智慧精确打击指标公式大智慧新美人眼指标公式大智慧极品黄金主图指标公式大智慧主力散户筹码+选股指标公式大智慧波段王操盘主图指标公式大智慧新发动机指标公式大智慧提前买入指标公式大智慧精确抄底选股指标公式年度热门大智慧公式大智慧专抓涨停的动态买卖公式大智慧实战很强的公式大智慧超级资金指标公式大智慧大小黑马全拿下公式大智慧资金进出公式大智慧买卖天机公式大智慧主力期间动态公式大智慧分时均线公式总榜热门大智慧公式大智慧专抓涨停的动态买卖公式大智慧实战很强的公式大智慧超级资金指标公式大智慧大小黑马全拿下公式大智慧资金进出公式大智慧买卖天机公式大智慧主力期间动态公式大智慧分时均线公式。

相关文档
最新文档