博易大师期货软件指标公式源码期货最准的指标 期货波段多空点指标

合集下载

博易大师期货软件指标公式源码期货最准的指标准确率最高的期货指标

博易大师期货软件指标公式源码期货最准的指标准确率最高的期货指标

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;。

博易大师期货软件指标公式源码期货最准的指标精确度98的波段指标

博易大师期货软件指标公式源码期货最准的指标精确度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;。

博易大师指标公式信管家指标准确率最高的期货指标15分钟准确率95指标

博易大师指标公式信管家指标准确率最高的期货指标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);。

博易大师指标公式文华期货指标编写

博易大师指标公式文华期货指标编写

强弱吸筹:IF(VARH>-120,1,0),COLOR0FFFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);买入时机: IF(CROSS(C1,-150),-150,-200),COLORFF00FF,LINETHICK2;LL:=REF(CLOSE,1);MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;必卖:IF(PEAKBARS(3,6,1,1)=0,60,84), COLOR0099FF ,LINETHICK2;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);长趋势:3*Q3-2*Q4,COLORMAGENTA ,LINETHICK2;趋势线:EMA(Q3, 3), COLORWHITE ,LINETHICK3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '* 顶'),COLORYELLOW,LINETHICK5;DRAWTEXT(REF(CROSS(趋势线,长趋势),84) AND 趋势线>1.3*长趋势,长趋势,'☆←见底啦'), COLORBLUE,LINETHICK1;LC := REF(CLOSE,1);//前一周期收盘价RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;//当根K线收盘价与前一周期收盘价做差,在该差值与0之间取最大值,做N1周期移动平均。

收盘价与前一周期收盘价做差值,取该差值的N1周期移动平均值,两平均值之间做比值。

博易大师指标公式汇总以及源代码集成

博易大师指标公式汇总以及源代码集成

名称定义用法举例解释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 以来的年月日。

博易大师指标公式源码

博易大师指标公式源码

博易大师指标公式源码
博易大师指标是一种用于测量股票价格和成交量的技术指标。

它引入了4个元素,包括动态度量阀、快速振荡器、慢速振荡器和大盘指数。

这些元素可以根据行情变化而变化,从而使博易大师指标能够更好地反映当前市场的动态。

博易大师指标的源码大致如下:
// 需要使用的变量:
ADX: 指数动态度量阀
DMP:快速振荡器
DMM:慢速振荡器
K:大盘指数
// 开始编码
ADX = (K - DMP) / (DMP + DMM);
// 计算动态度量阀
DM1 = K - DMP;
DM2 = K - DMM;
DI1 = ABS(DM1);
DI2 = ABS(DM2);
DIamt = DI1 + DI2;
if (DIamt != 0)
DX = (DI1 - DI2) / DIamt * 100;
else
DX = 0;
// 计算快速振荡器
DMP = K - DM2;
// 计算慢速振荡器
DMM = K - DM1;
// 最后,输出指标值
ADX = DX;
上面的源码就是博易大师指标的源码。

从上面的代码可以看出,该指标使用四个元素来测量股票价格和成交量,分别是动态度量阀、快速振荡器、慢速振荡器和大盘指数,并且根据这四个元素的变化,计算出最终的指标值。

期货技术分析指标代码(博易版)

期货技术分析指标代码(博易版)

期货技术分析指标代码(博易版)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;{箭头突破分形}<>。

博易大师指标公式信管家指标准确率最高的期货指标日内期货策略

博易大师指标公式信管家指标准确率最高的期货指标日内期货策略

RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;KL:=SMA(RSVL,3,1);DL:=SMA(KL,3,1);KKL:=SMA(RSVL,3,1);DD:=SMA(KL,3,1);NL:=KKL+DD;DRAWICON(CROSS(NL,50),L,1);DRAWICON(CROSS(160,NL),H,2);卖出K:=CROSS(160,NL);TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));//求最高价减去最低价,一个周期前的收盘价减去最高价的绝对值,一个周期前的收盘价减去最低价的绝对值,这三个值中的最大值ATR :=MA(TR,26),COLORYELLOW;//求N个周期内的TR的简单移动平均SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=MA(MA(MA(SL1M,20),20),20),COLORYELLOW;趋势6:=MA(MA(MA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));买线1:=REF(EMA(C,14),1),COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);FILLRGN(SMA(C,6.5,1)>SMA(C,13.5,1),SMA(C,6.5,1),SMA(C,13.5,1)),COLOR0061FF; FILLRGN(SMA(C,6.5,1)<SMA(C,13.5,1),SMA(C,6.5,1),SMA(C,13.5,1)),COLOR008000;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) ANDEMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) ANDEMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) ANDEMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90)AND EMA(CLOSE,90)>EMA(CLOSE,120) AND EMA(CLOSE,120)>EMA(CLOSE,250);A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) ANDEMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) ANDEMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);B1:=IF(A1,1,2);VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) ORVARCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) ORVARCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) ORVARCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) ORVARCMZ),C,REF(C,1),1,0),COLOR0000DD;VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2))); VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2))); VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) ORVAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) ORVAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) ORVAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) ORVAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) ORVAR18MZ),H,L,0,0 ),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF;STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF;STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1Q:=EMA(CLOSE,5);MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);MA5Q:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C<REF(C,1);VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN; VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) ANDCROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;PL5:=ZIG(C,5,1);EN1:=ZIG(C,5,1)>REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)<=REF(ZIG(C,5,1),2) ANDREF(ZIG(C,5,1),2)<=REF(ZIG(C,5,1),3);EX1:=ZIG(C,5,1)<REF(ZIG(C,5,1),1) AND REF(ZIG(C,5,1),1)>=REF(ZIG(C,5,1),2) ANDREF(ZIG(C,5,1),2)>=REF(ZIG(C,5,1),3);PL10:=ZIG(C,10,1);EN2:=ZIG(C,10,1)>REF(ZIG(C,10,1),1) AND REF(ZIG(C,10,1),1)<=REF(ZIG(C,10,1),2) ANDREF(ZIG(C,10,1),2)<=REF(ZIG(C,10,1),3);EX2:=ZIG(C,10,1)<REF(ZIG(C,10,1),1) AND REF(ZIG(C,10,1),1)>=REF(ZIG(C,10,1),2) ANDREF(ZIG(C,10,1),2)>=REF(ZIG(C,10,1),3);PL20:=ZIG(C,20,1);EN3:=ZIG(C,20,1)>REF(ZIG(C,20,1),1) AND REF(ZIG(C,20,1),1)<=REF(ZIG(C,20,1),2) ANDREF(ZIG(C,20,1),2)<=REF(ZIG(C,20,1),3);EX3:=ZIG(C,20,1)<REF(ZIG(C,20,1),1) AND REF(ZIG(C,20,1),1)>=REF(ZIG(C,20,1),2) ANDREF(ZIG(C,20,1),2)>=REF(ZIG(C,20,1),3);PL40:=ZIG(C,40,1);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;XGQ:=XG11 OR XG22;W18:=COUNT(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORRED;SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;奉献理想专用:IF((CROSS(DIFF,DEA) ANDDIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK7,CROSSDOT;低位金叉:=IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK7,CROSSDOT;IF(CROSS(DIFF,DEA) AND DIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT; {再上N均线N 10 1 100 1}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1) AND MA2>REF(MA2,1);试摸N:=C>MA(C,10) OR H>=MA2;再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N AND MA(C,21)<MA(C,10);有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势)); DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;VAR10B:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0);VAR11B:=ZIG(C,6,1)>REF(ZIG(C,6,1),1) AND REF(ZIG(C,6,1),1)<=REF(ZIG(C,6,1),2) ANDREF(ZIG(C,6,1),2)<=REF(ZIG(C,6,1),3);VAR12B:=ZIG(C,6,1)<REF(ZIG(C,6,1),1) AND REF(ZIG(C,6,1),1)>=REF(ZIG(C,6,1),2) ANDREF(ZIG(C,6,1),2)>=REF(ZIG(C,6,1),3);VAR13B:=ZIG(C,22,1)>REF(ZIG(C,22,1),1) AND REF(ZIG(C,22,1),1)<=REF(ZIG(C,22,1),2) AND REF(ZIG(C,22,1),2)<=REF(ZIG(C,22,1),3);VAR14B:=ZIG(C,22,1)<REF(ZIG(C,22,1),1) AND REF(ZIG(C,22,1),1)>=REF(ZIG(C,22,1),2) AND REF(ZIG(C,22,1),2)>=REF(ZIG(C,22,1),3);VAR15B:=ZIG(C,51,1)>REF(ZIG(C,51,1),1) AND REF(ZIG(C,51,1),1)<=REF(ZIG(C,51,1),2) AND REF(ZIG(C,51,1),2)<=REF(ZIG(C,51,1),3);VAR16B:=ZIG(C,51,1)<REF(ZIG(C,51,1),1) AND REF(ZIG(C,51,1),1)>=REF(ZIG(C,51,1),2) AND REF(ZIG(C,51,1),2)>=REF(ZIG(C,51,1),3);VAR17B:=ZIG(C,72,1)>REF(ZIG(C,72,1),1) AND REF(ZIG(C,72,1),1)<=REF(ZIG(C,72,1),2) AND REF(ZIG(C,72,1),2)<=REF(ZIG(C,72,1),3);VAR18B:=ZIG(C,72,1)<REF(ZIG(C,72,1),1) AND REF(ZIG(C,72,1),1)>=REF(ZIG(C,72,1),2) AND REF(ZIG(C,72,1),2)>=REF(ZIG(C,72,1),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; 红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;牛节点:=CROSS(EMA(C,5),EMA(C,30)) AND CROSS(EMA(C,10),EMA(C,20));DRAWICON(牛节点,L-0.1,13);CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;止损:=EMA(C,5),COLORYELLOW,LINETHICK1;菩提B:=MA(H,20);参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0 AND H>长期趋势,(LOW- 0.1),5);VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);短底:=EMA(VVAR1D,5);支撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2) * 1.05);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K大:=SMA(RSVD,3,1);D大:=((3 * RSVD) - (2 * K大));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,REF(HIGH,BARSLAST(CROSS(D24,D大)))),COLORFFFFFF; 牛浮面:=CROSS(CLOSE,MA20) AND HIGH < 压力位AND OPEN < MA20AND HIGH < 支撑AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0 ANDD大< 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;CO:=(C-O);。

博易大师指标公式

博易大师指标公式

博易大师指标公式博易大师指标公式-原代码(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;。

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