博易大师期货软件指标公式源码精确买卖指标期货最准的指标
博易大师期货软件指标公式源码期货最准的指标准确率最高的期货指标
HH:=H;LL:=L;A:=IF(DATACOUNT-BARPOS<13,DATACOUNT-BARPOS-1,25/2);//多止损:=REFX(MA(LL,25),25/2)-(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*3.5,NODRAW,COLORY ELLOW;//多止盈:=(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*1+REFX(MA(HH,25),25/2),NODRAW,COLOR WHITE;//空止损:=(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*3.5+REFX(MA(HH,25),25/2),NODRAW,COLO RYELLOW;//空止盈:=REFX(MA(LL,25),25/2)-(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*1,NODRAW,COLORW HITE;多止损:=REFX(MA(LL,25),A)-(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*3.5,NODRAW,COLORYELLOW; 多止盈:=(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*1+REFX(MA(HH,25),A),NODRAW,COLORWHITE;空止损:=(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*3.5+REFX(MA(HH,25),A),NODRAW,COLORYELLOW; 空止盈:=REFX(MA(LL,25),A)-(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*1,NODRAW,COLORWHITE;短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;D90H:=EMA(短高H,90),COLORRED,LINETHICK1;D90L:=EMA(短低L,90),COLORRED,LINETHICK1;D90差:=D90H-D90L;D90顶:=D90H+D90差*2,COLORRED,LINETHICK1;D90底:=D90L-D90差*2,COLORRED,LINETHICK1;高0:=(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*1+REFX(MA(HH,25),A),LINETHICK1,COLORWHITE; 低0:=REFX(MA(LL,25),A)-(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*1,LINETHICK1,COLORWHITE; 多头定位:=低0>=D90底AND 高0>=D90顶;空头定位:=高0<=D90顶AND 低0<=D90底;震荡定位:=低0>=D90底AND 高0<=D90顶;短顶:=(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*2+REFX(MA(HH,25),A),LINETHICK2,COLORGREEN; 短底:=REFX(MA(LL,25),A)-(REFX(MA(HH,25),A)-REFX(MA(LL,25),A))*2,LINETHICK2,COLORGREEN; 短线收盘:=(C-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线开盘:=(O-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线高盘:=(H-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;短线低盘:=(L-短底)/(短顶-短底)*100000,NODRAW,COLORRED;顶1:=120000,COLORYELLOW,LINETHICK3;底1:=-20000,COLORYELLOW,LINETHICK3;STICKLINE(多头定位=1,顶1,底1,18,0),COLOR000066;STICKLINE(空头定位=1,顶1,底1,18,0),COLOR003300;STICKLINE(震荡定位=1,顶1,底1,18,0),COLOR555555;HD:=REFX(MA(短线高盘,25),A);LD:=REFX(MA(短线低盘,25),A);震荡顶:=(REFX(MA(LD,25),A)-REFX(MA(HD,25),A))*1+REFX(MA(LD,25),A),POINTDOT,COLORWHITE; 震荡底:=REFX(MA(HD,25),A)-((REFX(MA(LD,25),A))-REFX(MA(HD,25),A))*1,POINTDOT,COLORWHITE; 做空:=80000,COLORWHITE,LINETHICK1;做多:=20000,COLORWHITE,LINETHICK1;空损:=120000,COLORMAGENTA,LINETHICK2;多损:=-20000,COLORMAGENTA,LINETHICK2;多减仓:=65000,POINTDOT,COLORRED;空减仓:=35000,POINTDOT,COLORGREEN;DRAWTEXT(ISLASTBAR,120000,'损'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,80000,'空'),COLORWHITE;DRAWTEXT(ISLASTBAR,65000,'减'),COLORRED;DRAWTEXT(ISLASTBAR,35000,'减'),COLORGREEN;DRAWTEXT(ISLASTBAR,20000,'多'),COLORWHITE;DRAWTEXT(ISLASTBAR,-20000,'损'),COLORMAGENTA;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;今D:=EMA(D,3);昨D:=REF(今D,1);STICKLINE(今D>=昨D,短线低盘,短线高盘,1,0),COLORRED; STICKLINE(今D>=昨D,短线收盘,短线开盘,18,0),COLORRED; STICKLINE(今D<=昨D,短线低盘,短线高盘,1,0),COLORGREEN; STICKLINE(今D<=昨D,短线收盘,短线开盘,18,0),COLORGREEN;白色点多定位1:=短线低盘<做多AND 短线高盘>做多;白色点空定位1:=短线高盘>做空AND 短线低盘<做空;STICKLINE(白色点多定位1=1,短线低盘,做多,18,0),COLORWHITE; STICKLINE(白色点空定位1=1,短线高盘,做空,18,0),COLORWHITE;白色点多定位2:=短线高盘<做多;白色点空定位2:=短线低盘>做空;STICKLINE(白色点多定位2=1,短线低盘,短线高盘,1,0),COLORWHITE; STICKLINE(白色点多定位2=1,短线收盘,短线开盘,18,0),COLORWHITE; STICKLINE(白色点空定位2=1,短线低盘,短线高盘,1,0),COLORWHITE; STICKLINE(白色点空定位2=1,短线收盘,短线开盘,18,0),COLORWHITE;多头红色点:=今D>昨D;空头红色点:=今D<昨D;多头红色点定位1:=白色点多定位1=1 AND 多头红色点=1;空头红色点定位1:=白色点空定位1=1 AND 空头红色点=1;STICKLINE(多头红色点定位1=1,短线低盘,做多,18,0),COLORMAGENTA; STICKLINE(空头红色点定位1=1,短线高盘,做空,18,0),COLORMAGENTA;多头红色点定位2:=白色点多定位2=1 AND 多头红色点=1;空头红色点定位2:=白色点空定位2=1 AND 空头红色点=1;STICKLINE(多头红色点定位2=1,短线低盘,短线高盘,1,0),COLORMAGENTA; STICKLINE(多头红色点定位2=1,短线收盘,短线开盘,18,0),COLORMAGENTA; STICKLINE(空头红色点定位2=1,短线低盘,短线高盘,1,0),COLORMAGENTA; STICKLINE(空头红色点定位2=1,短线收盘,短线开盘,18,0),COLORMAGENTA; 多头多定位:=CROSS(做多,短线低盘) AND 多头定位=1;多头平定位:=CROSS(短线高盘,做空) AND 多头定位=1 AND 震荡定位=0; 空头空定位:=CROSS(短线高盘,做空) AND 空头定位=1;空头平定位:=CROSS(做多,短线低盘) AND 空头定位=1 AND 震荡定位=0; 震荡多定位:=CROSS(做多,短线低盘) AND 震荡定位=1;震荡空定位:=CROSS(短线高盘,做空) AND 震荡定位=1;DRAWICON(空头平定位=1,短线低盘,78);DRAWICON(多头平定位=1,短线高盘,67);DRAWICON(多头多定位=1 OR 震荡多定位=1,短线低盘,48);DRAWICON(空头空定位=1 OR 震荡空定位=1,短线高盘,49); STICKLINE(1,80000,80000,15,0),COLORWHITE; STICKLINE(1,20000,20000,15,0),COLORWHITE; STICKLINE(1,120000,120000,15,0),COLORMAGENTA; STICKLINE(1,-20000,-20000,15,0),COLORMAGENTA; STICKLINE(1,65000,65000,2,0),COLORRED; STICKLINE(1,35000,35000,2,0),COLORGREEN;。
博易大师期货软件指标公式源码期货最准的指标期货买卖指标
LC:=REF(CLOSE,1);MAXDIF:=MAX(CLOSE-LC,0);ABSDIF:=ABS(CLOSE-LC);RSI:=SMA(MAXDIF,6,1)/SMA(ABSDIF,6,1)*100;周期:=40;盘1:=LLV(INDEXL,周期); 盘差:=HHV(INDEXH,周期)-盘1; 价1:=LLV(L,周期); 价差:=HHV(H,周期)-价1;价盘比:= 价差/盘差;{大盘: 价1+(INDEXC-盘1)*价盘比,COLORAA0077;}CX:=价1+(INDEXC-盘1)*价盘比;HX:=价1+(INDEXH-盘1)*价盘比;LX:=价1+(INDEXL-盘1)*价盘比;OX:=价1+(INDEXO-盘1)*价盘比;STICKLINE(OX<=CX,HX,LX,0,0),COLOR660066; STICKLINE(OX<=CX,OX,CX,1,1),COLOR660066; STICKLINE(OX>=CX,HX,LX,0,0),COLOR8A0000; STICKLINE(OX>=CX,OX,CX,1,1),COLOR8A0000;{重绘K线}DRAWKLINE(HIGH,OPEN,LOW,CLOSE);{以上代码加到你主图代码的前面}{以下是你的主图原码}{比如:布林线信号}H_L:=价差;BOLL:MA(C,26),COLORBLUE;UPPER:BOLL+2*STD(C,26),COLORWHITE;LOWER:BOLL-2*STD(C,26),COLORWHITE; DRAWTEXT(CROSS(C,LOWER),L-H_L*0.1,'多'),COLORRED;DRAWICON(CROSS(C,LOWER),L-H_L*0.1,5);{买信号B};DRAWTEXT(CROSS(UPPER,C),H+H_L*0.1,'空'),COLORGREEN;DRAWICON(CROSS(UPPER,C),H+H_L*0.1,6);{卖信号S};EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;EMA90:=MA(C,90),COLORGREEN;EMA120:=MA(C,120),COLORRED;EMA240:=MA(C,240),COLORBLUE;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<22,L-0.05,'●多'),COLORRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>78,H+0.05,'空'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<22,L-0.05,3);DRAWICON(CROSS(庄家,散户) AND 散户>78,H+0.05,4);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,0); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK2,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK2,COLORGREEN;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CL OSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK2,COLORGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14),COLORBLUE,LINETHICK1;A2:=EMA(A0,25),COLORBLUE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),LINETHICK2,C OLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),LINETHICK2,C OLORGREEN{LINETHICK2};买入持股:IF(A1X>=0,A1,DRAWNULL),COLORRED,LINETHICK2;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL),COLORGREEN,LINETHICK2;{红色的量能平台}STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF; STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLORRED; STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF; {黄色的量能平台}STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66FF99; STICKLINE(CROSS(0,A1X),C,O,3,0 ),COLOR66FF99; STICKLINE(CROSS(0,A1X),C,O,1,0 ),COLOR66FF99;。
博易大师指标公式汇总以及源代码集成
博易大师指标公式汇总以及源代码集成博易大师(Bollinger Bands)指标是一种常用的股票交易技术分析工具,由约翰·波林格(John Bollinger)在1980年代提出。
该指标通过计算标准差来衡量股票价格的波动性,并结合移动平均线来提供买入和卖出的参考。
以下是博易大师指标的公式和一些常见的源代码集成示例。
1.计算移动平均线(MA)MA=(收盘价1+收盘价2+...+收盘价n)/n2.计算标准差(SD)SD = sqrt(((收盘价1 - MA)^2 + (收盘价2 - MA)^2 + ... + (收盘价n - MA)^2) / n)3. 计算上轨线(Upper Band)Upper Band = MA + k * SD4. 计算下轨线(Lower Band)Lower Band = MA - k * SD其中,n为计算移动平均线和标准差的周期数,k为标准差的倍数。
以下是一些常用编程语言的源代码集成示例:Python:```pythonimport numpy as npdef bollinger_bands(data, n, k):ma = np.mean(data)sd = np.std(data)upper_band = ma + k * sdlower_band = ma - k * sdreturn upper_band, lower_band#示例用法closing_prices = [10, 12, 14, 16, 18, 20, 22, 24, 26, 28]n=10k=2upper_band, lower_band = bollinger_bands(closing_prices, n, k)print("Upper Band:", upper_band)print("Lower Band:", lower_band)```R:```rbollinger_bands <- function(data, n, k)ma <- mean(data)sd <- sd(data)upper_band <- ma + k * sdlower_band <- ma - k * sdreturn(c(upper_band, lower_band))#示例用法closing_prices <- c(10, 12, 14, 16, 18, 20, 22, 24, 26, 28) n<-10k<-2bands <- bollinger_bands(closing_prices, n, k)cat("Upper Band:", bands[1], "\n")cat("Lower Band:", bands[2], "\n")```以上是博易大师指标公式的汇总以及在Python和R编程语言中的源代码集成示例。
博易大师指标公式信管家指标准确率最高的期货指标15分钟准确率95指标
G:=EMA(C,5);D:=EMA(C,10);NNH:=BARSLAST(H=HHV(H,7)) ,NODRAW;NNL:=BARSLAST(L=LLV(L,7)) ,NODRAW;//PD:=REF(G,NNH)>REF(D,NNH) ,NODRAW;NN:=IF(REF(G,NNH)>REF(D,NNH) AND NNH<=4,NNH,IF(REF(G,NNL)<REF(D,NNL) ANDNNL<=4,NNL,5)) ,NODRAW;N:=IF(ISLASTBAR AND NN>0,NN,5) ,NODRAW;HH:=REF(H,N)=HHV(H,6);LL:=REF(L,N)=LLV(L,6);FG01:BACKSET(HH,N+1)>BACKSET(HH,N),NODRAW;//只设置前面第6个FD01:BACKSET(LL,N+1)>BACKSET(LL,N) ,NODRAW;FG02:=FG01=FD01 AND G>D,NODRAW;FD02:FG01=FD01 AND G<D,NODRAW;//FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>D,FG01,//高底是同一K看均线位置// IF(BARSLAST(FD01)>BARSLAST(FG01),FG01,0)),NODRAW;//高点处BARLAST(FG01)=0 //FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>G,FD01,//IF(BARSLAST(FG01)>BARSLAST(FD01),FD01,0)),NODRAW;TTTT:BARSLAST(FD01),NODRAW;//FG0:=FG01 AND H=HHV(H,IF(FG02=1,BARSLAST(REF(FD01,1))+1,BARSLAST(FD01))) AND FD02=0 ,NODRAW;//FD0:=FD01 AND L=LLV(L,IF(FD02=1,BARSLAST(REF(FG01,1))+1,BARSLAST(FG01))) ANDFG02=0 ,NODRAW;FG0:=FG01 ANDIF(FG02=1,H=HHV(H,BARSLAST(REF(FD01,1))+1),H=HHV(H,IF(BARSLAST(L=LLV(L,7))>=5,5,BARS LAST(FD01)))) AND FD02=0 ,NODRAW;FD0:=FD01 ANDIF(FD02=1,L=LLV(L,BARSLAST(REF(FG01,1))+1),L=LLV(L,IF(BARSLAST(H=HHV(L,7))>=5,5,BARSLA ST(FG01)))) AND FG02=0 ,NODRAW;//高低点间周期//高低点间周期GT:BARSLAST(FG0),NODRAW;DT:BARSLAST(FD0),NODRAW;//第一次处理高低点间多余的点LLLL:DT=0 AND REF(DT,1)<GT AND L>REF(L,REF(DT,1)+1),NODRAW;FG1:BACKSET(REFX(GT,1)=0 AND GT<DT AND REFX(H,1)>=REF(H,GT),GT+1),NODRAW;FD1:BACKSET(REFX(DT,1)=0 AND DT<GT AND REFX(L,1)<=REF(L,DT),DT+1),NODRAW;FG11:IF(GT=0 AND REF(GT,1)<DT ANDIF(REF(G,BARSLAST(L=LLV(L,7)))>REF(D,BARSLAST(L=LLV(L,7))),BARSLAST(L=LLV(L,7))<5,1) AND H<REF(H,REF(GT,1)+1),1,0),NODRAW;FD11:IF(DT=0 AND REF(DT,1)<GT ANDIF(REF(G,BARSLAST(H=HHV(H,7)))<REF(D,BARSLAST(H=HHV(H,7))),BARSLAST(H=HHV(H,7))<5,1) AND L>REF(L,REF(DT,1)+1),1,0),NODRAW;//再次周期GT1:BARSLAST(FG11<>1 AND FG1<>1 AND FG0),NODRAW;DT1:BARSLAST(FD11<>1 AND FD1<>1 AND FD0),NODRAW;//GGT1:=REF(GT1,1),NODRAW;//处理两边都少于3根的笔//HHHH:REF(H,GT1),NODRAW;//HHHHH:HHV(H,GT1+5),NODRAW;FD2:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 ANDREF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;//加两句,低是最低,去两边;//NL:GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 ,NODRAW;//LLLLLLLL:LLV(L,GT1+5),NODRAW;FG2A:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND GT1-DT1<4 AND REF(L,DT1)<=LLV(L,GT1+5) AND REF(H,GT1)>HHV(H,GT1+5),GT1+1),NODRAW;FG2B:IF(GT1=0 AND DT1<4 AND REF(GT1,1)-DT1<4 AND REF(L,DT1)<=LLV(L,REF(GT1,1)+6) AND H>HHV(H,REF(GT1,1)+6),1,0),NODRAW;FG2:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 ANDREF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;FD2A:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND DT1-GT1<4 AND REF(H,GT1)>=HHV(L,DT1+5) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FD2B:IF(DT1=0 AND GT1<4 AND REF(DT1,1)-GT1<4 AND REF(H,GT1)>=HHV(H,REF(DT1,1)+6)AND L>LLV(L,REF(DT1,1)+6),1,0),NODRAW;////HHV(H,GT1+1)<HHV(H,GT1+15)//GGG:HHV(H,GT1+1),NODRAW;//DDD:HHV(H,GT1+15),NODRAW;//处理单边都少于3根的笔//GT11:=BARSLAST(GT1=0 AND FG2<>1),NODRAW;//DT11:=BARSLAST(DT1=0 AND FD2<>1 AND FD20<>1),NODRAW;//FG21:IF(GT1=0 AND DT1<4 AND H<HHV(H,REF(GT1,1)+3),1,0),NODRAW;//FD21:IF(DT1=0 AND GT1<4 AND L>LLV(L,REF(DT1,1)+3) ,1,0),NODRAW;//FD22:BACKSET(REFX(GT1,1)=0 AND DT1<3 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>LLV(L,GT1+5),DT1+1),NODRAW;//FG22:BACKSET(REFX(DT1,1)=0 AND GT1<3 AND REFX(L,1)<REF(L,DT1) ANDREF(H,GT1)<HHV(H,DT1+5),GT1+1),NODRAW;TTTTTT: H<REF(H,REF(GT1,1)+1) AND DT1<4,NODRAW;HHHHHH:REF(LLV(L,10),DT1),NODRAW;//前长后短;FG21:IF(GT1=0 AND DT1<4 AND H<=REF(H,REF(GT1,1)+1) ,1,0),NODRAW;FD21:IF(DT1=0 AND GT1<4 AND L>=REF(L,REF(DT1,1)+1) ,1,0),NODRAW;//前短后长,前低后高(去低);FD231:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND REF(L,DT1)>REF(LLV(L,10),DT1),DT1+1),NODRAW;FG23:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 AND REFX(H,1)>REF(H,GT1) AND (REF(H,GT1)<REF(HHV(H,13),GT1) ORREF(FD231,DT1)=0),GT1+1),NODRAW;//前短后长,前高后低(去高);//NNN:REF(H,GT1)>=REF(HHV(H,8),GT1),NODRAW;//前短后长,去2;FG231:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND REF(H,GT1)<REF(HHV(H,10),GT1) ,GT1+1),NODRAW;FD23:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 AND REFX(L,1)<REF(L,DT1) AND ( REF(L,DT1)>REF(LLV(L,13),DT1) ORREF(FG231,GT1)=0),DT1+1),NODRAW;///前短后长,去3;FDD23:REF(H,GT1)<REF(HHV(H,10),GT1) OR REF(FD23,DT1)=0,NODRAW;FD24:BACKSET(REFX(GT1,1)=0 AND DT1>3 AND GT1>DT1 AND GT1-DT1<4 ANDREFX(H,1)<HHV(H,GT1+3) AND REF(L,DT1)>LLV(L,DT1+5),DT1+1),NODRAW;FG24:BACKSET(REFX(DT1,1)=0 AND GT1>3 AND DT1>GT1 AND DT1-GT1<4 ANDREFX(L,1)>LLV(L,DT1+3) AND REF(H,GT1)<HHV(H,GT1+5),GT1+1),NODRAW;//FG241:IF(GT1=0 AND DT1>4 AND REF(GT1,1)-DT1<3 AND H<HHV(H,REF(GT1,1)+3) AND REF(FD24,DT1+2)<>1,1,0),NODRAW;//FD241:IF(DT1=0 AND GT1>4 AND REF(DT1,1)-GT1<3 AND L>LLV(L,REF(DT1,1)+3) AND REF(FG24,GT1+2)<>1,1,0),NODRAW;//FGE:BACKSET(ISLASTBAR AND DT1-GT1<3 AND DT1>GT1, GT1+1),NODRAW;//FDE:BACKSET(ISLASTBAR AND GT1-DT1<3 AND GT1>DT1, DT1+1),NODRAW;//FG21:IF(GT1=0 AND DT1<4 AND REF(GT1,1)<4,1,0),NODRAW;//FD21:IF(DT1=0 AND GT1<4 AND REF(DT1,1)<4 ,1,0),NODRAW;//做两次高低点间多余的点GT2:BARSLAST(FG21<>1 AND FG23<>1 AND FG231<>1 AND FG24<>1 AND FG2<>1 AND FG2A<>1 AND FG2B<>1 AND GT1=0),NODRAW;DT2:BARSLAST(FD21<>1 AND FD23<>1 AND FD231<>1 AND FD24<>1 AND FD2<>1 AND FD2A<>1 AND FD2B<>1 AND DT1=0),NODRAW;FG3:BACKSET(REFX(GT2,1)=0 AND GT2<DT2 AND REFX(H,1)>=REF(H,GT2),GT2+1),NODRAW; //HHX:REF(H,GT2),NODRAW;FD3:BACKSET(REFX(DT2,1)=0 AND DT2<GT2 AND REFX(L,1)<=REF(L,DT2),DT2+1),NODRAW; FG31:IF(GT2=0 AND REF(GT2,1)<DT2 AND H<REF(H,REF(GT2,1)+1),1,0),NODRAW;FD31:IF(DT2=0 AND REF(DT2,1)<GT2 AND L>REF(L,REF(DT2,1)+1),1,0),NODRAW;GT3:BARSLAST(GT2=0 AND FG3<>1 AND FG31<>1 ),NODRAW;DT3:BARSLAST(DT2=0 AND FD3<>1 AND FD31<>1),NODRAW;FG4:BACKSET(REFX(GT3,1)=0 AND GT3<DT3 AND REFX(H,1)>=REF(H,GT3),GT3+1),NODRAW; FD4:BACKSET(REFX(DT3,1)=0 AND DT3<GT3 AND REFX(L,1)<=REF(L,DT3),DT3+1),NODRAW; FG41:IF(GT3=0 AND REF(GT3,1)<DT3 AND H<REF(H,REF(GT3,1)+1),1,0),NODRAW;FD41:IF(DT3=0 AND REF(DT3,1)<GT3 AND L>REF(L,REF(DT3,1)+1),1,0),NODRAW;//FD31:IF(DT2=0 AND REF(DT2,1)<REF(GT2,1) AND L>REF(L,DT2+1),1,0),NODRAW;//HHH:=GT3=0,NODRAW;//LLL:=DT3=0,NODRAW;HHH:=GT3=0 AND FG31<>1 AND FG3<>1,NODRAW;LLL:=DT3=0 AND FD31<>1 AND FD3<>1,NODRAW;//HHH:=FG0 AND FG11<>1 AND FG1<>1 AND FG2<>1 AND FG21<>1 AND FG31<>1 AND FG3<>1;//LLL:=FD0 AND FD11<>1 AND FD1<>1 AND FD2<>1 AND FD21<>1 AND FD31<>1 AND FD3<>1;DRAWLINE(HHH ,H,LLL,L,0),COLORWHITE,POINTDOT;DRAWLINE(LLL,L,HHH ,H,0),COLORWHITE,POINTDOT;//DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//DEA := EMA(DIFF,9);//MACD:=2*(DIFF-DEA),COLORSTICK;//R1:=MACD<0&&DEA<0&&REF(MACD,1)<REF(DEA,1)&&MACD>DEA;//G1:=MACD>0&&DEA>0&&REF(MACD,1)>REF(DEA,1)&&MACD<DEA;//X:=BACKSET(ISLASTBAR,BARSLAST(G1||R1)+1);//DRAWSL(CROSS(X,0.5),H,0,1,2,COLORYELLOW);//DRAWSL(CROSS(X,0.5),H,0,-3,0,COLORYELLOW);//DRAWSL(CROSS(X,0.5),REF(VALUEWHEN(G1||R1,H),1),0,-BARSLAST(REF(G1||R1,1))-1-3,0,COLO RYELLOW);//X1:=BACKSET(ISLASTBAR,BARSLAST(G1||R1)+1);//DRAWSL(CROSS(X1,0.5),L,0,1,2,COLORYELLOW);//DRAWSL(CROSS(X1,0.5),L,0,-3,0,COLORYELLOW);//DRAWSL(CROSS(X1,0.5),REF(VALUEWHEN(G1||R1,L),1),0,-BARSLAST(REF(G1||R1,1))-1-3,0,COLO RYELLOW);。
博易大师期货软件指标公式源码期货最准的指标精确度98的波段指标
{低吸高抛:强买}VAR1:=REF(CLOSE,2);趋势线:SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,LINETHICK2,COLORBLUE; VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;STICKLINE(趋势线>85,78,85,1.2,0), COLORYELLOW;STICKLINE(趋势线>90,78,85,1.8,0), COLORRED;DRAWICON(趋势线>95 ,100,2);吸:=IF(趋势线<12,23,12),COLORWHITE,LINETHICK2;强买:=IF(VAR3<12,30,12),COLORMAGENTA,LINETHICK2;{轻仓大底}长期线:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,COLOR9900FF,LINE THICK3;短期线:=-100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100,COLORRED;中期线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLORYELLOW,LIN ETHICK2;STICKLINE(中期线<12,23,12,2,0), COLORYELLOW;STICKLINE(长期线<12,23,12,2,0), COLORRED;{强势拉升}上趋势:=MA(LOW,20)*1.2,COLOR0080FF,LINETHICK2;次上趋势:=MA(LOW,20)*1.1,COLORYELLOW;次下趋势:=MA(HIGH,20)*0.9,COLORWHITE;下趋势:=MA(HIGH,20)*0.8,COLORGREEN,LINETHICK1;ZD:=(C-REF(C,1))/REF(C,1)*100;HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势AND C<次上趋势,2,IF(C<下趋势,0,1))),NODRAW;底距:=(C-下趋势)/下趋势*100,NODRAW;{一目了然}MA多:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2; 多方:EMA(MA多,5),COLORYELLOW,LINETHICK2;XX:=IF(多方<45,多方,DRAWNULL),COLORGREEN,LINETHICK3;三成:=IF(多方<25 AND 多方>=20,50,25),COLORWHITE,LINETHICK2;六成:=IF(多方<20 AND 多方>=15,35,25),COLORRED,LINETHICK3;全仓:IF(多方<15,37,25),COLORRED,LINETHICK5;STICKLINE(多方>75,68,60,1.2,0), COLORYELLOW;STICKLINE(多方>80,68,60,1.2,0), COLORRED;DRAWICON(多方>85 ,55,2);{砸锅卖田}趋线:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD,NODRAW;AA:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-30,趋线),1) AND CROSS(趋线,-30)) OR 趋线=-30;卖田:=IF(AA,65,12),COLORYELLOW,LINETHICK2;BB:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-20 AND 趋线>-25) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-20,趋线),1) AND CROSS(趋线,-20));见底:=IF(BB,58,12),COLORRED,LINETHICK2;CC:=((REF(趋线,1)<REF(趋线,2) AND 趋线<-25 AND 趋线>-30) AND 趋线>=REF(趋线,1)) OR (REF(CROSS(-25,趋线),1) AND CROSS(趋线,-25));浅底:IF(趋线<-20,60,12),LINETHICK3,COLORF0F000;DRAWTEXT(CROSS(-20,趋线),80,'浅底'),COLORF0F000;IF(趋线<-25,80,12),LINETHICK2,COLORF00FF0;DRAWTEXT(CROSS(-25,趋线),90,'深底'),COLORF00FF0;IF(趋线<-30,35,12),LINETHICK4,COLORWHITE;DRAWTEXT(CROSS(-30,趋线),55,'砸锅'),COLORGRAY;{走势铁底}M:=88;N1:=6;VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:=(MA(VAR0A,13)*0.99),LINETHICK2;KK:=(MA(VAR0A,13)*0.999);TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW))); ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));生命:=(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;VARX1:=EMA(AMOUNT/VOL/100,3);控盘成本:=EMA(VARX1,M),LINETHICK2;低吸伏击:=EMA(VARX1,M)*0.85,LINETHICK2,COLORFFFF00;走势铁底:=低吸伏击*0.87,LINETHICK3,COLORFF00FF;距底:=(C-低吸伏击)/低吸伏击*100,NODRAW;机会:IF(趋势强度<=1 AND 中期线<12 AND 距底>0 AND 距底<5,55,25),COLORGREEN,LINETHICK2;低吸:IF(C<低吸伏击AND 中期线<12 AND 趋势强度=1,58,25),COLORYELLOW,LINETHICK3;伏击:IF(L<走势铁底,66,25),COLORRED,LINETHICK3;{俊俊建仓}VARZ1:=1;VARZ2:=REF(LOW,1)*VARZ1;VARZ3:=SMA(ABS(LOW-VARZ2),3,1)/SMA(MAX(LOW-VARZ2,0),3,1)*100*VARZ1;VARZ4:=(2*C+H+L)/4;VARZ5:=LLV(LOW,60);VARZ6:=(2*CLOSE+HIGH+LOW)/4;VARZ8:=LLV(LOW,34);VARZ11:=HHV(HIGH,34);VARZ12:=EMA((VARZ6-VARZ8)/(VARZ11-VARZ8)*100,13);VARZ13:=EMA(0.667*REF(VARZ12,1)+0.333*VARZ12,2);VARZ0:=HHV(HIGH,60);AAA:=EMA((VARZ4-VARZ5)/(VARZ0-VARZ5)*100,5);BBB:=EMA(AAA,5);上线:=IF(AAA>=BBB,100,100),COLOR00FF00,LINETHICK3;下线:=IF(AAA<BBB,0,0),COLOR00FFCC,LINETHICK3;中线:=IF(AAA<BBB,50,50),LINETHICK1,COLOR0033FF;HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;趋势:=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); DRAWICON(趋势<=3 AND 趋势强度<=1,63,1);{临界点}C1:=((MA(C,30)-L)/MA(C,60))*200;临界点:=IF(C1>30,68,45),LINETHICK3,COLORRED;{主力进场:下方红绿柱}VR2:=REF(LOW,1);VR3:=SMA(ABS(LOW-VR2),3,1)/SMA(MAX(LOW-VR2,0),3,1)*100;VR4:=EMA(IF(CLOSE*1.3,VR3*10,VR3/10),3);VR5:=LLV(LOW,30);VR6:=HHV(VR4,30);VR7:=IF(MA(CLOSE,58),1,0);主力:=EMA(IF(LOW<=VR5,(VR4+VR6*2)/2,0),3)/618*VR7,COLORMAGENTA,NODRAW; VR9:=IF(主力>100,100,主力);STICKLINE(VR9>0,0,VR9,3,0),COLORMAGENTA;STICKLINE(主力<REF(主力,1),0,VR9,3,0),COLORGREEN;STICKLINE(VR9<REF(VR9,1),0,VR9,3,0),COLORGREEN;。
博弈大师精准买卖指标
博易大师指标公式集锦以及编写方法大集合(用时把前面空格删掉)利多方舟VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /(HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6)-LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(CLOSE*0.95),' f '),C0L0R0000FF;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'卖'),COLORFFFF34;年:MA(CLOSE,30),COLORGREEN;STICKLINE(C>=¥ ANDC>=O,C,O,3,0),COLORRED;STICKLINE(C>=¥ ANDC>=O,H, L,0,0),COLORRED;STICKLINE(C>=¥ ANDC<O,C,O,3,1),COLORRED;STICKLINE(C>=¥ ANDC<O,O,H,0,0),COLORRED;STICKLINE(C>=¥ ANDC<O,C,L,0,0),COLORRED;STICKLINE(C< 年 ANDC>O,C,O,3,1),COLORFFFF00;STICKLINE(C< 年 ANDC<=O,C,O,3,1),COLORFFFF00;STICKLINE(C< 年 ANDC<=O ,H, L,0,1),COLORFFFF00;STICKLINE(C< 年 ANDC>O,C,H,0,1),COLORFFFF00;STICKLINE(C< 年 ANDC>O ,O,L ,0,1),COLORFFFF00;符号f为”买”变色MACDDIFF:(EMA(CLOSE,12)-EMA(CLOSE,26))*20,COLORFFFFFF,LINETHICK1;DEA:EMA(DIFF,9),COLOROOFFFF,LINETHICK1;MACD:2*(DIFF-DEA), COLORSTICK; MACD1:2*(DIFF-DEA),COLORRED,LINETHICKO;MACD2:SMA(MACD1,0,3),COLORFFFFOO, LINETHICK0;STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLOR00FFFF;STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLOR40FF00;S1:=MACD<0;S2:= (MACD>=0);S3:=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:=CROSS(DIFF,DEA) AND S6;L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1, L2));L4:=REF(L3, L3+1);L5:=L2;变盘:CROSS(L1 ,L2) ANDL5,L INETHICK0,COLORD6FF9C;STICKLINE(变盘,5,-5,4,1),COLORD6FF9C;成立距今:BARSLAST(CROSS(DIFF,DEA)),LINETHICKO;L6:=BARSCOUNT(CLOSE);DRAWTEXT(CROSS(L1, L2),DIFF,' 买'),COLOROOOOFF;DRAWTEXT(CROSS(L2, L1),DIFF,' 卖'),COLORFFFF00;REF(DEA,S3),POINTDOT,COLORGREEN;IF(L1>L2,REF(DEA,S3),O),POINTDOT,LINETHICK5,COLORBO78FF;IF(MACD<O,REF(DEA,S3),O),POINTDOT,LINETHICK5,COLORGREEN; LS:=IF(DIFF>DEA ANDDIFF>0,1,0);加速上扬:IF(REF(LS=0,1) ANDLS=1,0.1,0);XG1:CROSS(MACD1,MACD2) AND MACD1<0,LINETHICK0;XG2:CROSS(DIFF,DEA), LINETHICK0;M1:=MACD>REF(MACD,1) AND DIFF<DEA;绿柱短了 :M1 AND COUNT(M1,10)=1 ANDC>MA(C,55) AND COUNT(MACD<0,5)>=5, LINETHICK0;DRAWTEXT(绿柱短了,MACD,'绿柱短了’),COLOROOFF8O;渔家乐渔家:3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1) ,3,1), LINETHICK2,COLORYELLOW;渔家乐:IF(CROSS( 渔家,MA(渔家,10)) AND 渔家 <=10,35,0),LINETHICK3 COLORMAGENTA;渔家出海:IF(CROSS( 渔家,MA(渔家,10)) AND 渔家<35,70,0), LINETHICK3 , COLORRED;渔家网:IF(CROSS(MA( 渔家,9), 渔家)AND 渔家 >70,110,72),LINETHICK1 COLORCYAN;DRAWICON(CROSS(渔家,62),68,1);DRAWICON(CROSS(渔家,72),70,1);DRAWICON(CROSS(渔家,66),72,1);DRAWICON(CROSS(渔家,68),66,1);DRAWICON(CROSS(76,渔家),70,2);DRAWICON(CROSS(68,渔家),84,2);DRAWICON(CROSS(66,渔家),80,2);DRAWICON(CROSS(64,渔家),70,2);准备下网:IF(渔家 <=10,30,0),STICK,COLOR8080FF,LINETHICK4;此处下网:IF(CROSS(渔家,10),45,0),STICK,COLORRED,LINETHICK4;DRAWTEXT(此处下网,40,'关注!!!’),COLORYELLOW;准备休渔吧:IF( 渔家 >=90,70,0),STICK, COLORGREEN;休渔吧:IF(CROSS(84, 渔家),100,0),STICK,COLOR77AAFF,LINETHICK5;DRAWTEXT(休渔吧,98,' 回家! '),COLOR77AAFF ;水面:72, COLORCYAN ;网架:105;水底:10;渔家 2: MA( 渔家,9),LINETHICK2 ,COLORFF0000;IF(CROSS(渔家,MA(渔家,6)) AND 渔家 2<45,渔家2,0),COLORCCB3E2 ,LINETHICK3 ;仿DDXVOL,VOLSTICK;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:VOL,VOLSTICK;主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,COLORSTICK;主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-L OW),0-VOL/2)),COLOROOFFOO,COLORSTICK;增仓减仓:IF(主买>=(ABS(主卖)),主买+主卖,主卖+主买),COLORYELLOW 丄INETHICK2;无敌趋势RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1OO;RSV2:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*1OO;J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);趋势线:3*SMA(RSV2,5,1)-2*SMA(SMA(RSV2,5,1),3,1),LINETHICK2,COLORFF84FF;K:SMA(RSV2,3,1),LINETHICK2,COLORWHITE;D:SMA(K,3,1), LINETHICK2,COLORF408F4;DI:IF(趋势线 <=10,30,0),LINETHICK2,COLORYELLOW;KI:IF(CROSS(J2,J1) ANDJ2>85,70,100) ,L INETHICK2,COLOR00FF00;强弱界线:49,POINTDOT,LINETHICK3,COLOR99AACC;STICKLINE(趋势线 >88,100,趋势线,4,1),COLORGREEN;STICKLINE(趋势线 <=10,0,趋势线,4,1),COLORYELLOW;STICKLINE(COUNT趋势线<REF(趋势线,1) AND 趋势线<10,2)=2,0,20,4,0),COLORRED;STICKLINE(CROSS(J2,J1) ANDJ2>85,100,80,4,0),COLORGREEN;DRAWICON(CROS趋势线,49),趋势线,1),COLORRED;DRAWICON(FILTER(CROSS(D,K) AND D>88,10),D*1.05,2);DRAWTEXT(CROSS势线,49),47,'转强'),COLORRED;DRAWTEXT(CROSS(4趋势线),52,'转弱'),COLORGREEN;无敌精灵空方:=(EMA(CLOSE,24)-EMA(CLOSE,4))/2*0.95;0;多方:=(EMA(CLOSE,4)-EMA(CLOSE,24))/2*0.95;多头:多方,COLORYELLOW;空头:空方”COLORFFFF00;引路精灵:(多方-空方),C0L0RRED,LINETHICK2;STICKLINE(多方〉空方,0,多方,0.8 , 1),C0L0REEAAFE;STICKLINE(空方〉多方,0,空方,0.8 , 1),COLORFFFF00;STICKLINE(多方〉空方,0 , 空方,0.8,1),C0L0REEAAFE;STICKLINE(空方〉多方,0 ,多方,0.8 , 1),COLORFFFF00;DRAWICON(CROS引路精灵,0 ),引路精灵 +0.3,1 );买卖航标VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;操盘线:SMA(VAR1,5,1),LINETHICK2,COLORRED;趋势线:SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;买入航标:IF(CROSS(操盘线,趋势线)AND 趋势线 <25,50,0),LINETHICK2,COLORRED;DRAWTEX买入航标 >0,50,'买入'),LINETHICK1,COLORRED;卖出时间:IF(CROSS(趋势线,操盘线)AND操盘线>70,80,100),COLORGREEN;DRAWTEX卖出时间 <100,80,'卖出'),LINETHICK1,COLOR00FF00;天风地火{天风地火 N:1 100 3 M:1 100 30}VAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;多头线:(20*VAR0+19*REF(VAR0,1)+18*REF(VAR0,2)+17*REF(VAR0,3)+16*REF(VAR0,4)+15*REF(VAR0,5)+14*REF(VAR0,6)+13*REF(VAR0,7)+12*REF(VAR0,8)+11*REF(VAR0,9)+10*REF(VAR0,10)+9*REF(VAR0,11)+8*REF(VAR0,12)+7*REF(VAR0,13)+6*REF(VAR0,14)+5*REF(VAR0,15)+4*REF(VAR0,16)+3*REF(VAR0,17)+2*REF(VAR0,18)+REF(VAR0,20))/210,CIRCLEDOT,C OLORRED, LINETHICK2;空头线:MA(多头线,10),CIRCLEDOT,COLORGREEN,LINETHICK2;STICKLINE(多头线 >空头线,多头线,空头线,10,10),COLORRED;STICKLINE(多头线 <空头线,多头线,空头线,10,10), COLORGREEN;STICKLINE(C>O,O,C,7,0),COLORRED;STICKLINE(C>O,O,C,4,0),COLORB0B0FF;STICKLINE(C>O,O,C,2,O),COLORYELLOW;STICKLINE(C>O,L,H,0.1,0),COLORYELLOW;STICKLINE(C< O,O,C,7,O),COLORFF2O2O;STICKLINE(C< O,O,C,4,O),COLORFF66OO;STICKLINE(C< O,O,C,2,0),COLORFFCC66;STICKLINE(C< O,L,H,0.1,0),COLORFFCC66;STICKLINE(C=OANDC>=REF(C,1),O,C,7,O),COLORRED;STICKLINE(C=OANDC>=REF(C,1),O,C,4,O),COLORBOBOFF;STICKLINE(C=OANDC>=REF(C,1),O,C,2,O),COLORYELLOW;STICKLINE(C=OANDC>=REF(C,1),L,H,O.1,O),COLORYELLOW;STICKLINE(C=O ANDC<REF(C,1),O,C,7,O),COLORFF2O2O;STICKLINE(C=O ANDC<REF(C,1),O,C,4,O),COLORFF66OO;STICKLINE(C=O ANDC<REF(C,1),O,C,2,0),COLORFFCC66;STICKLINE(C=O ANDC<REF(C,1), L,H,0.1,0),COLORFFCC66;VAR1:=(CLOSE*1.1)-(CLOSE*O.9)*8O顶底奇准买:=MA(CLOSE,1);卖:=(LOW+HIGH+CLOSE)/3;奇:=MA(卖,5);准:=HHV(奇,10);急卖奇准:|F(HHV((买<准),5),50,10),COLORFF6699;STICKLINE(急卖奇准=10,50,10,1,1),COLORFF6699;短卖奇准:IF(HHV((买<准),1O),5O,2O),COLORGREEN;STICKLINE(短卖奇准=2O,5O,2O,1,O),COLORGREEN;TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CL0SE,1)))),ABS((L0W -REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(L0W,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD >LD)),HD,0),5));DMM:=SUM(IF(((LD > 0) AND (LD >HD)),LD,0),5);神偷线:=(((DMP )* 100) / TR);辅助线:=((DMM *100) / TR);XXX:=(MA(((ABS((辅助线-神偷线))/ ( 辅助线+神偷线))* 100),3));奇准:=MA(卖,5);买卖:=LLV(奇准,10);底部关注:IF(((XXX> 88) AND (神偷线 <5.8)),95,50), LINETHICK1,COLORYELLOW;STICKLINE(底部关注=95,50,95,1.5,0),COLORYELLOW,LINETHICK1;急买奇准:IF(LLV((买<买卖),5),75,50),COLORRED,LINETHICK1;STICKLINE(急买奇准=75,50,75,1.5,0),COLORRED,LINETHICK1;短买奇准:IF(LLV((买<买卖),10),85,50),COLORred,LINETHICK1;STICKLINE(短买奇准=85,50,85,1.5,0),COLORred,LINETHICK1;ADXR:=((XXX + REF(XXX,3)) / 2);VAR1:=MA(LOW,1);VAR2:=MA(HIGH,2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);动向趋势线:XXX,LINETHICK2,COLORFFAA66;一品操盘{N: 1, 8, 1; }WR:=ABS(100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)));IF(WR>0,WR,0),COLORYELLOW;涨:CROSS(WR,5O),POINTDOT,COLOROOOOFF;强:CROSS(WR,8O),POINTDOT,COLORYELLOW;回:CROSS(8O,WR)AND WR>5O,POINTDOT,COLORWHITE;险:=COUNT(WR>60,7)>=5AND WR>90;跑:=COUNT(WR>60,7)>=5AND CROSS(8O,WR);慌:WR<=10AND WR>O,POINTDOT,COLOROOFFOO;绝:WR=O,POINTDOT,COLORFF66OO;买:REF(WR,1)<10AND C>REF(C,1) AND C>O,POINTDOT,COLORWHITE;攻:WR>=90AND WR<100 OR (H=HHV(H,5) AND H/REF(C,1)>=1.O5),POINTDOT,COLORFFOOFF; 停:WR=1OO,POINTDOT,COLORRED;优选:IF(( 涨 AND COUNT(WR<=10,6) ANDREF(WR,1)>1O)*1OO,1OO,5O),COLORFF6666 ,L INETHICK2;FLSZ:=V*N>REF(V,1) AND C>REF(C,1) ANDC>O;助涨:(涨 OR 强)AND FLSZ,POINTDOT,COLORFFOOFF;DRAWICO优选=100,50,1);{以下设置副图显示方式}STICKLINE(WR>=50,50,WR,1,0),COLORWHITE;STICKLINE(WR>=90 ANDWR<100,100,95,4,0),COLORWHITE;STICKLINE(WR=100,100,95,4,0),COLORFF00FF;STICKLINE(WR<=10 ANDWR>O,O,5,4,O),COLORWHITE;STICKLINE(WR=O,O,5,4,O),COLORFF66OO;DRAWTEX涨,60,'涨'),COLOROOOOFF;DRAWTEX助涨,25,' ▲ '),COLORFF00FF;DRAWTEX助涨,20,' || '),COLORFF00FF;DRAWTEX强,70,' 强'),COLORYELLOW;DRAWTEX回,50,' 回'),COLORWHITE;DRAWTEX险,100,' • '),COLOROOOOFF;DRAWTEX跑(,100,' 跑'),COLORFFFF00;DRAWTEX慌,20,' 慌'),COLOR00FF00;DRAWTEX绝,20,' 绝'),COLORWHITE;DRAWTEX买,50,' 买'),COLORWHITE;DRAWTEX攻,50,' 攻'),COLORFF00FF;DRAWTEX停,85,' 停'),COLOR0000FF;50,COLORFFFF00 ,L INETHICK2;10,COLOR00FF00;90,COLOR00FF00;底部提示:副Var2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;Var3:=SMA(SMA(Var2,3,1),3,1)/28.57;Var4:=EMA(Var3,5);Var5:=3*Var3-2*Var4;AA:=CROSS(Var5,Var3) AND Var3<2.1 andc>o;Var6:=(2*CLOSE+HIGH+LOW)/4;Var7:=LLV(LOW,13);Var8:=HHV(HIGH,13);Var9:=EMA((Var6-Var7)/(Var8-Var7)*100,13);VarA:=EMA(0.667*REF(Var9,1)+0.333*Var9,2);多:Var9,COLORRED,POINTDOT;空:EMA(0.382*REF(Var9,2)+0.618*Var9,12),COLORgree n;STICKLINE(Var9>VarA,Var9,VarA,6,0),COLORred;STICKLINE(Var9<=VarA,Var9,VarA,6,0),COLORFFCC66;STICKLINE(AA,0,30,40,1),coloryellow;STICKLINE(AA,16,29,38,0),colorred;STICKLINE(AA,1,14,38,0),colorred;STICKLINE(AA,15,15,40,1),coloryellow;STICKLINE(AA,30,50,10,0),coloryellow;STICKLINE(AA,53,55,10,1),colorred;STICKLINE(AA,57,59,10,1),colorred;STICKLINE(AA,61,63,10,1),colorred;STICKLINE(AA,65,67,10,1),colorred;STICKLINE(AA,69,75,12,0),colorffcccc;DRAWTEXT(AA,85,底'),coloryellow;趋势线(主图)AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 AND AA10>REF(AA10,1),AA10,REF(AA10,1),8,0),COLORRED;STICKLINE(BB10<1 ANDAA10<REF(AA10,1), AA1O,REF(AA1O,1),8,1),COLORGREEN;AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB2O>1,AA2O,REF(AA2O,1),8,O),COLORYELLOW;STICKLINE(BB2O<1,AA2O,REF(AA2O,1),8,1),COLORBBCCCC; 变色主图线01:=MA(C,0), LINETHICK1;N1:=MA(C,21), LINETHICK1;M2:MA(C,55),COLOR0080FF;PARTLINE(N1>M2,M2),COLORRED ,L INETHICK2;PARTLINE(N1<=M2,M2),COLORGREEN,LINETHICK2;CCI主图K线TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));STICKLINE(CCI>=O,O,C,4,1),COLORRED;STICKLINE(CCI>=0, O,L ,O.1,O),COLORRED;STICKLINE(CCI>=O,C,H,O.1,O),COLORRED;STICKLINE(CCI<0,O,C,4,0),COLORCYAN;STICKLINE(CCI<O,O,H,O.1,O),COLORCYAN;STICKLINE(CCI<0,C ,L ,0.1,0),COLORCYAN;DRAWTEXT(CROSS(CCI,-200) ANDCCI>REF(CCI,1),L,'平空'),COLORGREEN;DRAWTEXT(CROSS(200,CCI) ANDCCI<REF(CCI,1),H,'平多'),COLORYELLOW;DRAWTEXT(CROSS(CCI,100) ANDCCI>REF(CCI,1),L,'力口多'),COLORYELLOW;DRAWTEXT(CROSS(-100,CCI) ANDCCI<REF(CCI,1),H,'加空'),COLORGREEN多空参考(副图)VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:=SMA(VAR2,5,1);RSV:=((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*1OO;FATK:=SMA(RSV1,3,1);形态:=SMA(FATK,3,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,2),COLORYELLOW;底:6,COLOROOBFOO;大底:-6,COLOROO73OO;顶:9O,COLORFFA5OO;大顶:1OO,COLORWHITE;VAR11:=LLV(LOW,5)=LLV(LOW,45) ANDCLOSE>=OPEN*1.O4;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 ANDVAR22,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,O),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*1OO; 卖出:=CROSS(8O,VAR4),LINETHICK2,COLORGREEN;VAR5:=CROSS加速,1OO);VAR6:=CROSS(加速,-6);VAR7:=CROSS(8O加速);VAR8:=CROSS(加速,6);DRAWTEXT(VAR5,85注意顶'),COLORBLUE;DRAWTEXT(VAR6,0关注底'),COLORRED;DRAWTEXT(VAR7,95空 '),COLORGREEN;DRAWTEXT(VAR8,5 多'),COLORMAGENTA;资金量指标VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1OO,2O,1),15,1);VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR6:=(VAR3+VAR4+VAR5)/3;ZH: EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR1O:=1OO-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1OO,2O,1)+2*SMA (SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1OO,2O,1),15,1);VAR8:=IF(VAR6<=-20,10,0);STICKLINE(VAR8=1O,2O,1O,4,O),COLORRED;VAR11:=VARF<REF(VAR10,1) ANDVOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,3O)=1,5狮子提醒'),COLORFF00FF;STICKLINE(VAR11 ANDCOUNT(VAR11,3O)=1,1,1O,8,O),COLORYELLOW;DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,3大资金进入'),COLORFF00FF;机构做空能量线VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*1OO;机构做空能量线:SMA(VAR1,3,1),LINETHICK2,COLORGREEN;VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*1OO;机构做多能量线:SMA(VAR2,5,1)-8, LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:5O,POINTDOT,COLORWHITE;强势区:8O,POINTDOT,COLORFOOFFO;专业快刀手N1:=21;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*1OO,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*1OO,5,1),3.2,1),COLORYEL LOW,LINETHICK1;VAR2:=8,COLORGREEN,LINETHICKO;小试牛刀:IF(CROSS(VAR1,VAR2),5O,O),STICK,COLORRED;DRAWICOI小试牛刀 >0,50,4);发现庄迹:IF(VAR1<=8,15,O),STICK,COLORCYAN,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:IF((VARO7<1O),1OO,118) ,COLOR00CCFF ,L INETHICK1;CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1))-0.5;CD5:=IF(CD4>0.00,CD4,0.00);CD6:=REF(CD5,1);VAR81:=MA(C,9),COLORRED;空头 1:=IF(CD6-CD5,CD6,CD5 ),L INETHICK3,COLORGREEN;减仓空仓:CROSS(CD6,CD5),COLORGREEN;DRAWICOI减仓空仓 >0,113,5);VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CL0SE-LLV(L0W,9))/(HHV(HIGH,9)-LLV(L0W,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;端庄窝:=IF(VAR6A>N1,VAR6A-N1,0),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2;DRAWICO果断出击 >0,100,4),COLORGREEN;XG:=CROSS端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)< 端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED;STICKLINE(REF(端庄窝,1)> 端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00; 红持绿空:0,COLORGREEN;中分线:20;VAR1E:=((CLOSE - LLV(LOW,20)) /(HHV(HIGH,20) - LLV(LOW,20))) * 100;VAR2E:=SMA(SMA(VAR1E,3,1),3,1);VAR3E:=EMA(VAR2E,5);GZ:=3*VAR2E-2*VAR3E;趋势 J:EMA(GZ,3),colorgreen,linethick3;partline( 趋势 J>ref(趋势 J,1),趋势 J),colorred,linethick3;VAR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;天机均线均:=(3*C+H+L+O)/6;短线:(8*均+7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF( 均,7))/36,COLORWHI TE,PRECISO;中线:(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECISO;金山银山DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,CLOSE,OPEN,3,0),COLORRED;STICKLINE(DIFF>DEA,HIG H,L OW,3,O),COLORRED;STICKLINE(DIFF<=DEA,CLOSE,OPEN,3,O),COLORGREEN;STICKLINE(DIFF<=DEA,HIG H,L OW,3,O),COLORGREEN;量能指标VAR1:=(HHV(HIGH,13)-LLV(LOW,13));VAR2:=(HHV(HIGH,13)-CLOSE);VAR3:=(CLOSE-LLV(LOW,13));VAR4:=(((VAR2/VAR1)*100)-70);VAR5:=(((CLOSE-LLV(LOW,6O))/(HHV(HIGH,6O)-LLV(LOW,6O)))*1OO);VAR6:=((((2*CLOSE)+HIGH)+LOW)/4);VAR7:=SMA(((VAR3/VAR1)*100),3,1);VAR8:=LLV(LOW,34);VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1));VAR10:=IF((VAR9>100),(VAR9-100),0);VAR11:=HHV(HIGH,34);VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),N);VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2);STICKLINE(((VAR12-VAR13)>O),VAR12,VAR13,4,O),COLOROOOOFF;STICKLINE(((VAR12-VAR13)<0),VAR12,VAR13,4,0),COLORFF0000;MA11:EMA(VAR13,5);(N 1100 15 )即时趋势副图R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA((CL OSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1);ZP:IF(R1<7,20,0),COLORGREEN;XG:IF(CROSS(R1,7),38,O),COLORRED;A:95,COLORGREEN;快慢多空主图叠加AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 ANDAA10>REF(AA10,1), AA1O,REF(AA1O,1),8,O),COLORRED;STICKLINE(BB10<1 ANDAA10<REF(AA10,1), AA1O,REF(AA1O,1),8,1),COLORGREEN;AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB2O>1,AA2O,REF(AA2O,1),8,O),COLORYELLOW;STICKLINE(BB2O<1,AA2O,REF(AA2O,1),8,1),COLORBBCCCC;彩色K线HH:=HHV(HIGH,3);LL:=LLV(L0W,3);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));IF((HH1 <LL1),LL,HH), LINETHICK2,COLORBB0066;IF((HH1 >LL1),H H,L L), LINETHICK2,C0L0R1B8800;STICKLINE((HH1 <LL1),CLOSE,OPEN,3,O),COLORRED;STICKLINE((HH1 <LL1),HIG H, LOW,O,O),COLORRED;STICKLINE((HH1 >LL1),CLOSE,OPEN,3,O),COLORFFOOOO;STICKLINE((HH1 >LL1),HIG H, LOW,O,O),COLORFFOOOO;DRAWTEXT(CROSS(HH1,LL1),HH开空'),COLORYELLOW;DRAWTEXT(CROSS(LL1,HH1),LL,开多'),COLORFF00FF;鳄鱼分形主图叠加Y:=(HIGH+LOW)/2;上唇:SMA(Y,5,1),COLORGREEN;牙齿:SMA(Y,8,1),COLORRED;下鄂:SMA(Y,13,1),COLORFF6600;{分形-没有未来函数}KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF( LOW=LLV( LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 ANDKU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 ANDKD1=0,REF(LOW,2), REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 ANDKD1=0)));上分形:IF(HIGH>=MA(CLOSE,3),UL,REF(UL,BARSLAST(HIGH>MA(CLOSE,3)))) ,L INETHICKO,COLO RMAGENTA分形数字}下分形:IF(LOW<=MA(CLOSE,3),DL,REF(DL,BARSLAST(LOW<=MA(CLOSE,3)))) ,L INETHICKO,COLORYELLOWJSTICKLINE(BARSLAST(ABS上分形-REF(上分形,1)))<BARSLAST(CLOSE>上分形 ANDREF(CLOSE,1)<REF上分形,1)),上分形,上分形,4,1),COLORMAGENTA;{分形横线}STICKLINE(BARSLAST(ABS下分形-REF(下分形,1)))<BARSLAST(CLOSE<下分形 ANDREF(CLOSE,1)>REF下分形,1)),下分形,下分形,4,1),COLORYELLOW;DRAWTEXT(CLOS上分形 AND REF(CLOSE,1)<REF上分形,1),LOW,'买 '),COLORFFOOFF;{箭头突破分形}DRAWTEXT(CLOS H分形 AND REF(CLOSE,1)>REF下分形,1),H,'卖'),COLORFFOOOO;{AOAC-K 区域}VAR1:=(HIGH+LOW)/2;AO:=MA(VAR1,5)-MA(VAR1,34);AC:=AO-MA(AO,5);VF:=AO>REF(AO,1) ANDAC>REF(AC,1),COLORRED;VG:=AO<REF(AO,1) ANDAC<REF(AC,1),COLORGREEN;VH:=AO>REF(AO,1) ANDAC<REF(AC,1),COLORGRAY;VI:=AO<REF(AO,1) AND AC>REF(AC,1),COLORGRAY;VJ:=VH OR VI;STICKLINE(VF ANDCLOSE>OPEN,CLOSE,OPEN,4,1),COLORRED;STICKLINE(VF ANDCLOSE<=OPEN,CLOSE,OPEN,4,O),COLORRED;STICKLINE(VF,HIG H,L OW,1,O),COLORRED;STICKLINE(VG ANDCL0SE>0PEN,CL0SE,0PEN,4,1),C0L0RGREEN;STICKLINE(VG AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORGREEN;STICKLINE(VG,HIG H, L0W,1,0),C0L0RGREEN;STICKLINE(VJ ANDCL0SE>0PEN,CL0SE,0PEN,4,1),C0L0RGRAY;STICKLINE(VJ ANDCL0SE<=0PEN,CL0SE,0PEN,4,0),C0L0RGRAY;STICKLINE(VJ,HIG H, L0W,1,0),C0L0RGRAY;{平衡线}P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)> 下鄂;平衡线买:REF(REF(HIGH,1),BARSLAST(P1)),LINETHICK0,COLORWHITE;STICKLINE(CROSS(HIGH平衡线买)AND LOW>平衡线买,(HIGH+L0W)/2,(HIGH+L0W)/2,4,0),C0L0RWHITE;STICKLINE(CROSS(HIGH平衡线买)AND LOW<^衡线买,平衡线买,平衡线买,4,0),COLORWHITE;P2:=REF(L0W,1)<L0W AND REF(L0W,1)下鄂;平衡线卖:REF(REF(L0W,1),BARSLAST(P2)),LINETHICK0,COLORCYAN;STICKLINE(CROSS平衡线卖丄OW) AND HIGH<^衡线卖,(HIGH+LOW)/2,(HIGH+LOW)/2,4,0),COLORCYAN;STICKLINE(CROSS平衡线卖丄OW) AND HIGH>=^衡线卖,平衡线卖,平衡线卖,4,0),COLORCYAN;DRAWTEXT(ISLASTBAR AND A0>REF(A0,1) ANDAC>REF(AC,1),Y,' f AOf AC'),COLORRED;DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) ANDAC<REF(AC,1),Y,' J AOJ AC'),COLORGREEN;DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) ANDAC<REF(AC,1),Y,' f AOJ AC'),COLORWHITE;DRAWTEXT(ISLASTBAR AND AO<REF(AO,1) ANDAC>REF(AC,1),Y,' J AOf AC'),COLORWHITE;多空之王DKX:=(EMA(C,18)),P0INTD0T;STICKLINE(((C >=DKX) AND (C >=0)),H,L,0,1),C0L0RRED;STICKLINE(((C >=DKX) AND (C >=0)),0,C,2,1),C0L0RRED;STICKLINE(((C >=DKX) AND (C <=0)), H,L ,0,0),C0L0RRED;STICKLINE(((C >=DKX) AND (C <=0)),0,C,2,0),C0L0RRED;STICKLINE(((C <DKX) AND (C >=0)),H,L,0,1),C0L0RGREEN;STICKLINE(((C < DKX) AND (C >=0)),0,C,2,1),C0L0RGREEN;STICKLINE(((C < DKX) AND (C <=0)),H,L,0,0),C0L0RGREEN;STICKLINE(((C < DKX) AND (C <=O)),O,C,2,0),COLORGREEN;VAR1:=(HHV(HIGH,15)-LLV(LOW,15));VAR2:=(HHV(HIGH,15)-CLOSE);VAR3:=(CLOSE-LLV(LOW,15));VAR4:=(((VAR2/VAR1)*100)-70);VAR5:=(((CL0SE-LLV(L0W,60))/(HHV(HIGH,60)-LLV(L0W,60)))*100);VAR6:=((((2*CLOSE)+HIGH)+LOW)/4);VAR7:=SMA(((VAR3/VAR1)*100),3,1);VAR8:=LLV(LOW,34);VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1));VAR10:=IF((VAR9>100),(VAR9-100),0);VAR11:=HHV(HIGH,34);VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),15);VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2);MA11:=EMA(VAR13,5);DRAWTEXT(CROSS(VAR12-VAR13,0)丄-1,多');DRAWTEXT(CROSS(0,VAR12-VAR13),H+1 空');利多方舟VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /(HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6)-LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(CLOSE*0.95),' f '),COLOROOOOFF;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'卖'),COLORFFFF34;年:MA(CLOSE,3O),COLORGREEN;STICKLINE(C>=¥ ANDC>=O,C,O,3,O),COLORRED;STICKLINE(C>=¥ AND一:副图快慢线原码:VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,13);VAR8:=HHV(HIGH,13);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORGREEN;AA:10,COLORYELLOW;BB:90,COLORYELLOW;RSV:= (CLOSE-LLV(LOW,3O))/(HHV(HIGH,3O)-LLV(LOW,3O))*1OO; FASTK:=SMA(RSV,5,1);K:=SMA(FASTK,5,1);D:=SMA(K,3,1);AA1:=K-REF(K,1);STICKLINE(AA1>0,REF(K,1),K,4,0),COLOR8000FF;STICKLINE(AA1<=0,REF(K,1),K,4,0),COLORFFFF00;二:主图轨道趋势线参数 N=13, M=3VAR2:=CLOSE*VOL;MID:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA( VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,N);主趋势线 1:MID;MID2:=MID*1.01;SDN:=MID*0.94;SDN3:=REF(CLOSE,1800),COLORYELLOW;SUP:=1.06*MID,COLORBLUE;VAR4:=EMA(CLOSE,9);B9:=COUNT(HIGH>SUP,5);VAR1:=MID;PARTLINE(VAR1>REF(VAR1,1),VAR1), LINETHICK2,COLORRED; PARTLINE(VAR1<REF(VAR1,1),VAR1), LINETHICK2,COLORCYAN;PP:=(2*CLOSE+HIGH+LOW)/4;QQ:=ABS(PP-MA(CLOSE,N*15));AA:=QQ/MA(CLOSE,N*15);N2:=(N-2)*15;N3:=(N+2)*15;N4:=(N+3)*15;主趋势线:=(MA(CLOSE,13)),LINETHICK2,COLORRED;CC:=(CLOSE/主趋势线);三:合并即涨Var0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;Var3:=SMA(Var0,3,1);Var1:=SMA(Var3,4,1)-10;Var4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;Var5:=SMA(Var4,3,1);Var2:=SMA(Var5,4,1)-90;STICKLINE(REF(Var1,1)<Var1,Var1,REF(Var1,1),10,0),COLOR0000FF;0, CIRCLEDOT;STICKLINE(REF(Var1,1)>Var1,Var1,REF(Var1,1),5,0),COLOR00ff00; STICKLINE(REF(Var2,1)>Var2,Var2,REF(Var2,1),10,0),COLOR0000FF; STICKLINE(REF(Var2,1)<Var2,Var2,REF(Var2,1),5,0),COLOR00ff00;0,COLOR0000FF;四:顶底王VAR1:=LLV(LOW,34);VAR2:=HHV(HIGH,30);VAR3:=REF(CLOSE,1);VAR4:=EMA((CLOSE-VAR1)/(VAR2-VAR1),3)*100;主力:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100,COL ORRED;CC:主力,COLORWHITE;散户:=VAR4;VAR5:=(VAR4-LLV(VAR4,21))/(HHV(VAR4,21)-LLV(VAR4,21))*100;Q1:IF(CROSS(VAR5,90) AND 散户 <40,18,10);Q2:IF(CROSS(主力,12) AND REF(散户,5)<20 ANDREF(散户,3)<20,18,10); P1:IF(CROSS(8 4 主力),82,90),COLOR99FF33;P2:IF(CROSS(84散户),82,90),COLORCYAN;VY:=SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1); L2:=SMA(0.618*REF(VY,1)+0.382*VY,3,1), COLORFF9900;L3:=MA(L2,5);STICKLINE(L2>L3,L3+2,L3-2,5,0),COLORRED;STICKLINE(L2<=L3 ,L 3+2,L3-2,5,0),COLORGREEN;80,POINTDOT;50,POINTDOT;20,POINTDOT;五:精准买卖指标(主图叠加)V1:=MA(CLOSE,30);底:V1-2*STD(CLOSE,60),COLORCYAN,LINETHICK1;平:MA(CLOSE,60),COLOR0000FF,LINETHICK1;天:V1+2*STD(CLOSE,60),COLOR80FFFF,LINETHICK1;DRAWTEXT(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.9985,'买'),COLOR00FFFF;DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),HIGH*1.005,'卖'),COLORGREEN;六:日内开平仓指标(副图),适合日内,30分钟,15分钟,5分钟图尤佳A:=LLV(LOW,36);B:=HHV(HIGH,30);F:85;L:95;D:=(EMA(((CLOSE-A)/(B-A))* ⑷,4))*(25);G:D,COLORRED ,L INETHICK2;G1:=BACKSET(D<REF(D,5),3);PARTLINE(G1,D),COLOR33FF33,LINETHICK2;H:=(((D-LLV(D,21))/(HHV(D,21)-LLV(D,21)))* ⑷)*(25);M:IF(CROSS(H,20) AND (G<40),70,0);Z:8;S:IF((COUNT((G>REF(G,1)),1)=1) AND(REF(G,1)<REF(REF(G,1),1))AND(G<Z),50,0);买:=MA(CLOSE,1);卖:=(LOW+HIGH+CLOSE)/3;奇:=MA(卖,5);准:=HHV(奇,10);短卖:IF(HHV((买<准),10),50,20),COLORGREEN;STICKLINE(短卖=20,50,20,1,0),COLORGREEN;TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD >LD)),HD,0),5));DMM:=SUM(IF(((LD > 0) AND (LD >HD)), LD,0),5); 神偷线:=(((DMP ) * 100) / TR); 辅助线:=((DMM * 100) / TR);XXX:=(MA(((ABS((辅助线-神偷线))/ (辅助线+神偷线))* 100),3)); 奇准:=MA(卖,5);买卖:=LLV(奇准,10);底部:IF(((XXX > 88) AND (神偷线<5.8)),95,50), LINETHICK1,COLORYELLOW;STICKLINE(底部=95,50,95,1.5,0),COLORYELLOW;急买:IF(LLV((买<买卖),5),75,50),COLORRED,LINETHICK1;STICKLINE(急买=75,50,75,1.5,0),COLORRED;短买:IF(LLV((买<买卖),10),85,50),COLORRED,LINETHICK1;STICKLINE(短买=85,50,85,1.5,0),COLORRED;七:波段操盘指标(主图)DIFF:=( EMA(CLOSE,8) - EMA(CLOSE,21));DEA:=EMA(DIFF,5);TJ:=(DIFF>=DEA);TJ1:=(DIFF>=0);STICKLINE(TJ, H, L,0.5,0),COLORRED;STICKLINE(TJ,0,C,4,1),C0L0RRED;STICKLINE(TJ1 AND TJ, H,L ,0.5,0),C0L0RRED;STICKLINE(TJ1 AND TJ,0,C,4,1),C0L0RRED;STICKLINE(DIFF<DEA, H, L,0.5,0),C0L0RF0F000;STICKLINE(DIFF<DEA,0,C,4,1),C0L0RF0F000;八:龙腾天下指标:MA1:MA(CL0SE,15);MA2:MA(CLOSE,7);UPPER:MA1+2*STD(CL0SE,16),C0L0R4080FF;L0WER:MA1-2*STD(CL0SE,16),C0L0R4080FF;FILLRGN(MA2>MA1,MA2,MA1),C0L0R00FFFF;FILLRGN(MA2<MA1,MA2,MA1),C0L0RFF8000;STICKLINE((CLOSE>OPEN) OR (CLOSE=OPEN AND CLOSE>REF(CLOSE,1)) OR (CLOSE=OPEN AND CLOSE=REF(CLOSE,1) AND REF(CLOSE,1)>REF(OPEN,1)),HIG H, LOW,1,0),COLORRED;STICKLINE((CLOSE>OPEN) OR (CLOSE=OPEN AND CLOSE>REF(CLOSE,1)) OR。
期货策略量化指标公式文华财经指标博易大师指标公式
K1:EMA(VAR2,5)SMA(VAR2,5,1),COLORYELLOW,NODRAW;
K:EMA((K1-K2),2),COLORWHITE,NODRAW;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR02,2)=LLV(VAR02,7) AND COUNT(VAR02<0,2) AND CROSS(VAR02,MA(VAR02,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
QS:=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);
高位线:=IF((QS-VARL6>85),0,-5);
VARL4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VARL5:=SMA(VARL4,13,8);
VARL6:=SMA(VARL3,21,8);
低位线:=IF((趋势-VARL6<(-70)),0,-5);
期货技术分析指标代码(博易版)
期货技术分析指标代码(博易版)K线状态下右键点技术分析,选择本公式进行分析(名称自己写)特别说明:指标只是参考,这玩意也不那么精准,还需要配合KD 线和其他指标综合判断,希望群友多赚钱一、鳄鱼分形,主图叠加Y:=(HIGH+LOW)/2;上唇:SMA(Y,5,1),COLORGREEN;牙齿:SMA(Y,8,1),COLORRED;下鄂:SMA(Y,13,1),COLORFF6600;{分形- 没有未来函数}KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF( LOW=LLV( LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0))); DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2), REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));上分形:IF(HIGH>=MA(CLOSE,3),UL,REF(UL,BARSLAST(HIGH>MA(CLO SE,3)))),LINETHICK0,COLOR MAGENTA;{分形数字}下分形:IF( LOW<=MA(CLOSE,3),DL,REF(DL,BARSLAST(LOW<=MA(CL OSE,3)))),LINETHICK0,COLOR YELLOW;STICKLINE(BARSLAST(ABS(上分形-REF(上分形,1)))上分形AND REF(CLOSE,1)<barslast(closeREF(下分形,1)),下分形,下分形,4,1),COLORYELLOW;DRAWTEXT(CLOSE>上分形AND REF(CLOSE,1)<ref(上分形,1),low,'买'),colorff00ff;{箭头突破分形}< p="">DRAWTEXT(CLOSE<下分形AND REF(CLOSE,1)>REF(下分形,1),H,'卖'),COLORFF0000; {AOAC-K区域}VAR1:=(HIGH+LOW)/2;AO:=MA(VAR1,5)-MA(VAR1,34);AC:=AO-MA(AO,5);VF:=AO>REF(AO,1) AND AC>REF(AC,1),COLORRED;VG:=AO<ref(ac,1),colorgreen;<="" and="" p="">VH:=AO>REF(AO,1) AND AC<ref(ac,1),colorgray;< p="">VI:=AOREF(AC,1),COLORGRAY;VJ:=VH OR VI;STICKLINE(VF AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORRED;STICKLINE(VF AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORRED;STICKLINE(VF,HIGH,LOW,1,0),COLORRED;STICKLINE(VG AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORGREEN;STICKLINE(VG AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORGREEN;STICKLINE(VG,HIGH,LOW,1,0),COLORGREEN;STICKLINE(VJ AND CLOSE>OPEN,CLOSE,OPEN,4,1),COLORGRAY;STICKLINE(VJ AND CLOSE<=OPEN,CLOSE,OPEN,4,0),COLORGRAY;STICKLINE(VJ,HIGH,LOW,1,0),COLORGRAY;{平衡线}P1:=REF(HIGH,1)>HIGH AND REF(HIGH,1)>下鄂;平衡线买:REF(REF(HIGH,1),BARSLAST(P1)),LINETHICK0,COLORWHITE;STICKLINE(CROSS(HIGH,平衡线买) AND LOW>平衡线买,(HIGH+LOW)/2,(HIGH+LOW)/2,4,0),COLORWHITE;STICKLINE(CROSS(HIGH,平衡线买) AND LOW<=平衡线买,平衡线买,平衡线买,4,0),COLORWHITE;P2:=REF(LOW,1)<下鄂;<="">平衡线卖:REF(REF(LOW,1),BARSLAST(P2)),LINETHICK0,COLORCYAN;STICKLINE(CROSS(平衡线卖,LOW) AND HIGH<平衡线卖,(HIGH+LOW)/2,(HIGH+LOW)/2,4,0),COLORCYAN;STICKLINE(CROSS(平衡线卖,LOW) AND HIGH>=平衡线卖,平衡线卖,平衡线卖,4,0),COLORCYAN;DRAWTEXT(ISLASTBAR AND AO>REF(AO,1) AND AC>REF(AC,1),Y,'↑AO↑AC'),COLORRED; DRAWTEXT(ISLASTBAR AND AOREF(AO,1) AND ACREF(AC,1),Y,'↓AO↑AC'),COLORWHITE;二、CCI主图K线TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));STICKLINE(CCI>=0,O,C,4,1),COLORRED;STICKLINE(CCI>=0,O,L,0.1,0),COLORRED;STICKLINE(CCI>=0,C,H,0.1,0),COLORRED;STICKLINE(CCI<0,O,C,4,0),COLORCYAN;STICKLINE(CCI<0,O,H,0.1,0),COLORCY AN;STICKLINE(CCI<0,C,L,0.1,0),COLORCY AN;DRAWTEXT(CROSS(CCI,-200) AND CCI>REF(CCI,1),L,'平空'),COLORGREEN; DRAWTEXT(CROSS(200,CCI) AND CCIREF(CCI,1),L,'加多'),COLORYELLOW; DRAWTEXT(CROSS(-100,CCI) AND CCI<ref(cci,1),h,'加空'),colorgreen;< p="">三、多空之王DKX:=(EMA(C,18)),POINTDOT;STICKLINE(((C >=DKX) AND (C >= O)),H,L,0,1),COLORRED; STICKLINE(((C >=DKX) AND (C >= O)),O,C,2,1),COLORRED;STICKLINE(((C >=DKX) AND (C <= O)),H,L,0,0),COLORRED; STICKLINE(((C >=DKX) AND (C <= O)),O,C,2,0),COLORRED; STICKLINE(((C = O)),H,L,0,1),COLORGREEN; STICKLINE(((C < DKX) AND (C >= O)),O,C,2,1),COLORGREEN; STICKLINE(((C < DKX) AND (C <= O)),H,L,0,0),COLORGREEN; STICKLINE(((C < DKX) AND (C <= O)),O,C,2,0),COLORGREEN;VAR1:=(HHV(HIGH,15)-LLV(LOW,15));VAR2:=(HHV(HIGH,15)-CLOSE);VAR3:=(CLOSE-LLV(LOW,15));VAR4:=(((VAR2/VAR1)*100)-70);VAR5:=(((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*100); VAR6:=((((2*CLOSE)+HIGH)+LOW)/4);VAR7:=SMA(((VAR3/VAR1)*100),3,1);VAR8:=LLV(LOW,34);VAR9:=(SMA(VAR7,3,1)-SMA(VAR4,9,1));VAR10:=IF((VAR9>100),(VAR9-100),0);VAR11:=HHV(HIGH,34);VAR12:=EMA((((VAR6-VAR8)/(VAR11-VAR8))*100),15); VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2);MA11:=EMA(VAR13,5);DRAWTEXT(CROSS(VAR12-VAR13,0),L-1,'多'); DRAWTEXT(CROSS(0,VAR12-VAR13),H+1,'空');</ref(cci,1),h,'加空'),colorgreen;<></ref(ac,1),colorgray;<></ref(上分形,1),low,'买'),colorff00ff;{箭头突破分形}<>。
博易大师指标公式汇总以及源代码集成讲解
名称定义用法举例解释AMOUNT 成交额AMOUNT 取得该周期成交额BARSTA TUS 数据位置状态BARSTATUS=2 表示当天是该股票数据的最后一个周期BARSTA TUS 返回数据位置信息,1表示第一根K 线,2表示最后一个数据,0表示中间位置CLOSE 收盘价CLOSE 取得该周期收盘价HIGH 最高价HIGH 取得该周期最高价LOW 最低价LOW 取得该周期最低价ISDOWN 该周期是否收阴当收盘<开盘时,返回值为1,否则为0 ISEQUAL 该周期是否平盘当收盘=开盘时,返回值为1,否则为0ISUP 该周期是否收阳当收盘>开盘时,返回值为1,否则为0OPEN 开盘价OPEN 取得该周期开盘价VOL 成交量VOL 取得该周期成交量以上为行情函数:名称定义用法举例解释CA TEGORY 证券类型返回证券类型,指数=0,股票=1,基金=2,债券=3,其它=4, 期权=5,外汇=6,期货=7注意:该函数返CURRENTDATE 计算时的当前日期CURRENTDATE,返回计算时的日期,该日期是从1900年开始的日期,例如2003年1月1日表示为1030101同上CURRENTTIME 计算时的当前时间CURRENTTIME,返回计算时的时间,格式为时分秒,有效范围(000000-235959)同上DA TATYPE 当前分析的数据类型ATATYPE,返回数据类型,分时线=1,分笔成交=2,1 分钟线=3,5 分钟线=4,15 分钟线=5,30分钟线=6,60 分钟线=7,日线=8,周线=9,月线=10,多日线=11,年线=12。
同上MINDIFF 最小价格变动MINDIFF,返回当前股票价格最小变动量,对于股票是0.01元,基金是0.001同上VOLUNIT 每手股数用法: VOLUNIT,返回每手股数。
对于股票值为100,债券为10以上为常用函数名称定义用法举例BARPOS 取得该周期在所有数据中的位置BARPOS对于日线来说,函数返回上市以来的天数D1970TODATE(X) 1970 日转换为日期用法:D1970TODATE(X),得到1970 日期X的日期值DA TE 年月日DATE 函数返回有效值范围为(700101-1341231),表示19700101-20341231取得该周期从1900 以来的年月日。
博易大师指标公式
博易大师指标公式博易大师指标公式-原代码(2009-01-15 09:35:31)标签:博易代码公式期货指标财经分类:期货指标合并即涨Var0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;Var3:=SMA(Var0,3,1);Var1:=SMA(Var3,4,1)-10;Var4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;Var5:=SMA(Var4,3,1);Var2:=SMA(Var5,4,1)-90;STICKLINE(REF(Var1,1)<Var1,Var1,REF(Var1,1),10,0),COLOR0000FF; 0, CIRCLEDOT;STICKLINE(REF(Var1,1)>Var1,Var1,REF(Var1,1),5,0),COLOR00ff00; STICKLINE(REF(Var2,1)>Var2,Var2,REF(Var2,1),10,0),COLOR0000FF; STICKLINE(REF(Var2,1)<Var2,Var2,REF(Var2,1),5,0),COLOR00ff00;0,COLOR0000FF;顶底奇准买:=MA(CLOSE,1);卖:=(LOW+HIGH+CLOSE)/3;奇:= MA(卖,5);准:= HHV(奇,10);急卖奇准:IF(HHV((买<准),5),50,10),COLORFF6699;STICKLINE(急卖奇准=10,50,10,1,1),COLORFF6699;短卖奇准:IF(HHV((买<准),10),50,20),COLORGREEN;STICKLINE(短卖奇准=20,50,20,1,0),COLORGREEN;TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TR);辅助线:=((DMM * 100) / TR);XXX:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));奇准:= MA(卖,5);买卖:=LLV(奇准,10);底部关注:IF(((XXX > 88) AND (神偷线 <5.8)),95,50),LINETHICK1,COLORYELLOW;STICKLINE(底部关注=95,50,95,1.5,0),COLORYELLOW,LINETHICK1;急买奇准:IF(LLV((买<买卖),5),75,50),COLORRED,LINETHICK1;STICKLINE(急买奇准=75,50,75,1.5,0),COLORRED,LINETHICK1;短买奇准:IF(LLV((买<买卖),10),85,50),COLORred,LINETHICK1;STICKLINE(短买奇准=85,50,85,1.5,0),COLORred,LINETHICK1;ADXR:=((XXX + REF(XXX,3)) / 2);VAR1:=MA(LOW,1);VAR2:=MA(HIGH,2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);动向趋势线:XXX,LINETHICK2,COLORFFAA66;一品操盘{N:1,8,1;}WR:=ABS(100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)));IF(WR>0,WR,0),COLORYELLOW;涨:CROSS(WR,50),POINTDOT,COLOR0000FF;强:CROSS(WR,80),POINTDOT,COLORYELLOW;回:CROSS(80,WR) AND WR>50,POINTDOT,COLORWHITE; 险:=COUNT(WR>60,7)>=5 AND WR>90;跑:=COUNT(WR>60,7)>=5 AND CROSS(80,WR);慌:WR<=10 AND WR>0,POINTDOT,COLOR00FF00;绝:WR=0,POINTDOT,COLORFF6600;买:REF(WR,1)<10 AND C>REF(C,1) AND C>O,POINTDOT,COLORWHITE;攻:WR>=90 AND WR<100 OR (H=HHV(H,5) ANDH/REF(C,1)>=1.05),POINTDOT,COLORFF00FF;停:WR=100,POINTDOT,COLORRED;优选:IF((涨 AND COUNT(WR<=10,6) ANDREF(WR,1)>10)*100,100,50),COLORFF6666,LINETHICK2; FLSZ:=V*N>REF(V,1) AND C>REF(C,1) AND C>O; 助涨:(涨 OR 强) AND FLSZ,POINTDOT,COLORFF00FF; DRAWICON(优选=100,50,1);{以下设置副图显示方式}STICKLINE(WR>=50,50,WR,1,0),COLORWHITE;STICKLINE(WR>=90 AND WR<100,100,95,4,0),COLORWHITE; STICKLINE(WR=100,100,95,4,0),COLORFF00FF; STICKLINE(WR<=10 AND WR>0,0,5,4,0),COLORWHITE; STICKLINE(WR=0,0,5,4,0),COLORFF6600;DRAWTEXT(涨,60,'涨'),COLOR0000FF;DRAWTEXT(助涨,25,'?'),COLORFF00FF;DRAWTEXT(助涨,20,'‖'),COLORFF00FF;DRAWTEXT(强,70,'强'),COLORYELLOW;DRAWTEXT(回,50,'回'),COLORWHITE;DRAWTEXT(险,100,'?'),COLOR0000FF;DRAWTEXT(跑,100,'跑'),COLORFFFF00;DRAWTEXT(慌,20,'慌'),COLOR00FF00;DRAWTEXT(绝,20,'绝'),COLORWHITE;DRAWTEXT(买,50,'买'),COLORWHITE;DRAWTEXT(攻,50,'攻'),COLORFF00FF;DRAWTEXT(停,85,'停'),COLOR0000FF;50,COLORFFFF00,LINETHICK2;10,COLOR00FF00;90,COLOR00FF00;{?底部提示:副}Var2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;Var3:=SMA(SMA(Var2,3,1),3,1)/28.57; Var4:=EMA(Var3,5);Var5:=3*Var3-2*Var4;AA:=CROSS(Var5,Var3) AND Var3<2.1 and c>o;Var6:=(2*CLOSE+HIGH+LOW)/4;Var7:=LLV(LOW,13);Var8:=HHV(HIGH,13);Var9:=EMA((Var6-Var7)/(Var8-Var7)*100,13);VarA:=EMA(0.667*REF(Var9,1)+0.333*Var9,2); 多:Var9,COLORRED,POINTDOT;空:EMA(0.382*REF(Var9,2)+0.618*Var9,12),COLORgreen;STICKLINE(Var9>VarA,Var9,VarA,6,0),COLORred;STICKLINE(Var9<=VarA,Var9,VarA,6,0),COLORFFCC66;STICKLINE(AA,0,30,40,1),coloryellow; STICKLINE(AA,16,29,38,0),colorred; STICKLINE(AA,1,14,38,0),colorred;STICKLINE(AA,15,15,40,1),coloryellow;STICKLINE(AA,30,50,10,0),coloryellow; STICKLINE(AA,53,55,10,1),colorred; STICKLINE(AA,57,59,10,1),colorred; STICKLINE(AA,61,63,10,1),colorred; STICKLINE(AA,65,67,10,1),colorred; STICKLINE(AA,69,75,12,0),colorffcccc; DRAWTEXT(AA,85,'底'),coloryellow;博易顶底王VAR1:=LLV(LOW,34);VAR2:=HHV(HIGH,30);VAR3:=REF(CLOSE,1);VAR4:=EMA((CLOSE-VAR1)/(VAR2-VAR1),3)*100;主力:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100,COLORRED;CC:主力,COLORWHITE;散户:=VAR4;VAR5:=(VAR4-LLV(VAR4,21))/(HHV(VAR4,21)-LLV(VAR4,21))*100;Q1:IF(CROSS(VAR5,90) AND 散户<40,18,10);Q2:IF(CROSS(主力,12) AND REF(散户,5)<20 AND REF(散户,3)<20,18,10); P1:IF(CROSS(84,主力),82,90),COLOR99FF33;P2:IF(CROSS(84,散户),82,90),COLORCYAN;VY:=SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,5,1);L2:=SMA(0.618*REF(VY,1)+0.382*VY,3,1), COLORFF9900; L3:=MA(L2,5);STICKLINE(L2>L3,L3+2,L3-2,5,0),COLORRED;STICKLINE(L2<=L3,L3+2,L3-2,5,0),COLORGREEN;80,POINTDOT;50,POINTDOT;20,POINTDOT;。