博易大师期货软件指标公式源码期货最准的指标15分钟周期准确率95指标

合集下载

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

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

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

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

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

MA5:MA(CLOSE,5),COLORWHITE,LINETHICK3;波段高:(EMA(EMA(HIGH,60),60)-EMA(EMA(LOW,60),60))*2.5+EMA(EMA(HIGH,60),60),COLORWHITE,L INETHICK2;波段低:EMA(EMA(LOW,60),60)-(EMA(EMA(HIGH,60),60)-EMA(EMA(LOW,60),60))*2.5,COLORWHITE,LI NETHICK2;俞言友情:(波段高+波段低)/2,POINTDOT,COLOR909090;IF(波段高>=REF(波段高,1),波段高,DRAWNULL),COLOR000088,LINETHICK2;IF(波段低>=REF(波段低,1),波段低,DRAWNULL),COLOR000088,LINETHICK2;IF(波段高<=REF(波段高,1),波段高,DRAWNULL),COLOR008800,LINETHICK2;IF(波段低<=REF(波段低,1),波段低,DRAWNULL),COLOR008800,LINETHICK2;IF(MA5>=REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK4;IF(MA5<=REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK3;STICKLINE(REF(LOW,1)<波段低AND CLOSE>波段低AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,CLOSE,OPEN,(-1),0),COLORYELLOW;STICKLINE(REF(HIGH,1)>=波段高AND REF(CLOSE,1)>REF(OPEN,1) ANDCLOSE<OPEN,CLOSE,OPEN,(-1),0),COLORFF6600;DRAWICON(REF(LOW,1)<波段低AND CLOSE>波段低AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,LOW,3);DRAWICON(REF(HIGH,1)>=波段高AND REF(CLOSE,1)>REF(OPEN,1) ANDCLOSE<OPEN,HIGH,4);。

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

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

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

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

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

博易大师指标公式汇总以及源代码集成名称定义用法举例解释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 以来的年月日。

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

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

博易大师指标公式汇总以及源代码集成博易大师(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指标

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

博易大师指标公式源码

博易大师指标公式源码

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

它引入了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;{箭头突破分形}<>。

博易大师指标公式

博易大师指标公式

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

博易大师公式

博易大师公式

一:副图快慢线原码:V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED; STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;AA:10,COLORYELLOW;BB:90,COLORYELLOW;RSV:= (CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; 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=3V AR2:=CLOSE*VOL;MID:=EMA((EMA(V AR2,3)/EMA(VOL,3)+EMA(V AR2,6)/EMA(VOL,6)+EMA(V AR2,12)/EM A(VOL,12)+EMA(V AR2,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;V AR4:=EMA(CLOSE,9);B9:=COUNT(HIGH>SUP,5);V AR1:=MID;PARTLINE(V AR1>REF(V AR1,1),V AR1),LINETHICK2,COLORRED;PARTLINE(V AR1<REF(V AR1,1),V AR1),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,V ar1,REF(Var1,1),10,0),COLOR0000FF;0, CIRCLEDOT;STICKLINE(REF(Var1,1)>Var1,V ar1,REF(Var1,1),5,0),COLOR00ff00;STICKLINE(REF(Var2,1)>Var2,V ar2,REF(Var2,1),10,0),COLOR0000FF;STICKLINE(REF(Var2,1)<Var2,V ar2,REF(Var2,1),5,0),COLOR00ff00;0,COLOR0000FF;四:顶底王V AR1:=LLV(LOW,34);V AR2:=HHV(HIGH,30);V AR3:=REF(CLOSE,1);V AR4:=EMA((CLOSE-V AR1)/(V AR2-V AR1),3)*100;主力:=SMA(MAX(CLOSE-V AR3,0),7,1)/SMA(ABS(CLOSE-V AR3),7,1)*100,COLORRED; CC:主力,COLORWHITE;散户:=V AR4;V AR5:=(V AR4-LLV(V AR4,21))/(HHV(V AR4,21)-LLV(V AR4,21))*100;Q1:IF(CROSS(V AR5,90) AND 散户<40,18,10);Q2:IF(CROSS(主力,12) AND REF(散户,5)<20 ANDREF(散户,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;五:精准买卖指标(主图叠加)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),4))*(25);G:D,COLORRED,LINETHICK2;G1:=BACKSET(D<REF(D,5),3);PARTLINE(G1,D),COLOR33FF33,LINETHICK2;H:=(((D-LLV(D,21))/(HHV(D,21)-LLV(D,21)))*(4))*(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,O,C,4,1),COLORRED;STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORRED;STICKLINE(TJ1 AND TJ,O,C,4,1),COLORRED;STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000;STICKLINE(DIFF<DEA,O,C,4,1),COLORF0F000;八:龙腾天下指标:MA1:MA(CLOSE,15);MA2:MA(CLOSE,7);UPPER:MA1+2*STD(CLOSE,16),COLOR4080FF;LOWER:MA1-2*STD(CLOSE,16),COLOR4080FF;FILLRGN(MA2>MA1,MA2,MA1),COLOR00FFFF;FILLRGN(MA2<MA1,MA2,MA1),COLORFF8000;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)),HIGH,LOW,1,0),COLORRED;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)),OPEN,CLOSE,5,0),COLORRED;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)),OPEN,CLOSE,5,0),COLORCYAN;STICKLINE((CLOSE<OPEN) OR (CLOSE=OPENAND CLOSE<REF(CLOSE,1)) OR (CLOSE=OPEN AND CLOSE=REF(CLOSE,1) AND REF(CLOSE,1)<=REF(OPEN,1)),HIGH,OPEN,1,0),COLORCYAN;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)),LOW,CLOSE,1,0),COLORCY AN九:笑脸MACDDIF:=EMA(CLOSE,9)-EMA(CLOSE,18);DEA:EMA(DIF,7),LINETHICK1,COLORFFFFFF;MACD:=2*(DIF-DEA);QDIF:IF(DEA,DIF,0),COLORRED,LINETHICK2;D:=BACKSET(DIF<REF(DIF,1),2);RDIF:IF(D ,DIF,0),COLOR33FF33,LINETHICK2;STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000FF; STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORFF99FF; STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;金叉:=CROSS(DIF,DEA) AND DIF<0.3,COLOR0000FF;DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,1);十:副图趋势趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CL OSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE -LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F5 2AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;十一:底部提示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,V ar9,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;十二:喜忧掺半副图RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);V AR4:=SMA(RV,3,1);V AR5:=SMA(V AR4,3,1);DRAWICON(CROSS(V AR4,V AR5) AND V AR5<30,8,1);DRAWICON(CROSS(V AR5,V AR4) AND V AR5>30,93,2);FILLRGN(V AR5>REF(V AR5,1),V AR5,V AR4),COLORRED;FILLRGN(V AR5<REF(V AR5,1),V AR5,V AR4),COLORGREEN;十三:量能副图V AR1:=(HHV(HIGH,13)-LLV(LOW,13));V AR2:=(HHV(HIGH,13)-CLOSE);V AR3:=(CLOSE-LLV(LOW,13));V AR4:=(((V AR2/V AR1)*100)-70);V AR5:=(((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*100); V AR6:=((((2*CLOSE)+HIGH)+LOW)/4);V AR7:=SMA(((V AR3/V AR1)*100),3,1);V AR8:=LLV(LOW,34);V AR9:=(SMA(V AR7,3,1)-SMA(V AR4,9,1));V AR10:=IF((VAR9>100),(V AR9-100),0);V AR11:=HHV(HIGH,34);V AR12:=EMA((((V AR6-V AR8)/(V AR11-V AR8))*100),1);V AR13:=EMA(((0.667*REF(V AR12,1))+(0.333*V AR12)),2); STICKLINE(((VAR12-V AR13)>0),V AR12,V AR13,4,0),COLOR0000FF;STICKLINE(((VAR12-V AR13)<0),V AR12,V AR13,4,0),COLORFF0000;MA11:EMA(V AR13,5);十四:红做多绿做空(副图)N:=5; N1:=21;V AR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLOR YELLOW,LINETHICK1;V AR2:=8,COLORGREEN,LINETHICK0;小试牛刀: IF(CROSS(VAR1,V AR2),8,0),STICK,COLORRED;DRAWICON(小试牛刀>0,8,4);发现庄迹: IF(VAR1<=8,15,0),STICK,COLORCY AN,LINETHICK2;V ARO5:=LLV(LOW,27);V ARO6:=HHV(HIGH,34);V ARO7:=EMA((CLOSE-V ARO5)/(V ARO6-V ARO5)*4,4)*25;建仓区: IF((VARO7<10),100,118) ,COLOR00CCFF,LINETHICK1;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);V AR81:=MA(C,9),COLORRED;空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORGREEN;减仓空仓:CROSS(CD6,CD5),COLORGREEN;DRAWICON(减仓空仓>0,113,5);V AR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2A:=SMA(V AR1A,9,1)+100;V AR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4A:=SMA(V AR3A,3,1);V AR5A:=SMA(V AR4A,3,1)+100;V AR6A:=V AR5A-V AR2A;端庄窝:=IF(VAR6A>N1,V AR6A-N1,0),STICK,COLOR0000CC,LINETHICK2;DRAWICON(0,18,4);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;博易大师中的指标是主图或副图可选的。

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