大智慧组合主图指标公式
大智慧公式集锦之主图
大智慧公式集锦之主图{三线玄机}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天最高值,通过运算显示出不同于其它均线运行的趋势,当三条均线由下或由上发散粘合时,股价在不同周期内的最高值趋于一致,股价变动的几率比较大。
大智慧最佳组合公式
大智慧最佳组合公式[极品原码](注:红色部分有错误)1.大智慧的:{飞天格格}Var1:=MA(CLOSE,30);海底: Var1-2*STD(CLOSE,60),colorcyan,linethick2;水平面: MA(CLOSE,60),pointdot;天际: Var1+2*STD(CLOSE,60);FLY1: MA(CLOSE,5);FLY2: MA(CLOSE,10);Var2:=CROSS(MA(CLOSE,5),MA(CLOSE,30));DRAWICON(Var2,LOW-LOW*0.01,1);DRAWTEXT(Var2 AND CLOSE>MA(CLOSE,250),LOW-LOW*0.02,'←少量买 '),color yellow;DRAWTEXT(Var2 AND CLOSE>=MA(CLOSE,60) AND CLOSE<=MA(CLOSE,250),LOW-LO W*0.02,'←半仓买'),coloryellow;DRAWTEXT(Var2 AND CLOSE<MA(CLOSE,60),LOW-LOW*0.02,'←全仓买 '),colory ellow;-----------------------------------------------------------------------------------------------2.大智慧的:[红烧牛排]HSNP1:=CLOSE-REF(CLOSE,1);HSNP2:=IF(CLOSE-REF(CLOSE,1)>=0,HSNP1,0);HSNP3:=REF(CLOSE,1)-CLOSE;HSNP4:=IF(CLOSE-REF(CLOSE,1)<=0,HSNP3,0);HSNP5:=SUM(HSNP2,90)/SUM(HSNP4,90);HSNP6:=100-100/(1+HSNP5);HSNP7:=EMA(HSNP6,21);HSNP8:=EMA(HSNP7,5);HSNP:=EMA(HSNP7,3);np: (HSNP7-HSNP),COLOR00ffcc,linethick2;nl:(HSNP-HSNP7),COLORYELLOW,linethick2;STICKLINE(np>0,0,np,1,2),COLORRED;STICKLINE(nl<0,0,nl,1,2),COLORRED;STICKLINE(np<0,0,np,1,2),COLOR669933;STICKLINE(nl>0,0,nl,1,2),COLOR669933;金叉:=CROSS(np,0.005);死叉:=CROSS(nl,0.005);牛排:IF(金叉,1,0),COLORRED;牛肋:IF(死叉,1,0),COLOR669933 ;ljx:0{,LINEDOT},COLORBLUE;------------------------------------------------------------------------------------------大智慧的:[猎杀大盘]猎枪:sma(SMA((C-LLV(L,80))/(HHV(H,80)-LLV(L,80))*100,10,1),10,1)linethick2;收兵:SMA(猎枪,10,1),linethick2,color808000;W1:=SMA((HHV(H,288)-C)/(HHV(H,288)-LLV(L,288))*100,10,1);瞄准:SMA(W1,10,1),POINTDOT,COLORGREEN;天空:stickline(c,85,85,5,1);大地:stickline(c,9,9,5,1);DRAWTEXT(CROSS(收兵,猎枪) and 收兵>20,猎枪,'杀'),COLORGREEN; DRAWTEXT(CROSS(收兵,猎枪) and 收兵<50 and 收兵>20,猎枪,' 留意!'),COL OR00FF00;DRAWTEXT(CROSS(猎枪,收兵) and 收兵<20,猎枪,'猎!'),COLOR00FF00; DRAWTEXT(CROSS(瞄准,80),瞄准,'瞄准!'),COLORRED;DRAWTEXT(CROSS(瞄准,85),瞄准,'猎物出现!!'),COLORWHITE;var1:=sma((VOL/WINNER(CLOSE))/10000000,10,1);出击:if(var1>120,var1,0),STICK,COLORRED ;大盘底部:if(var1>85,var1,0),COLORRED;---------------------------------------------------------------------------------------------大智慧的:{308-至简定稿}stickline(c<=o,C,o,8,0),COLORCYAN;stickline(c<=o,H,L,0.1,0),COLORCYAN;stickline(c>=o,C,o,8,1),COLORRED;stickline(c>=o,C,H,0.1,0),COLORRED;stickline(c>=o,L,O,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {and TTZF>=ZF}; STICKLINE(TTZF>=2.50 ,o ,c ,8,0),color00ffff;顶部压力:HHv(ma(h,11),50),colorff8833,LINETHICK2;中轨:HHv(ma(h,11),15),colorred,LINETHICK2;趋势:llv(ma(h,11),1),colorgreen,LINETHICK2;百色胡子:llv(ma(h,11),8),COLORmagenta,LINETHICK2;--------------------------------------------------------------------------------------------135战法----不错的战法[极品公式原码]大智慧的:[135战法综合]股道短:=MA(C,13);股道中:=MA(C,34);股道长:=MA(C,55);短交长:=CROSS(股道短,股道长);中交长:=CROSS(股道中,股道长);黑马粗选:短交长 OR 中交长;空头排列:=股道短<股道中 AND 股道短<股道长 AND 股道中<股道长;走平上行:=股道短>=REF(股道短,1);红杏出墙:O<股道短 AND C>股道短 AND 走平上行 AND 空头排列;多头排列:=股道短>股道中 AND 股道短>股道长 AND 股道中>股道长;满园春色:O<股道短 AND C>股道短 AND 多头排列;基础:=股道长>REF(股道长,1) AND 股道短>股道长 AND 股道中>股道长;梅开二度:基础 AND CROSS(股道短,股道中);三线齐推:O<股道短 AND O<股道中 AND O<股道长 AND C>股道短 AND C>股道中 AND C>股道长;[非常好的大智慧主图公式,极品源码]搏庄主线:=(ma(close,6)+ma(close,12)+ma(close,24)+ma(close,36))/4,linethick2,colorff00ff; 股价重心:=dma(amount/vol/100,vol/capital),colorgreen,linethick2;ma14:=ema(close,14);ma34:=ema(close,26);ma54:=ema(close,54);ma90:=ema(close,90);ma120:ema(close,120),pointdot,linethick2,colorwhite;年线:ema(c,250),coloryellow,linethick2;{中短波}hz:=ema(close,13);短波:ema(hz,1),color00dd00,linethick1;中波:ema(hz,26),colorred,linethick1;均线148天:=ema(c,148),pointdot,linethick1,colorgreen;成本:=sum(amount,0)/sum(vol,0)/100,coloryellow ,linethick2 ;hz2:ema(hz,8),colorgreen,linethick2;hz4:ema(hz,39),colorff00ff,linethick2;a1:stickline(hz2<hz4,短波,hz4,1.5,0),colorblue ;a2:stickline(短波>hz2,短波,hz2,3,0),colorgreen;a3:stickline(中波>hz4,中波,hz4,2,0),colorff00ff;{慢速kdj}rsv:=(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100;fastk:=sma(rsv,12,1);k:=sma(fastk,9,1),coloryellow;d:=sma(k,3,1),linethick2,colorblue;j:=3*k-2*d,linethick1,colorgreen;{中波}var11:=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);var22:=100-var11;中势线:=(-1)*(ema(var22,1)-50)+42,coloryellow,linethick2;tz:=(close-llv(low,331))/(hhv(high,331)-llv(low,331))*100;强势线:=sma(tz,5,1),linethick2,colorred;大盘线:=70*(hhv(high,39)-close)/(hhv(high,39)-llv(low,39)),linethick1,color009900; {量选}aa:=vol/sum(vol,13);bb:=dma(c,aa);cc:=vol/sum(vol,34);dd:=dma(c,cc);{背离}var00:=winner(close);var1:=forcast(var00,10);var2:=ma(var1,3);var3:=ma(var2,12);var4:=ma(var3,16);var5:=ma(var4,31);var6:=ma(var5,55);var7:=var5;var8:=var4>var2*1.11 and var3>var2*1.095;a:=var4/var2;b:=var3/var2;var9:=var2>var1*0.95;td:=var2/var1;var1h:=indexc;var2h:=ma(var1h,6);var3h:=ma(var1h,24);var4h:=ma(var1h,32);var5h:=ma(var1h,62);var6h:=ma(var1h,105);var7h:=var5h;var8h:=var4h>var2h*1.11 and var3h>var2h*1.095;var9h:=var2h>var1h*0.95;pt:=(if(h=l and c=o and l=c and c>0 and ref(h,1)=ref(l,1) and ref(c,1)=ref(o,1)and ref(h,1)=ref(c,1) and ref(c,1)>0,0,1))>0;g:=(var7h and var8h and var9h and close/cost(8)<=0.7985and (count(c=l,4)<3 or c>ref(c,1)))and pt orvar7 and var8 and var9 and close/cost(5)<=0.8 and((var1>open or var1>ref(open,1) orref(var1,1)));背离:=var2<ref(var2,1) and a>ref(a,1);买入信号1:=var1>a and var2>b;买入信号2:=b>a and 1>b and a<1 and h=hhv(h,21);buy:=count(背离,20)>1 and 买入信号2=1 and c>o or cross(bb,dd);drawicon(cross(短波,hz2),中波,1);drawtext(cross(主线,ma90) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(主线,ma120) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(ma120,均线148天) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(中势线,33) and 短波>hz2 and o>ref(o,1) and c>ref(c,1) and j>d and j<65 and 大盘线<36 and 强势线>36 and 主线>ref(主线,1)and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 中势线<70 and c>o and ma34>ref(ma34,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(短波,hz2) and 大盘线<36 and 短波>中波and 中波>hz4 and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orj>k and 大盘线<36 and 短波>hz2 and cross(强势线,36) or cross(短波,hz2) and cross(强势线,36) or cross(j,k) and cross(强势线,33)or cross(短波,hz2) and cross(强势线,54)or cross(j,k) and 大盘线<36 and j<65 and c>o and 短波-ref(短波,1)>0.088 orcross(j,k) and 短波>hz2 and j<68 and 短波>ref(短波,1) and hz2>ref(hz2,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 orcross(j,k) and 大盘线<36 and j<68 and 短波-ref(短波,1)>0.088 or cross(j,k) and cross(短波,hz2) and 大盘线<36 orcross(短波,hz2) and 大盘线<36 and j>k and j<68 and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 orcross(短波,hz2) and 中波>ma120 and 中波>均线148天and hz2>ma120 and ma120>均线148天and 短波-ref(短波,1)>0.088 orcross(j,k) and 强势线>54 and 强势线>ref(强势线,1) and j<68or count(背离,20)>1 and 短波>hz2 and o>ref(o,1) and c>ref(c,1) and j>d and j<65 and 买入信号2=1 and 主线>ref(主线,1)and 中势线>ref(中势线,1) and 中势线<70 and c>o orcross(bb,dd) and j<74 and ma34>ref(ma34,1) and 短波-ref(短波,1)>0.088 or大盘线<36 and j>d and j<65 and c>o and 短波>ref(短波,1) and cross(hz2,中波) and 短波-ref(短波,1)>0.088 and o>ref(c,1) orc>o and 短波>ref(短波,1) and j>d and j<65 and 大盘线<36 and cross(中势线,33) and 中势线-ref(中势线,1)>0.23 and 短波-ref(短波,1)>0.088and o>ref(c,1) and 强势线>12 or短波>hz2 and 中波>hz4 and 大盘线<36 and cross(j,k) and j<65 and 短波-ref(短波,1)>0.088 or短波>hz2 and 大盘线<36 and cross(j,k) and j<65 and 短波-ref(短波,1)>0.088 or cross(j,k) and cross(短波,hz2) and 大盘线<36 and j<56 or短波>hz2 and 中波>hz4 and 大盘线<36 and j>d and j<65 and cross(hz4,年线) and 短波-ref(短波,1)>0.088 or短波>hz2 and hz2>hz4 and 大盘线<36 and j>d and j<65 and j<65 and cross(强势线,46)and 短波-ref(短波,1)>0.088 or短波>hz2 and 大盘线<36 and j>d and j<65 and cross(中势线,36) and 短波-ref(短波,1)>0.088,hz2-0.18,'!追'),colorwhite;{好}drawtext(cross(短波,hz2) and c>o and j>k and j>d and 大盘线<36 and c>hz4,l*1.09,'●'),coloryellow;drawtext(cross(短波,hz2) and c>o and j>k and j>d and 大盘线<36 and c>hz4,l*1.12,'做趋势'), coloryellow;DRAWTEXT(cross(短波,hz2),C,'♂');DRAWTEXT(cross ( 中波,hz4),C,'♂');DRAWTEXT(cross ( 中波,ma120),C,'♂');DRAWTEXT(cross (hz4,ma120),C,'♂');。
大智慧七种技术指标主图指标公式(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;。
很棒的大智慧指标公式-主力进出
(幅图指标)主力进出公式A:=IF((CLOSE > 126.32),(AMOUNT / 100000),VOL);主力:MA(A,4),LINETHICK0,color00FFFF;游资:MA(A,8),LINETHICK0,color00FF00;大户:MA(A,16),LINETHICK0,color0000FF;散户:MA(A,32),LINETHICK0,colorFFFF00;主力参与比例:CEILING(((主力/ (((主力+ 游资) + 大户) + 散户)) * 100)),LINETHICK0,color00FFFF;游资参与比例:CEILING(((游资/ (((主力+ 游资) + 大户) + 散户)) * 100)),LINETHICK0,color00FF00;大户参与比例:CEILING(((大户/ (((主力+ 游资) + 大户) + 散户)) * 100)),LINETHICK0,color0000FF;散户参与比例:CEILING(((散户/ (((主力+ 游资) + 大户) + 散户)) * 100)),LINETHICK0,colorFFFF00;警戒线:MA(A,180),colorFF00FF;STICKLINE((主力> 0),0,主力,8,0),color0000FF;STICKLINE((主力> 0),0,主力,7.8,0),color0018FF;STICKLINE((主力> 0),0,主力,7.5,0),color001BFF;STICKLINE((主力> 0),0,主力,7.3,0),color0022FF;STICKLINE((主力> 0),0,主力,7,0),color0035FF;STICKLINE((主力> 0),0,主力,6.8,0),color0041FF;STICKLINE((主力> 0),0,主力,6.5,0),color0050FF;STICKLINE((主力> 0),0,主力,6.3,0),color0059FF;STICKLINE((主力> 0),0,主力,6,0),color0062FF;STICKLINE((主力> 0),0,主力,5.7,0),color006CFF;STICKLINE((主力> 0),0,主力,5.5,0),color007AFF;STICKLINE((主力> 0),0,主力,5.3,0),color0080FF;STICKLINE((主力> 0),0,主力,5,0),color0089FF;STICKLINE((主力> 0),0,主力,4.5,0),color0095FF;STICKLINE((主力> 0),0,主力,3.5,0),color009CFF;STICKLINE((主力> 0),0,主力,3,0),color00ABFF;STICKLINE((主力> 0),0,主力,2.5,0),color00C0FF;STICKLINE((主力> 0),0,主力,1.5,0),color00D1FF;STICKLINE((主力> 0),0,主力,1,0),color00EAFF;STICKLINE((主力> 0),0,主力,0.7,0),color00FFFF;STICKLINE((游资> 0),0,游资,8,0),color006800;STICKLINE((游资> 0),0,游资,7.8,0),color007F00;STICKLINE((游资> 0),0,游资,7,5),color008B00;STICKLINE((游资> 0),0,游资,7,3),color008B00;STICKLINE((游资> 0),0,游资,6.8,0),color009500; STICKLINE((游资> 0),0,游资,6.5,0),color009C00; STICKLINE((游资> 0),0,游资,6.3,0),color00A300; STICKLINE((游资> 0),0,游资,6,0),color00AB00; STICKLINE((游资> 0),0,游资,5.7,0),color00AF00; STICKLINE((游资> 0),0,游资,5.5,0),color00B900; STICKLINE((游资> 0),0,游资,5.3,0),color00C000; STICKLINE((游资> 0),0,游资,5,0),color00C100; STICKLINE((游资> 0),0,游资,4.5,0),color00CA00; STICKLINE((游资> 0),0,游资,3.5,0),color00D300; STICKLINE((游资> 0),0,游资,3,0),color00DB00; STICKLINE((游资> 0),0,游资,2.5,0),color00EA00; STICKLINE((游资> 0),0,游资,1.5,0),color00FF00; STICKLINE((大户> 0),0,大户,8,0),color102088; STICKLINE((大户> 0),0,大户,7,0),color102099; STICKLINE((大户> 0),0,大户,6,0),color1020AA; STICKLINE((大户> 0),0,大户,5,0),color1020BB; STICKLINE((大户> 0),0,大户,4,0),color1020CC; STICKLINE((大户> 0),0,大户,3,0),color1020DD; STICKLINE((大户> 0),0,大户,2,0),color1020EE; STICKLINE((大户> 0),0,大户,1,0),color1020FF; STICKLINE((大户> 0),0,大户,8,0),color102088; STICKLINE((大户> 0),0,大户,7,0),color102099; STICKLINE((大户> 0),0,大户,6,0),color1020AA; STICKLINE((大户> 0),0,大户,5,0),color1020BB; STICKLINE((大户> 0),0,大户,4,0),color1020CC; STICKLINE((大户> 0),0,大户,3,0),color1020DD; STICKLINE((大户> 0),0,大户,2,0),color1020EE; STICKLINE((大户> 0),0,大户,1,0),color1020FF; STICKLINE((散户> 0),0,散户,8,0),colorFF7700; STICKLINE((散户> 0),0,散户,7,0),colorFF8800; STICKLINE((散户> 0),0,散户,6,0),colorFF9900; STICKLINE((散户> 0),0,散户,5,0),colorFFAA00; STICKLINE((散户> 0),0,散户,4,0),colorFFBB00; STICKLINE((散户> 0),0,散户,3,0),colorFFCC00; STICKLINE((散户> 0),0,散户,2,0),colorFFDD00; STICKLINE((散户> 0),0,散户,1,0),colorFFEE00; STICKLINE((散户> 0),0,散户,8,0),colorFF7700; STICKLINE((散户> 0),0,散户,7,0),colorFF8800; STICKLINE((散户> 0),0,散户,6,0),colorFF9900; STICKLINE((散户> 0),0,散户,5,0),colorFFAA00; STICKLINE((散户> 0),0,散户,4,0),colorFFBB00; STICKLINE((散户> 0),0,散户,3,0),colorFFCC00;STICKLINE((散户> 0),0,散户,1,0),colorFFEE00;逃顶专家公式用法:两条k线相重合,顶部到来,出现蓝色k线,逃顶。
大智慧决策系统主图指标公式源码编程思路破译
大智慧决策系统主图指标公式源码编程思路破译编程思路破译MA20赋值:收盘价的20日简单移动平均MA120赋值:收盘价的120日简单移动平均MA30赋值:收盘价的37日简单移动平均MAP赋值:收盘价的8日简单移动平均AA5赋值:收盘价的21日简单移动平均输出AA10:收盘价的8日简单移动平均,COLOR0000FF输出AA12:收盘价的12日简单移动平均,COLOR0000FFBB10赋值:(((AA10-1日前的AA10)的反正切 * 3.1416) * 10)BB12赋值:(((AA12-1日前的AA12)的反正切 * 3.1416) * 10)MA13赋值:收盘价的13日简单移动平均VAR1Q赋值:((((开盘价 + 最低价) + 最高价) + 收盘价) / 4)输出中期大底:30日内最低价的最低值,COLORCDFFBB短底赋值:VAR1Q的5日指数移动平均支撑赋值:60日内短底的最高值输出压力一:20日内最低价的最高值,COLORFAABEC压力赋值:最低价的5日[1日权重]移动平均中线赋值:收盘价的3日简单移动平均当满足条件((((最高价>支撑)AND(收盘价<支撑))AND((收盘价/开盘价)>(0-1.06)))AND(收阴线))的5日过滤时,在(最高价+0.02)位置书写文字,COLOR00FFFF中轨道赋值:(最高价的15日简单移动平均 * 1.05)天赋值:(最低价的15日简单移动平均 * 0.985)人赋值:(最低价的15日简单移动平均 * 0.96)地赋值:(((最高价 + 最低价) + 收盘价) / 3)B1赋值:(4*15)日内陆的最高值B6赋值:(4*15)日内陆的最低值B7赋值:(B1 - B6)B8赋值:(((地-B6)/B7)的2日简单移动平均 * 80)VAR1赋值:(((收盘价 - 100日内最低价的最低值) / (100日内最高价的最高值 - 100日内最低价的最低值)) * 200)飞龙顶底线赋值:VAR1的3日[1日权重]移动平均VAR2赋值:飞龙顶底线的3日[1日权重]移动平均VAR3赋值:((3 * 飞龙顶底线) - (2 * VAR2))VAR4赋值:5日内最低价的最低值VAR5赋值:5日内最高价的最高值VAR6赋值:((((收盘价-VAR4)/(VAR5-VAR4))*100)的4日指数移动平均 * 2)VAR7赋值:((0.667*1日前的VAR6)+(0.333*VAR6))的2日指数移动平均VAR8赋值:((3 * VAR6) - (2 * VAR7))VAR9赋值:(收盘价的5日简单移动平均的2乘幂 + 收盘价的5日简单移动平均)VARA赋值:(最低价的5日简单移动平均的2乘幂 + 最低价的5日简单移动平均)VARB赋值:(最高价的5日简单移动平均的2乘幂 + 最高价的5日简单移动平均)VARC赋值:(((((VAR9 - 64日内VARA的最低值) / (64日内VARB 的最高值 - 64日内VARA的最低值)) * 150) + 65) - 10) VARD赋值:((VARC的3日[1日权重]移动平均 * 1.5) - 100)VARE赋值:VARD的3日[1日权重]移动平均VARF赋值:((3 * VARD) - (2 * VARE))VAR10赋值:(((最高价 + 最低价) + (收盘价 * 2)) / 4)VAR11赋值:VAR10的13日指数移动平均VAR12赋值:VAR10的13日估算标准差VAR13赋值:(((VAR10 - VAR11) * 100) / VAR12)VAR14赋值:VAR13的5日指数移动平均VAR15赋值:VAR14的13日指数移动平均VAR16赋值:((VAR14的13日指数移动平均 + 200) - 100)VAR17赋值:VAR16的10日指数移动平均VAR18赋值:((3 * VAR16) - (2 * VAR17))VAR19赋值:(((飞龙顶底线 + VAR6) + VARD) + VAR16)VAR1A赋值:(((VAR2 + VAR7) + VARE) + VAR17)VAR1B赋值:(((VAR3 + VAR8) + VARF) + VAR18)VAR1C赋值:(((最高价 + 最低价) + 收盘价) / 3)VAR1D赋值:((成交额(元) / 成交量(手)) / 100)VAR1E赋值:((成交额(元)的5日累和/ 成交量(手)的5日累和) / 100)VAR1F赋值:((VAR1C - VAR1C的34日简单移动平均) / (0.015 * VAR1C的34日平均绝对偏差))VAR20赋值:以(成交量(手)/当前流通股本(手))为权重((成交额(元)/成交量(手))/100)的动态移动平均VAR21赋值:((((最高价 + 最低价) + 收盘价) + VAR1C) / 4)VAR22赋值:VAR21的24日指数移动平均VAR23赋值:VAR21的24日估算标准差VAR24赋值:(((VAR21 - VAR22) / VAR23) * 100)VAR25赋值:((VAR1C - VAR1C的24日简单移动平均) / (0.015 * VAR1C的24日平均绝对偏差))VAR26赋值:VAR24的5日指数移动平均VAR27赋值:((VAR1D - VAR1D的21日简单移动平均) / (0.015 * VAR1D的21日平均绝对偏差))VAR28赋值:((VAR1E - VAR1E的90日简单移动平均) / (0.015 * VAR1E的90日平均绝对偏差))VAR29赋值:(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4)VAR2A赋值:(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15)VAR2B赋值:(((VAR29 + VAR2A) / 2) / 1.1)VAR2C赋值:VAR2B短线赋值:VAR2C的26日简单移动平均MID赋值:(短线 + (2 * VAR2C的26日估算标准差))UPPER赋值:(短线 - (2 * VAR2C的26日估算标准差))LOWER赋值:如果(VAR2C>短线),返回短线,否则返回VAR2CXY赋值:收盘价的5日简单移动平均MA5赋值:收盘价的80日简单移动平均输出短期底部:(30日内最高价的最低值 * 0.93),COLOR0000FF MA80赋值:30日内最高价的最低值短期底部二赋值:收盘价的2日[1日权重]移动平均趋势赋值:(最低价的10日简单移动平均 * 0.96)趋赋值:(开盘价的107日指数移动平均 * 0.897)超跌位二赋值:收盘价的15日简单移动平均GF赋值:收盘价的10日简单移动平均MAN赋值:(最高价的21日[2日权重]移动平均 * 1.05)上一赋值:(60日内短底的最高值 * 0.92)压力二赋值:(最高价的21日[2日权重]移动平均 * 1.035)阻挡线赋值:(最低价的21日[2日权重]移动平均 * 0.96)下档线赋值:(((收盘价 - 13日内最低价的最低值) / (13日内最高价的最高值 - 13日内最低价的最低值)) * 100)RSV赋值:下档线的3日[1日权重]移动平均K赋值:RSV的3日[1日权重]移动平均D赋值:((3 * RSV) - (2 * K))J赋值:(((收盘价 - 收盘价的6日简单移动平均) / 收盘价的6日简单移动平均) * 100)VAR2P赋值:(((收盘价 - 收盘价的12日简单移动平均) / 收盘价的12日简单移动平均) * 100)VAR3P赋值:(((收盘价 - 收盘价的24日简单移动平均) / 收盘价的24日简单移动平均) * 100)VAR4P赋值:(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6)VAR5P赋值:VAR4P的3日简单移动平均VAR6P赋值:(((收盘价- 34日内最低价的最低值) / (34日内最高价的最高值 - 34日内最低价的最低值)) * 100)RSV12赋值:VAR6P的3日[1日权重]移动平均K12赋值:RSV12的3日[1日权重]移动平均D12赋值:((3 * RSV12) - (2 * K12))J12赋值:(((收盘价 - 55日内最低价的最低值) / (55日内最高价的最高值 - 55日内最低价的最低值)) * 100)RSV24赋值:J12的3日[1日权重]移动平均K24赋值:RSV24的3日[1日权重]移动平均D24赋值:((3 * RSV24) - (2 * K24))输出压力位:如果D24上穿D,返回最高价,否则返回最低价,POINTDOT,COLORFFFFFF支撑位赋值:如果(收盘价>=收盘价的20日简单移动平均),返回80,否则返回50U2L赋值:如果(收盘价>=收盘价的20日简单移动平均),返回50,否则返回20输出长期底部:30日内最高价的最低值,COLOR00FF00RL5赋值:(最高价的5日[2日权重]移动平均 * 1.05)上赋值:(最低价的5日[2日权重]移动平均 * 0.96)下赋值:最低价的2日[1日权重]移动平均中赋值:(((((3 * 收盘价) + 最高价) + 最低价) + 开盘价) / 6)X1赋值:中的10日指数移动平均X2赋值:1日前的X1X3赋值:((1日前的最高价 + 1日前的最低价) / 2)X4赋值:(收盘价的21日简单移动平均 + (2 * 收盘价的21日估算标准差))X5赋值:1日前的收盘价X6赋值:(((收盘价-X5)和0的较大值的7日[1日权重]移动平均/ (收盘价-X5)的绝对值的7日[1日权重]移动平均) * 100)X7赋值:79上穿X6X8赋值:X7的4日过滤X9赋值:收盘价的115日简单移动平均VAR1M赋值:收盘价的8日指数移动平均飞龙顶底线一赋值:VAR1M的20日指数移动平均VAR2M赋值:VAR1M上穿飞龙顶底线一VAR3M赋值:(VAR1M < 收盘价的20日简单移动平均)VAR4M赋值:(((36日内最高价的最高值 - 收盘价) / (36日内最高价的最高值 - 36日内最低价的最低值)) * 100)VAR5M赋值:VAR4M的5日[1日权重]移动平均VAR6M赋值:VAR5M的8日[1日权重]移动平均VAR7M赋值:(VAR5M上穿VAR6M AND (VAR6M < 5))VAR8M赋值:((收盘价 > (60日内收盘价的最低值 + (0.3 * 60日内收盘价的最低值))) AND VAR7M)VAR9M赋值:如果(收盘价>1000),返回VAR7M,否则返回VAR8M VARFM赋值:X1上穿X2MA115赋值:VARFM低买赋值:(VAR2M AND VAR3M)黑马起步赋值:VAR9M当满足条件X8时,在(最高价*1.03)位置书写文字,COLOR9000F5 当满足条件(黑马起步>0)时,在(最高价*1.04)位置书写文字,COLOR0000FF逃遁赋值:(最高价的21日[2日权重]移动平均 * 1.05)当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLORFF5B00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF6C00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLORFF7B00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORFF9C00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFBE00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为3.5,0不为0则画空心柱.,COLORFFCC00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLORFFFF00当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLOR070084当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR0000A3当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLOR0000B7当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR0000CD当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000E9当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0754E9当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR076EF3当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR077BF3当满足条件(收阳线)时,在开盘价和最低价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0726CA当满足条件(收阳线)时,在收盘价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0726CA当满足条件(收阴线)时,在收盘价和最低价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORDE9100当满足条件(收阴线)时,在开盘价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORDE9100当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLOR0090FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR009FFF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR00B5FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00E4FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在开盘价和最低价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00FFFF 当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和最高价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00FFFF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在开盘价和最低价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和最高价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLORFF00FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORFF62FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLORFFA8FF 当满足条件((((0日内最低价的最低值AND((MA30-1日前的MA30)>0))AND(最低价<=短期底部))AND(以收盘价计算的获利盘比例<0.05))AND((收盘价/开盘价)>0.13))的7日过滤时,在(最低价-0.09)位置书写文字,COLOR00B2FF阻挡赋值:(最低价的21日[2日权重]移动平均 * 0.94)当满足条件((((((((收盘价/开盘价)>1.03)AND((超跌位二-1日前的超跌位二)>0))AND((收盘价-1日前的收盘价)>0))AND(最高价<压力一))AND(收盘价<压力一))AND((压力二-1日前的压力二)>0))的?日过滤时,在ND(收盘价<MAN)),3)位置书写文字,COLORD4DEE9 当满足条件(((((低买>0)AND((X1-1日前的X1)>0))AND(最高价<压力位))AND(最高价<X9))AND((X2-1日前的X2)>0))时,在最低价位置书写文字,COLOR00FF00当满足条件(((((VAR2C上穿短线AND((收盘价-1日前的最高价)>0))AND((中线-1日前的中线)>0))AND(最高价<=压力一))AND(收盘价<MA20))AND(最低价<=中线))时,在(最低价-0.06)位置书写文字,COLOR00FF00当满足条件(((VAR2C上穿UPPERAND(最高价<压力一))AND((XY-1日前的XY)>0))AND(最高价<支撑))时,在最低价位置书写文字,COLORFFFFFF当满足条件((((((最低价<=天)AND(收盘价>=MA20))AND(最高价<压力一))AND((天-1日前的天)>0))AND(收盘价<压力一))AND((MA20-1日前的MA20)>0))的6日过滤时,在(最低价-0.12)位置书写文字,COLORFFFFFF当满足条件(((((MA115AND(收盘价<压力位))AND((人-1日前的人)>0))AND((X1-1日前的X1)>0))AND(最高价<上一))AND((收盘价/开盘价)>1.03))的5日过滤时,在最低价位置书写文字,COLOR93EE7D 当满足条件((((最低价<=上)AND(最高价>=短期底部))AND(收盘价>=长期底部))AND((收盘价/开盘价)>1.03))时,在(最低价-0.08)位置书写文字,COLOR0000FF当满足条件(((((最低价<=阻挡线)AND((MA20-1日前的MA20)>0))AND(开盘价<=上一))AND(最高价>上一))AND(收盘价>阻挡线))的5日过滤时,在最低价位置书写文字,COLORFFFFFF 当满足条件((压力上穿阻挡AND(以收盘价计算的获利盘比例<=0.17))AND((X1-1日前的X1)>0))时,在(最低价-0.08)位置书写文字,COLOR00FFFF当满足条件(((((B8<=1)AND(最低价<=阻挡))AND(收阳线))AND(最低价<=中期大底))AND(收盘价>=长期底部))的3日过滤时,在(最低价-0.08)位置书写文字,COLORA100FF当满足条件(((D上穿0AND(最高价<压力位))AND(VAR5P<=(0-7)))AND(收盘价<XY))时,在(最低价-0.11)位置书写文字,COLOR00FFFF当满足条件(((趋势上穿趋AND(最高价<MA5))AND(最高价<压力一))ANDLLV(最低价,0))的10日过滤时,在最低价位置书写文字,COLOR00FFFF当满足条件((中线上穿人AND(最低价<=人))AND(收盘价>=人))的4日过滤时,在(最低价-0.06)位置书写文字,COLOR00FF00 当满足条件((阻挡上穿长期底部AND(BB10>1))AND(最高价<支撑))时,在最低价位置书写文字,COLOR00FF00当满足条件(((((((MA20-1日前的MA20)>0)AND(最高价<支撑))AND((AA10-1日前的AA10)>0))AND(最高价<压力一))AND(成交量(手)>=1日前的成交量(手)))ANDCROSS(收盘价,MA20))的57日过滤时,在最低价位置书写文字,COLOR0000FF当满足条件((((最低价<=MA80)AND(收盘价>MA80))AND(收阳线))AND(短期底部二<=MA80))的8日过滤时,在最低价位置书写文字,COLOR00FFFF当满足条件((MA20上穿压力位AND(最低价<=MA20))AND((MA20-1日前的MA20)>0.02))时,在(最低价-0.03)位置书写文字,COLORFFF0FF当满足条件(((((((收盘价上穿MA20AND(最高价<压力位))AND(开盘价<MA20))AND(最高价<支撑))AND((MAN-1日前的MAN)>0))AND((X1-1日前的X1)>0))AND(D<63))AND((MA20-1日前的MA20)>0))时,在(最低价-0.05)位置书写文字,COLORD3E7FF 当满足条件中期大底上穿短期底部时,在(最低价-0.02)位置书写文字程序源码MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR1Q:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR1Q,5);支撑:=HHV(短底,60);压力一:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑))AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'←逃'),COLOR00FFFF;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);飞龙顶底线:=SMA(VAR1,3,1);VAR2:=SMA(飞龙顶底线,3,1);VAR3:=((3 * 飞龙顶底线) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR20:=DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);MA5:=MA(CLOSE,80);短期底部:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部二:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位二:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上一:=(HHV(短底,60) * 0.92);压力二:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) -LLV(LOW,34))) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:IF(CROSS(D24,D),HIGH,L),POINTDOT,COLORFFFFFF;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);长期底部:LLV(HIGH,30),COLOR00FF00;RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1M:=EMA(CLOSE,8);飞龙顶底线一:=EMA(VAR1M,20);VAR2M:=CROSS(VAR1M,飞龙顶底线一);VAR3M:=(VAR1M < MA(CLOSE,20));VAR4M:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5M:=SMA(VAR4M,5,1);VAR6M:=SMA(VAR5M,8,1);VAR7M:=(CROSS(VAR5M,VAR6M) AND (VAR6M < 5));VAR8M:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7M);VAR9M:=IF((CLOSE > 1000),VAR7M,VAR8M);VARFM:=CROSS(X1,X2);MA115:=VARFM;低买:=(VAR2M AND VAR3M);黑马起步:=VAR9M;DRAWTEXT(X8,(HIGH * 1.03),'←出货'),COLOR9000F5;DRAWTEXT((黑马起步> 0),(HIGH * 1.04),'←逃命'),COLOR0000FF;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),COLORFFCC00;STICKLINE((OPEN >=CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9,0),COLOR070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),COLOR0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),COLOR0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLOR0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),COLOR0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),COLORDE9100;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,9,0),COLOR0090FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,8,0),COLOR009FFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),COLOR00B5FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLOR00E4FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0.7,0),COLOR00FFFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0.7,0),COLOR00FFFF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),OPEN,LOW,0.7,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,HIGH,0.7,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,9,0),COLORFF00FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,6,0),COLORFF62FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,4,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2,0),COLORFFA8FF;DRAWTEXT(FILTER(((((LLV(LOW,0) AND ((MA30 - REF(MA30,1)) > 0)) AND (LOW <= 短期底部)) AND (WINNER(CLOSE) < 0.05)) AND ((CLOSE / OPEN) > 0.13)),7),(LOW- 0.09),'●见底'),COLOR00B2FF;阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位二 - REF(超跌位二,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力一)) AND (CLOSE < 压力一)) AND ((压力二- REF(压力二,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'←出击'),COLORD4DEE9;DRAWTEXT((((((低买> 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'←黑马'),COLOR00FF00;DRAWTEXT((((((CROSS(VAR2C,短线) AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线 - REF(中线,1)) > 0)) AND (HIGH <= 压力一)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'←关注'),COLOR00FF00;DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力一)) AND ((XY - REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'←买'),COLORFFFFFF;DRAWTEXT(FILTER(((((((LOW <= 天) AND (CLOSE >= MA20)) AND (HIGH < 压力一)) AND ((天 - REF(天,1)) > 0)) AND (CLOSE < 压力一)) AND ((MA20 - REF(MA20,1)) > 0)),6),(LOW - 0.12),'←全仓'),COLORFFFFFF;DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上一)) AND ((CLOSE / OPEN) > 1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上一)) AND (HIGH > 上一)) AND (CLOSE > 阻挡线)),5),LOW,'←涨10%'),COLORFFFFFF;DRAWTEXT(((CROSS(压力,阻挡) AND (WINNER(CLOSE) <= 0.17)) AND ((X1 - REF(X1,1)) > 0)),(LOW - 0.08),'←大胆买'),COLOR00FFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'←短抄E'),COLORA100FF;DRAWTEXT((((CROSS(D,0) AND (HIGH < 压力位)) AND (VAR5P <= (0 - 7))) AND (CLOSE < XY)),(LOW - 0.11),'←半仓'),COLOR00FFFF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < MA5)) AND (HIGH < 压力一)) AND LLV(LOW,0)),10),LOW,'←果断买'),COLOR00FFFF;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'←买'),COLOR00FF00;DRAWTEXT(((CROSS(阻挡,长期底部) AND (BB10 > 1)) AND (HIGH < 支撑)),LOW,'←出击'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力一)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部二<= MA80)),8),LOW,'←底'),COLOR00FFFF;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORFFF0FF;DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLORD3E7FF;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'←短线买');该公式包含未来函数:WINNER未发现:LWINNER...未发现:PWINNER...未发现:COST...该公式包含未来函数:CAPITAL。
【股票指标公式下载】-【大智慧】组合主图(止损价位、操盘线)
【大智慧】组合主图(止损价位、操盘线)-指标公式源码HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;E13:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2)+17*REF(HHJsjda,3) +16*REF(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9)+10*REF(HHJsjda ,10)+9*REF(HHJsjda,11)+8*REF(HHJsjda,12)+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15)+4*REF(HHJsjda, 16)+3*REF(HHJsjda,17)+2*REF(HHJsjda,18)+REF(HHJsjda,20))/210,colorred;马线:MA(E13,5),colorgreen;水平面:MA(CLOSE,60),COLORYELLOW,CROSSDOT;Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1:=(EMA(Var1,3)+EMA(Var1,6)+EMA(Var1,12)+EMA(Var1,24))/4;A2: EMA(A1,2);A3: EMA(A2,2);A4: EMA(A3,2);A5: EMA(A4,2);A6: EMA(A5,2);A7: EMA(A6,2);DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF; YC:=REF(CLOSE,1);止损价位:(YC*1.0035*97+0.2)/99.65,COLORRED,LINETHICK0; DRAWTEXTABS(CLOSE,25,'★ ======================'),COLORRED; DRAWTEXTABS(CLOSE,41,'操 '),COLORRED;DRAWTEXTABS(CLOSE,57,'盘 '),COLORRED;DRAWTEXTABS(CLOSE,73,'铁'),COLORRED;DRAWTEXTABS(CLOSE,89,'律'),COLORRED;DRAWTEXTABS(CLOSE,105,'★ ======================'),COLORRED; DRAWTEXTABS(CLOSE,41,' 买入条件 E13 CCI'),colorYellow; DRAWTEXTABS(CLOSE,57,' 买入时间 2:30以后' ),colorYellow; DRAWTEXTABS(CLOSE,73,' 止损价位 '+NUMTOSTR(止损价位)+'元'),colorYellow;DRAWTEXTABS(CLOSE,89,' 线上:工作线下:休息'),color00FFFF; E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*E-LOW;明日支撑:=2*E-HIGH;明日突破:=E+(HIGH-LOW);明日反转:=E-(HIGH-LOW);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);DRAWTEXTABS(200,25,'今日阻力=:'+NUMTOSTR(今日阻力)),ColorFFFF00; DRAWTEXTABS(200,41,'今日支撑=:'+NUMTOSTR(今日支撑)),Colorred; DRAWTEXTABS(200,57,'明日突破=:'+NUMTOSTR(明日突破)),ColorFF00FF; DRAWTEXTABS(200,73,'明日阻力=:'+NUMTOSTR(明日阻力)),ColorFFFF00; DRAWTEXTABS(200,89,'明日支撑=:'+NUMTOSTR(明日支撑)),COLORRED; DRAWTEXTABS(200,105,'明日反转=:'+NUMTOSTR(明日反转)),COLORYellow; A:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);A1:=FILTER(A,12);B:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);B1:=FILTER(B,12);TS1:=BARSLAST(A1);箱顶:REF(HIGH,TS1) ,COLORFF00FF, LINETHICK0;STICKLINE(1,箱顶,箱顶,7,0),COLORFF00FF;TS2:=BARSLAST(B1);箱底:REF(LOW,TS2) ,COLORFFbb80, LINETHICK0;STICKLINE(1,箱底,箱底,7,0),COLORFFbb80;箱高:100*(箱顶-箱底)/箱底,LINETHICK0;均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) ANDH/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:=IF(SAT>1,1,SAT)*100;IF BARSTATUS=2 AND SZ1 THEN BEGINDRAWTEXTABS(350,25,'调整结束短线介入'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ2 THEN BEGINDRAWTEXTABS(350,25,'上升通道走势良好'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ3 THEN BEGINDRAWTEXTABS(350,25,'股价偏离注意调整'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ4 THEN BEGINDRAWTEXTABS(350,25,'上升通道调整洗盘'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ5 THEN BEGINDRAWTEXTABS(350,25,'转向特征注意离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ6 THEN BEGINDRAWTEXTABS(350,25,'通道改变坚决离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD1 THEN BEGINDRAWTEXTABS(350,25,'下跌通道只宜观望'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD2 THEN BEGINDRAWTEXTABS(350,25,'短期底部准备进入'),COLORYELLOW;END;{单阳不破}阳涨幅:=4;阳倍量:=2;单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(单阳,L*0.98,'起'),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,11,0),COLORRED; DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;天数:BARSLAST(单阳),linethick0;ma20:=ma(c,20);ma60:=ma(c,60);ma30:=ma(c,30);BIAS:=(C-MA20)/MA20*100;SHOPEN:=OPEN;SHHIGH:=HIGH;SHLOW:=LOW;SHCLOSE:=CLOSE;SHAMOUNT:=AMOUNT;SHVOL:=VOL;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));t1:=(((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1);t2:=((((CLOSE > J23) AND (CLOSE < J12)) AND (OPEN > J23)) AND (OPEN < J12)); t3:=((CLOSE >= J12) AND (OPEN <= J23));t4:=(((OPEN <= J12) AND (OPEN >= J23)) AND (CLOSE > J12));t5:=(((OPEN <= J23) AND (CLOSE <= J12)) AND (CLOSE >= J23));t6:=((CLOSE <= J23) AND (OPEN >= J12));t7:=(((OPEN <= J12) AND (OPEN >= J23)) AND (CLOSE < J23));t8:=(((OPEN >= J12) AND (CLOSE <= J12)) AND (CLOSE >= J23));t9:=(((SHAMOUNT / SHVOL) / 100) > REF(HIGH,1));t10:=(((SHAMOUNT / SHVOL) / 100) < REF(LOW,1));if DISPSTATUS=2 then begin;var1000:='.';if t1>0 then var1000:=var1000+'☆极端行情,在未来的几日内有85%的机会变更方向。
大智慧绝对厉害的主图指标公式源码编程思路破译
大智慧绝对厉害的主图指标公式源码编程思路破译编程思路破译R1赋值:收盘价的1日简单移动平均R2赋值:收盘价的3日简单移动平均R3赋值:(R2的1日简单移动平均*1)R4赋值:(R2的3日简单移动平均*1)X1赋值:(收盘价+最低价+最高价)/3DD赋值:FINANCE2(35)SS赋值:FINANCE2(37)GG赋值:FINANCE2(3)TH赋值:市盈(动)A51赋值:3*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均-2*(收盘价-55日内最低价的最低值)/(55日内最高价的最高值-55日内最低价的最低值)*100的5日[1日权重]移动平均LC赋值:1日前的收盘价RSI赋值:(((收盘价-LC)和0的较大值的3日[1日权重]移动平均/ (收盘价-LC)的绝对值的3日[1日权重]移动平均) * 100)FF赋值:收盘价的3日指数移动平均MA15赋值:收盘价的21日指数移动平均A1赋值:如果(收盘价<800),返回((成交额(元)/成交量(手))/100),否则返回((((收盘价*2)+最高价)+最低价)/4)A2赋值:((15日内最高价的最高值) + (30日内最低价的最低值)) / 2A3赋值:(A1的5日简单移动平均)的10日指数移动平均A4赋值:(A1的15日简单移动平均)的10日指数移动平均A5赋值:(A1的13日简单移动平均)的21日指数移动平均A6赋值:((A3 + A4) + A5) / 3输出决策线:(收盘价的5日简单移动平均)的3日指数移动平均,线宽为2,COLORFF0000PARTLINE(决策线,决策线> (3日前的决策线),自定色),线宽为2,COLOR3300FF当满足条件((收盘价>0)AND(DISPSTATUS=2))时,在(决策线*0.95)位置书写文字,MOVE10,ALIGN2,线宽为2,画红色VAR1111赋值:若2日前的最高价=5日内最高价的最高值则将最近3周期置为1VAR2222赋值:VAR1111上穿0.9VAR3333赋值:若2日前的最低价=5日内最低价的最低值则将最近3周期置为1VAR4444赋值:VAR3333上穿0.9输出压力: 上次VAR2222距今天数日前的最高价, POINTDOT,COLOREA91B5当满足条件收盘价时,在上次VAR2222距今天数日前的最高价和上次VAR2222距今天数日前的最高价位置之间画柱状线,宽度为5,0不为0则画空心柱.,线宽为3,COLOREA91B5输出支撑: 上次VAR4444距今天数日前的最低价, POINTDOT,COLOR00B4FF,线宽为3当满足条件收盘价时,在上次VAR4444距今天数日前的最低价和上次VAR4444距今天数日前的最低价位置之间画柱状线,宽度为5,0不为0则画空心柱.,线宽为3,COLOR00B4FF输出弱势双线持币:2日内最高价的(3)日简单移动平均的最高值,线宽为2,COLOR00FF00输出强势单线持股:1日内最高价的(3)日简单移动平均的最低值,线宽为2,COLORFF00FFAA1赋值:成交额(元)/成交量(手)BB1赋值:最低价<AA1*0.9CC1赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>1.2DD1赋值:最低价<收盘价的5日简单移动平均*0.921EE1赋值:成交量(手)<成交量(手)的5日简单移动平均*1.5输出老鼠仓:BB1 AND CC1 AND DD1 AND EE1,线宽为0当满足条件老鼠仓时,在(最低价*0.99)位置书写文字,线宽为3,COLOR40CCFFA74赋值:收盘价的20日简单移动平均A75赋值:(收盘价 > 收盘价的5日简单移动平均)A76赋值:(收盘价的5日简单移动平均 > 收盘价的10日简单移动平均)A77赋值:(收盘价 > 收盘价的10日简单移动平均)A78赋值:(收盘价的5日简单移动平均 > 收盘价的20日简单移动平均)A79赋值:(收盘价 > 收盘价的20日简单移动平均)A710赋值:1日前的A74A711赋值:(A74 > A710)AVX赋值:(((((如果A75,返回10,否则返回(0-10) + 如果A76,返回10,否则返回(0-10)) + 如果A77,返回10,否则返回(0-10)) + 如果A78,返回10,否则返回(0-10)) + 如果A79,返回10,否则返回(0-10)) + 如果A711,返回10,否则返回(0-10))DSLX赋值:(收盘价 / 大盘的收盘价)DSLX1赋值:DSLX的5日简单移动平均DSLX2赋值:DSLX的10日简单移动平均V1赋值:成交量(手)的5日简单移动平均V2赋值:成交量(手)的10日简单移动平均赋值: 上次DISPSTATUS=1距今天数+1赋值: 上次DISPSTATUS=1距今天数+1赋值: T日内最高价的最高值赋值: T日内最低价的最低值条件判断数据位置状态=2 AND 收盘价<200 AND ((AVX上穿1 AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTABS(32,100,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
大智慧主图公式
大智慧主图公式: 招招绝(原码)A3 :(EMA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15))/3,colorff00ff;a4 :(EMA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/3,color00ff00;A5 :(EMA(CLOSE,40)+MA(CLOSE,50)+MA(CLOSE,60))/3,coloryellow;a6 :(EMA(CLOSE,80)+MA(CLOSE,85)+MA(CLOSE,90))/3,colorff9900;A7 :(EMA(CLOSE,120)+MA(CLOSE,130)+MA(CLOSE,150))/3,color0000ff;a8 :(EMA(CLOSE,160)+MA(CLOSE,170)+MA(CLOSE,180))/3,coloryellow;A9 :(EMA(CLOSE,200)+MA(CLOSE,225)+MA(CLOSE,250))/3,color00ff00;V1:EMA(CLOSE,5),Color00FFFF;V2:EMA((EMA(CLOSE,29))*(1.01),10),ColorFF00FF;DRAWICON(CROSS(V1,V2),V2,1),Color00FF00;V3:EMA(CLOSE,10),ColorFFFFFF;V4:EMA((EMA(CLOSE,60))*(0.99),10),ColorFFFF00;DRAWICON(CROSS(V3,V4),V2,1),Color0000FF;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),colorred;VarA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VarB:=EMA(0.667*REF(VarA,1)+0.333*VarA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VarA>=VarB and VarA<-17,3) ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');Varr1:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;DRAWICON(CROSS(82,Varr1),HIGH,2);DRAWTEXT(CROSS(82,Varr1),high,'快卖↓'),coloryellow;Var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;Var2:=REF(Var1,1);Var3:=SMA(MAX(Var1-Var2,0),10,1)/SMA(ABS(Var1-Var2),10,1)*100;HY3:=IF(COUNT(Var3<20,5)>=1 AND COUNT(Var1=LLV(Var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(hy3,low,'▲买入'),colorred;夺宝:Var1:=EMA(C,3);Var2:=EMA(C,5);Var3:=EMA(C,10);Var4:=EMA(C,20);Var5:=EMA(C,30);Var6:=(Var2+Var3+Var4+Var5)/4;Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;Var9:=EMA(Var7,8);STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;{蓝-持币}STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORBLUE;STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;{红-持股}STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLORRED;STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;{白-买进}STICKLINE(买进条件,o,c,6,0),colorwhite,linethick2;加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;{黄-加码}STICKLINE(加码条件,o,c,6,0),coloryellow,linethick2;X1:EMA(C,7),color0088ff;X2:EMA(c,21),coloree00ee;X3:EMA(X2,21),colorwhite;x4:ema(x3,27),color009900;x5:ema(x2,100),colorFFAA00;x6:ema(x5,100),color009999;v1:ema(close,5);v2:ema(ema(close,29)*1.01,10);DRAWICON(cross(v1,v2),v2,1); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃:if(CROSS(84,RSI) , HIGH,high+1),pointdot,linethick7,COLORYELLOW ;high+1,pointdot,linethick7,COLOR000000; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));DRAWICON(FILTER(B2>0,5),L*0.96,10);DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWICON(FILTER(B3>0,5),L*0.98,10);DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORFFFF00;{RSI底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)); DRAWICON(FILTER(D2>0,5),H*1.05,12);DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));DRAWICON(FILTER(D3>0,5),H*1.03,12),;DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORFF00FF;{RSI顶背离}。
大智慧主图公式--顶底背离解读
大智慧主图公式--顶底背离大智慧主图公式--顶底背离顶底, 公式, 智慧, 背离大智慧主图公式--顶底背离,融合了KDJ、MACD、RSI三个指标推荐大家一个大智慧主图公式,顶底背离。
本人感觉可以,融合了KDJ、MACD、RSI三个指标,大家可以参考一下。
用法如下:K线:{蓝-持币} {红-持股} {绿-洗盘} {白-买进} {黄-加码}M底:{MACD底背离} K底:{KDJ底背离} R底:{RSI底背离} M顶:{MACD顶背离} K顶:{KDJ顶背离} R顶:{RSI顶背离}公式如下,导入即可:Var1:=EMA(C,3);Var2:=EMA(C,5);Var3:=EMA(C,10);Var4:=EMA(C,20);Var5:=E MA(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),COL ORBLUE;{蓝-持币}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) ANDVar9>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,2 1),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,linethi ck7,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 ANDREF(DIFF,A1+1)<DIFF ANDCROSS(DIFF,DEA);DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1 >0,5),L*0.94,#39;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,#39;K底'),COLORYELLOW;{KDJ底背离}A3:=BARSLAST(REF(CROSS(\"RSI.RSI1\"(6,12,24),\"RSI.RSI2\"(6,12,24)),1));B3:=REF(C,A3+1)>C ANDREF(\"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,#39;R底'),COLORFFFF00;{RSI底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C ANDREF(DIFF,C1+1)>DIFF ANDCROSS(DEA,DIFF);DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1 >0,5),H*1.07,#39;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,#39;K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS(\"RSI.RSI2\"(6,12,24),\"RSI.RSI1\"(6,12,24) ),1));D3:=REF(C,C3+1)<C ANDREF(\"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,#39;R顶'),COLORFF00FF;{RSI顶背离}2.jpg (58 KB)下载次数:0 2007-10-15 02:38。
大智慧顶底双线主图指标公式
大智慧顶底双线主图指标公式MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLORFF8080;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR1Q:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期底:LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR1Q,5);支撑:=HHV(短底,60);压力1:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃'),COLOR00FFFF;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);婵思顶底线:=SMA(VAR1,3,1);VAR2:=SMA(婵思顶底线,3,1);VAR3:=((3 * 婵思顶底线) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((婵思顶底线 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR20:=DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);MA5:=MA(CLOSE,80);短期底:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底2:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位2:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上1:=(HHV(短底,60) * 0.92);压力2:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));{J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));}压力位:IF(CROSS(D24,D),HIGH,L),POINTDOT,COLORFFFFFF;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);{L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D < D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24)))));RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1)))));RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D > D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24)))));}长期底:LLV(HIGH,30),COLOR00FF00;{DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底)) AND (LOW <= J24)),20),(LOW - 0.12),'←底成'),COLOR0EABFF;}RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);{DRAWTEXT(FILTER((((((LOW <= 压力位) AND (WINNER(CLOSE) <= 0.07)) AND (CLOSE >= 压力位)) AND (CLOSE < 上1)) AND ((CLOSE / OPEN) > 1.02)),3),LOW,'追'),COLOR936EF0;} 中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1M:=EMA(CLOSE,8);婵思顶底线1:=EMA(VAR1M,20);VAR2M:=CROSS(VAR1M,婵思顶底线1);VAR3M:=(VAR1M < MA(CLOSE,20));VAR4M:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5M:=SMA(VAR4M,5,1);VAR6M:=SMA(VAR5M,8,1);VAR7M:=(CROSS(VAR5M,VAR6M) AND (VAR6M < 5));VAR8M:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7M);VAR9M:=IF((CLOSE > 1000),VAR7M,VAR8M);VARFM:=CROSS(X1,X2);MA115:=VARFM;低买:=(VAR2M AND VAR3M);黑马起步:=VAR9M;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),COLORFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;。
大智慧无未来的主图指标公式源码编程思路破译
大智慧无未来的主图指标公式源码编程思路破译编程思路破译输出快线:收盘价的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;。
大智慧公式
买进低值:=re f(L,1)-MA(r e f(L,2)-r e f(L,1),3);今天低点:=re f(L,1);趋势回档买进值:=((r e f(H,1)+re f(L,1)+r e f(C,1))/3)*2-r e f(H,1);买进值:=(下跌值+买进低值+今天低点+趋势回档买进值)/4;上涨值:=ma((re f(h,1)-re f(l,2)),3)+r e f(l,1);买进高点:=ma(re f(h,1)-re f(h,2),3)+re f(h,1);今天高点:=re f(H,1);趋势回档卖出值:=((r e f(h,1)+r e f(l,1)+re f(c,1))/3)*2-re f(l,1);{LS S轴点突破买入值}卖出值:=(上涨值+买进高点+今天高点+趋势回档卖出值)/4;D R A W TEX TA B S(75,8,' 《LS S系统》'),C o l o rF F F F00;D R A W TEX TA B S(150,8,' 支撑压力:'),C o l o r208F F F;D R A W TEX TA B S(90,27,'买入封套'),C o l o rF F F F F F;D R A W TEX TA B S(80,44,' '+下跌值),C o l o ry e l l o w;D R A W TEX TA B S(80,62,' '+买进低值),C o l o ry e l l o w;D R A W TEX TA B S(80,80,' '+今天低点),C o l o ry e l l o w;D R A W TEX TA B S(80,98,' '+趋势回档买进值),C o l o ry e l l o w;D R A W TEX TA B S(80,115,' '+买进值),C o l o rre d;D R A W TEX TA B S(160,27,'卖出封套'),C o l o r00F F00;D R A W TEX TA B S(160,44,' '+上涨值),C o l o rF F00F F;D R A W TEX TA B S(160,62,' '+买进高点),C o l o rF F00F F;D R A W TEX TA B S(160,80,' '+今天高点),C o l o rF F00F F;D R A W TEX TA B S(160,98,' '+趋势回档卖出值),C o l o rF F00F F;D R A W TEX TA B S(160,115,' '+卖出值),C o l o rg r e e n;D R A W TEX TA B S(75,5,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,17,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(75,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,5,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,17,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(218,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,25,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,29,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,41,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,53,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,65,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,77,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,89,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,101,'│'),C o l o r00F F F F;D R A W TEX TA B S(146,113,'│'),C o l o r00F F F F;D R A W TEX TA B S(80,0,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,20,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,37,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,54,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,71,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,88,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,105,'────────────'),C o l o r00F F F F;D R A W TEX TA B S(80,120,'────────────'),C o l o r00F F F F;。
大智慧指标公式集
大智慧指标公式集一、预测明天{预测明天-大智慧公式}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日移动平均。
大智慧主图公式
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 ;
一组大智慧主图及副图指标公式(四色谱四量图决策曲线中期方向线)
一组大智慧主图及副图指标公式(四色谱四量图决策曲线中期方向线)以下是一组大智慧主图及副图指标公式(四色谱四量图决策曲线中期方向线)(无源码的请下载附件导入)在论坛,向老师们学习了很多。
为回报论坛,奉上一组大智慧指标指标,供有缘人下载使用。
希望大家在股市中赚钱,赚大钱四色谱M3:=MA(CLOSE,3);M13:=MA(CLOSE,13);M34:=MA(CLOSE,34);X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));PARTLINE(M34<REF(M34,1),M34),COLORGREEN,LINETHICK 0;STICKLINE(M3>=M13 AND M34>=REF(M34,1) ,H ,L ,0.01,0 ),COLORRED;STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,8,0 ),COLORRED;STICKLINE(M3>=M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,8 ,0 ),COLORRED;STICKLINE(M3<M13 AND M34>=REF(M34,1) ,H ,L ,0.01 ,0 ),COLORYELLOW;STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C>=O ,O ,C ,8 ,0),COLORYELLOW;STICKLINE(M3<M13 AND M34>=REF(M34,1) AND C<O ,O ,C ,8 ,0 ),COLORYELLOW;STICKLINE(M3<M13 AND M34<REF(M34,1) ,H ,L ,0.01 ,0 ),COLORGREEN;STICKLINE(M3<M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,8 ,0 ),COLORGREEN;STICKLINE(M3<M13 AND M34<REF(M34,1) AND C<O ,O ,C ,8 ,0 ),COLORGREEN;STICKLINE(M3>=M13 AND M34<REF(M34,1) ,H ,L ,0.01,0 ),COLORMAGENTA;STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C>=O ,O ,C ,8 ,0 ),COLORMAGENTA;STICKLINE(M3>=M13 AND M34<REF(M34,1) AND C<O ,O ,C ,8 ,0 ),COLORMAGENTA;DRAWTEXT(X,MA(C,120)-0.13,'牛股'),COLORYELLOW,LINETHICK3;四量图MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16 *REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12* REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8* REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;马线:=MA(牛线,6);STICKLINE(C>牛线,2.5,4,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C<马线,2.5,4,8,0),COLORGREEN{COLORRED},LINETHICK2;STICKLINE(牛线>=C AND C>=马线,2.5,4,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LI NETHICK2;A:=MAX(MA(C,60),MA(C,120));B:=MIN(MA(C,60),MA(C,120));STICKLINE(C>=A,0.5,2,8,0),COLORRED{COLORGREEN},LINET HICK2;STICKLINE(C<=B,0.5,2,8,0),COLORGREEN{COLORRED},LINET HICK2;STICKLINE(A>=C AND C>=B,0.5,2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLO W},LINETHICK2;{R:=0;}E:=MAX(MA(C,45),MA(C,90));F:=MIN(MA(C,45),MA(C,90));STICKLINE(C>E,-1.5,0,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C<F,-1.5,0,8,0),COLORGREEN{COLORRED},LINETHICK2;STICKLINE(E>=C AND C>=F,-1.5,0,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINE THICK2;J:=MAX(MA(C,30),MA(C,60));K:=MIN(MA(C,30),MA(C,60));STICKLINE(C>J,-3.5,-2,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C<K,-3.5,-2,8,0),COLORGREEN{COLORRED},LINETHICK2;STICKLINE(J>=C AND C>=K,-3.5,-2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHI CK2;决策曲线{决策曲线28种指标采样}{MA1}MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR2:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR2-REF(TR2,1))/REF(TR2,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR1;MDI:= DMM*100/TR1;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDI<MDI AND ADX>MDI AND ADX>50,-3,0));{RSI}LC:=REF(CLOSE,1);{40}RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,2,IF(CCI<-180,-2,0));{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);D1:=1;UPPERB:=MB+(D1*X2);LOWERB:=MB-(D1*X2);P14:=IF(CLOSE>UPPERB,2,IF(CLOSE<LOWERB,-2,0));{BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100;AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));中期方向线时间:DATE+1900/00/00,LINETHICK0 ,COLORWHITE;EXP12:=EMA(C,12);EXP50:=EMA(C,50);DIR:EXP12-EXP50,LINETHICK0;FILLRGN(DIR,0,DIR>0,RGB(190,0,0),DIR<0,RGB(0,130,0));MB:EMA(DIR,20),LINETHICK0;UPPER:MB+1.96*STD(DIR,10),COLORYELLOW;LOWER:MB-1.96*STD(DIR,10),COLORCYAN;•上一篇:成本抓黑马(源码、无未来,结合成交量,抓黑马无一漏网) 下一篇:超级短打正式版枪打出头鸟最简单公式源码以下是成本抓黑马(源码、无未来,结合成交量,抓黑马无一漏网)(无源码的请下载附件导入)AA:=(C-COST(50))/COST(50)*100;{定义当前价与市场标准成本线差值}WIN:WINNER(CLOSE)*100;{定义获利盘超买超卖指标}WIN10:EMA(WIN,10);{定义短期获利盘指数平滑均线}WIN20:EMA(WIN,20);{定义长期获利盘指数平滑均线}CROSS(AA,30) AND CROSS(WIN10,WIN20);{定义超跌反弹条件选股,可以将超跌的标准设定为30%,即凡是小于市场标准成本线30%的个股都视为超跌股.同时请记住:超跌并不意味着反弹};80,POINTDOT;{获利盘>80超买.获利盘几乎为0超卖状态,空翻多};20,POINTDOT,colorwhite;100,COLORGREEN ,LINETHICK2 ;上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);A7:=(2*C+H+L)/4;操作:=MA(A7,5);全仓:if((CROSS(上线1,一号支撑线1) AND 上线1>操作),20,0),Colorred;{VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=30-VARB;主力: (100-VARA)*VAR1,COLOR0099FF;};{反转信号}N:=16;M1:=8;M2:=4;RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;LWR1:SMA(RSV,M1,1);LWR2:SMA(LWR1,M2,1);均5:=MA(CLOSE,4);X7:=EMA(EMA(EMA(HIGH,9),9),9);海底:=(X7 * 0.92);海底2:=(X7 * 0.933);中轨道:=MA(CLOSE,2);MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三, LWR1,'←'),colorred;•上一篇:形态选股【源码、副图、附图】下一篇:一组大智慧主图及副图指标公式(四色谱四量图决策曲线中期方向线)以下是形态选股【源码、副图、附图】(无源码的请下载附件导入)A1:=MA(C,5);A2:=MA(C,10);A3:=MA(C,20);A4:=MA(C,30);A1>A2 AND A2>A3 AND A3>A4 AND A1>REF(A1,1) AND A2>REF(A2,1) AND A3>REF(A3,1) AND A4>REF(A4,1) AND O>=MA(C,10) AND C<=MA(C,5) AND ABS(C-O)/REF(C,1)<0.03 AND C>O;以下是天宝系列之五股东复仇(无源码的请下载附件导入)当前股东人数:=PFFINON(5253,2007,0631);动态股东人数:=extradata('散户线');MA3:=EMA(动态股东人数,3);股东角度:-ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416*2;股东变动区间:(ref(动态股东人数,20)-动态股东人数)/动态股东人数;吃货天数:count(股东角度>0,30),colormagenta;FILLRGN(股东角度,0, 股东角度>0,rgb(255,255,0));动态股东增减:=(动态股东人数-当前股东人数);股东增减率:(动态股东人数-HHV(动态股东人数,150))/动态股东人数*1000,linethick2,colorred;0,colorcyan;•上一篇:很准的短线指标(主图)大智慧下一篇:形态选股【源码、副图、附图】以下是很准的短线指标(主图)大智慧(无源码的请下载附件导入)《短线高手》指标。
大智慧绝对厉害的主图指标公式
大智慧绝对厉害的主图指标公式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左右。
大智慧筹码顶底主图指标公式编程思路破译
大智慧筹码顶底主图指标公式编程思路破译
编程思路破译
输出HW:获利盘为98.09%的成本分布,线宽为1,画洋红色
输出LW:获利盘为1.91%的成本分布,画黄色,线宽为1
输出RW:获利盘为27.81%的成本分布,线宽为2,画黄色
输出CW:1日前的RW*1.191+(HW-LW)/HW,线宽为2,画洋红色输出ZW:获利盘为55%的成本分布+(HW-LW)/HW,线宽为2
输出DW:获利盘为7%的成本分布+(HW-LW)/HW,线宽为1
输出筹码密集度:(HW-LW)*50/HW,画绿色,线宽为0
程序源码
HW:COST(98.09),LINETHICK1,COLORMAGENTA;
LW:COST(1.91),COLORYELLOW,LINETHICK1;
RW:COST(27.81),LINETHICK2,COLORYELLOW;
CW:REF(RW,1)*1.191+(HW-
LW)/HW,LINETHICK2,COLORMAGENTA;
ZW:COST(55)+(HW-LW)/HW,LINETHICK2;
DW:COST(7)+(HW-LW)/HW,LINETHICK1;
筹码密集度:(HW-LW)*50/HW,COLORGREEN,LINETHICK0;
该公式包含未来函数:COST。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
大智慧组合主图指标公式K线美化,无未来,可单独删除STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;{红买绿卖点显示,无未来,可单独删除}DRAWGBK(c>=0),Color2B5516;平衡:EMA(C,20),CIRCLEDOT,COLORwhite;STICKLINE((CLOSE >平衡),平衡,平衡,1,0),LINETHICK6,color0000ff;STICKLINE((平衡 > CLOSE),平衡,平衡,1,0),LINETHICK6,colorff6600;{画线显示,带未来,正常,可单独删除}Var1:=DATE>900101 AND DATE<2098108;Var2:=DATE>2098106;Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),18)/4*Var1; Var4:=IF(DATE<2098231,IF(Var3>23.16,Var3,0),0);Var5:=Var3<10;Var6:=Var3<2;Var7:=Var5 OR Var6;长期趋势: ZIG(3,19)*Var1,COLORBLUE;短期趋势: ZIG(3,6.5)*Var1,COLORYELLOW;{压力支撑显示,带未来,正常,可单独删除}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);压力线:IF(t1,A,A),ColorFF00FF,POINTDOT;STICKLINE(t1,A,A,9,0),ColorFF00FF;支撑线:IF(t2,B,B),Color80FF00,POINTDOT;STICKLINE(t2,B,B,9,0),Color80FF00;{BS买卖点显示,无未来,可单独删除}a:="LTFunc5@FORLT2"; {计算BS点}s1:="LTFunc5@LT_S1"; {s1=0,向下; s1=1,向上}hs:="LTFunc5@LT_HS"; {短线买入机会}ls:="LTFunc5@LT_LS"; {短线卖出机会}p1:="LTFunc5@LT_P1"; {p1=1,显示BS,p1上穿0线,B点 ; p1下穿1线,S点}upp:="LTFunc5@LT_UPP";{明日B点预测}udd:="LTFunc5@LT_UDD";{明日S点预测}drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;{筹码成本显示,带未来,正常,可单独删除}Zyz:=cost(99.9);Zyx:=cost(0.1);Zy:=(Zyz-Zyx)/50;Zy1:=Zyz-Zy;Zy2:=Zyz-2*Zy;Zy3:=Zyz-3*Zy;Zy4:=Zyz-4*Zy;Zy5:=Zyz-5*Zy;Zy6:=Zyz-6*Zy;Zy7:=Zyz-7*Zy;Zy8:=Zyz-8*Zy;Zy9:=Zyz-9*Zy;Zy10:=Zyz-10*Zy;Zy11:=Zyz-11*Zy;Zy12:=Zyz-12*Zy;Zy13:=Zyz-13*Zy; Zy14:=Zyz-14*Zy; Zy15:=Zyz-15*Zy; Zy16:=Zyz-16*Zy; Zy17:=Zyz-17*Zy; Zy18:=Zyz-18*Zy; Zy19:=Zyz-19*Zy; Zy20:=Zyz-20*Zy; Zy21:=Zyz-21*Zy; Zy22:=Zyz-22*Zy; Zy23:=Zyz-23*Zy; Zy24:=Zyz-24*Zy; Zy25:=Zyz-25*Zy; Zy26:=Zyz-26*Zy; Zy27:=Zyz-27*Zy; Zy28:=Zyz-28*Zy; Zy29:=Zyz-29*Zy; Zy30:=Zyz-30*Zy; Zy31:=Zyz-31*Zy; Zy32:=Zyz-32*Zy; Zy33:=Zyz-33*Zy; Zy34:=Zyz-34*Zy; Zy35:=Zyz-35*Zy; Zy36:=Zyz-36*Zy; Zy37:=Zyz-37*Zy; Zy38:=Zyz-38*Zy; Zy39:=Zyz-39*Zy; Zy40:=Zyz-40*Zy; Zy41:=Zyz-41*Zy; Zy42:=Zyz-42*Zy; Zy43:=Zyz-43*Zy; Zy44:=Zyz-44*Zy; Zy45:=Zyz-45*Zy; Zy46:=Zyz-46*Zy; Zy47:=Zyz-47*Zy; Zy48:=Zyz-48*Zy; Zy49:=Zyz-49*Zy;Z1:=winner(Zyz)*100-winner(Zy4)*100;Z2:=winner(Zy4)*100-winner(Zy7)*100;Z3:=winner(Zy7)*100-winner(Zy10)*100;Z4:=winner(Zy10)*100-winner(Zy13)*100;Z5:=winner(Zy13)*100-winner(Zy16)*100;Z6:=winner(Zy16)*100-winner(Zy19)*100;Z7:=winner(Zy19)*100-winner(Zy22)*100;Z8:=winner(Zy22)*100-winner(Zy25)*100;Z9:=winner(Zy25)*100-winner(Zy28)*100;Z10:=winner(Zy28)*100-winner(Zy31)*100;Z11:=winner(Zy31)*100-winner(Zy34)*100;Z12:=winner(Zy34)*100-winner(Zy37)*100;Z13:=winner(Zy37)*100-winner(Zy40)*100;Z14:=winner(Zy40)*100-winner(Zy43)*100;Z15:=winner(Zy43)*100-winner(Zy46)*100;Z16:=winner(Zy46)*100-winner(Zy49)*100;STICKLINE( DISPSTATUS=2,Zy1 ,Zy4 ,Z1*50 ,1 ),LAYER7,coloryellow; STICKLINE( DISPSTATUS=2,Zy5 ,Zy7 ,Z2*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy8 ,Zy10 ,Z3*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy11 ,Zy13 ,Z4*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy14 ,Zy16 ,Z5*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy17 ,Zy19 ,Z6*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy20 ,Zy23 ,Z7*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy24 ,Zy26 ,Z8*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy27 ,Zy29 ,Z9*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy30 ,Zy31 ,Z10*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy32 ,Zy34 ,Z11*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy35 ,Zy37 ,Z12*50 ,1),LAYER7,DOTLINE;; STICKLINE( DISPSTATUS=2,Zy47 ,Zy49 ,Z16*50 ,1),LAYER7,coloryellow; DRAWTEXTABS(5,5,'股旁网 '),linethick1,COLOR00EEff; {文字显示,带未来,正常,可单独删除}DRAWTEXTABS(10,10,'所属板块:'+BKNAME),COLOR00FF00,linethick1;市值:=C*CAPITAL*VOLUNIT/100000000;股本:=FINANCE2(35)/10000;流通:=FINANCE2(37)/10000;人均持股:=CEILING(CAPITAL*100/selfdata('shx'));市盈率:=DYNAINFO(39);市净率:=c/FINANCE2(4);F:=COST(5 );J:=COST(95 );M:=COST(15 );N:=COST(85 );F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;成本集中度:=F1;莸利比例:=WINNER(c )*100;日换手率:=vol/CAPITAL*100;净资产:=FINANCE2(4);净资收益率:=FINANCE2(5);最新收益:=FINANCE2(3);每股未分配:=FINANCE2(8);毛利润率:=FINANCE2(12);净利润率:=FINANCE2(33)/FINANCE2(27)*100;股东权益比:=FINANCE2(9);每股公积金:=FINANCE2(7);DRAWTEXTABS(10,30,'市值:'+市值+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,30,'股本:'+股本+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,30,'流通:'+流通+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,50,'市盈率:'+市盈率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,50,'市净率:'+市净率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,50,'成本集中度:'+成本集中度+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,70,'莸利比例:'+莸利比例+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,70,'日换手率:'+日换手率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,70,'净资产:'+净资产+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,90,'净资收益率:'+净资收益率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,90,'最新收益:'+最新收益+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,90,'每股未分配:'+每股未分配+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,110,'毛利润率:'+毛利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,110,'净利润率:'+净利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,110,'股东权益比:'+股东权益比+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,130,'每股公积金:'+每股公积金+'元 '),LINETHICK1,Color00FF00;{文字显示,无未来,可单独删除}mc:=REF(c,1);阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);止损位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));止损位2:=IF((mc < 10),(mc * 0.95),止损位b);DRAWTEXTABS(10,150,'[昨/今日止损位 :'+NUMTOSTRn(止损位b,2)+'/'+NUMTOSTRn(止损位1,2)+']'),LINETHICK1,COLORYELLOW;DRAWTEXTABS(10,170,'[昨/今日阻力位 :'+NUMTOSTRn(阻力位2,2)+'/'+NUMTOSTRn(阻力位1,2)+']'),LINETHICK1,COLORYELLOW;。