量化经典博易大师指标公式汇总以及源代码集成三

合集下载

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

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

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

博易大师指标公式汇总以及源代码集成_图文.doc

博易大师指标公式汇总以及源代码集成_图文.doc

以上为行情函数:以上为常用函数以上为时间函数以上为引用函数以上为逻辑函数以上为数学函数以上为统计函数以上为指标函数pobo博易期货指标(大集合)网摘汇总利多方舟 (10)变色MACD (10)仿DDX (12)博易版(king趋势) (12)无敌趋势 (13)粉K线 (13)无敌精灵 (13)买卖航标 (14)犬风地火 (14)15无影手合并即涨16顶底奇准 (16)一品操盘 (17)★底部提示:副 (18)博易顶底王 (19)趋势线(主图) (19)变色主图线 (20)CCI主图K线 (20)优化MACD (20)博易指标公式(量能多空) (21)多空参考 (21)趋势顶底 (22)资金量指标 (23)机构做空能量线 (24)专业快刀手 (24)副图K线 (25)一品操盘 (25)天机均线 (26)无双多空 (26)金山银山 (27)量能指标 (27)即时趋势 (28)快慢多空 (28)彩色K线 (28)量能多空........................................... 错误!未定义书签。

鳄鱼分形........................................... 错误!未定义书签。

多空之王........................................... 错误!未定义书签。

博易大师变色均线代码(以21 口均线.“万能线”为例)一、当均线开始上翘时变彩色,当均线开始卜-拐后变绿色MA21:MA(C,21 ),COLOROOFFOO,LINETHICK4;PARTLINE(MA21>REF(MA21,1 ),MA21 ),COLORRED,LINETHICK4; PARTLINE(MA21<REF(MA21,1),MA21 ),COLOR008800,LINETHICK4;二、当K线突破均线变彩色,当K线跌破均线后变绿色MA21:MA(C,21 ),COLOROOFFOO,LINETHICK4;PARTL1NE(C>MA21,MA21 ),COLORRED,LINETHICK4;PARTLINE(C<MA21,MA21 ),COLOROOCDOO,LINETHICK4;AND C>=O,C,O,3,0),COLORRED; AND C>=0,H,LQO),COLORRED; AND CvO,C,0,3,1 ),COLORRED; AND C<0,0,H,0,0),COLOURED; AND CvO,C,L,0,0),COLORRED; AND C>O,C,O,3,l),COLORFFFF00; AND Cv=0,CQ,3,l),COLORFFFFOO; AND Cv=O,H,L,0,l),COLORFFFF00;AND C>O,C,H,0,l),COLORFFFF00; AND C>O,O,L,0,l),COLORFFFF00;利多方舟VARl:=(100 - ((90 * (HHV(H1GH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(H1GH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 ・ MA(((100 * (HHV(H1GH,6) - CLOSE)) / (HHV(H1GH,6)・ LLV(LOW,6))),34)); DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(CLOSE*0.95),' t ^COLOROOOOFF;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035)」卖)COLORFFFF34;年:MA(CLOSE,30),COLORGREEN;年 STICKLINE(C>=年 STICKLINE(C>=年 STICKLINE(C>=年STICKLINE(C>=年 ST1CKLINE(C>=STICKLINE(C<年. STICKLINE(C<年. STICKLINE(C<年.年,STICKLINE(C<STICKLINE(C<年,符号t 为”买"变色MACDDIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*20,COLORFFFFFF,LINETHICK1;DEA:EMA(DIFF,9),COLOROOFFFF,LINETHICK1;MACD:2*(DIFF-DEA), COLORSTICK;MACD1:2*(DIFF.DEA),COLORRED,LINETHICKO;MACD2:SMA(MACD1,0,3),COLORFFFFOO,LINETHICKO;STICKLINE(MACD 1>MACD2 AND MACD 1 >0,0,MACD 1,2,0),COLORRED;ST1CKL1NE(MACD 1>MACD2 AND MACD 1 <0,0,MACD 1,2?0),COLOROOFFFF;STICKLINE(MACD 1<MACD2,O,MACD 1 ,l,0),COLOR40FF00;Sl:=MACD<0;S2:= (MACD>=0);S3 :=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5 :=DE A>REF(DE A,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:=CROSS(DIFF,DEA) AND S6;L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3 :=BARSLAST(CROSS(L 1 ,L2));L4:=REF(L3,L3+1);L5:=L2;变盘:CROSS(L1,L2) AND L5,LINETHICKO,COLORD6FF9C;STICKLINE(变盘,5,-5,4,1 ),COLORD6FF9C;成立距今:BARSLAST(CROSS(DIFF,DEA)),LINETHICKO;L6:=BARSC0UNT(CL0SE);DRAWTEXT(CROSS(L1,L2),DIFF,‘ 买'),COLOROOOOFF;DRAWTEXT(CROSS(L2,L 1 ),DIFF,‘ 卖'),COLORFFFFOO;REF(DEA,S3),POINTDOT,COLORGREEN;IF(L1>L2,REF(DEA,S3),0),POINTDOT,LINETHICK5,COLORB078FF;IF(MACD<O,REF(DEA,S3),0),POINTDOT,UNETHICK5,COLORGREEN;LS:=IF(D1FF>DEAAND DIFF>0,l,0);加速上扬:IF(REF(LS=0,1) AND LS=l,0.1,0);XG1:CROSS(MACD 1,MACD2) AND MACD 1<O,LINETHICKO;XG2:CROSS(DIFF,DEA),LINETHICKO;M1 :=MACD>REF(MACD, 1) AND DIFF<DEA;绿柱短了:Ml AND COUNT(M 1,10)=1 AND C>MA(C,55) ANDCOUNT(MACD<0,5)>=5,LINETHICK0;DRAWTEXT(绿柱短了,MACD;绿柱短r),COLOROOFF80;渔家乐渔家:3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21 )-LLV(LOW,21))* 100,5,1 )-2*SMA(SMA(( CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))* 100,5,1 ),3,1 ),LINETHICK2, COLORYELLOW;渔家乐:IF(CROSS(渔家,MA(渔家,10)) AND 渔家v=10,35,0),LINETHICK3 , COLORMAGENTA; 渔家出海:IF(CROSS(渔家,MA(渔家,10)) AND 渔家<35,70,0),LINETHICK3 , COLORRED;渔家网:IF(CROSS(MA(渔家,9),渔家)AND 渔家>70,110,72),LINETHICK 1 , COLORCYAN; DRAWICON(CROSS(渔家,62),68,1);DRAWICON(CROSS(渔家,72),70,1);DRAWICON(CROSS(渔家,66),72,1);DRAWICON(CROSS(渔家,68),66,1);DRAWICON(CROSS(76,渔家),70,2);DRAWICON(CROSS(68,渔家),84,2);DRAWICON(CROSS(66,渔家),80,2);DRAWICON(CROSS(64,渔家),70,2);准备下网:IF(渔家v=l0,30,0),STICK,COLOR8080FF,LINETHICK4;此处下M: IF(CROSS(渔家,10),45,0),STICK,COLORRED,LINETHICK4;DRAWTEXT(此处卜网,40」关注'),COLORYELLOW;准备休渔吧:IF(渔家〉=90,70,0),STICK, COLORGREEN;休渔吧:IF(CROSS(84,渔家),100,0),STICK,COLOR77AAFF,LINETHICK5;DRAWTEXT(休渔吧,98/回家!),COLOR77AAFF ;水面:72, COLORCYAN ;网架:105;水底:10;渔家2: MA(渔家,9),LINETHICK2 ,COLORFFOOOO;IF(CROSS(渔家,MA(渔家,6)) AND 渔家2<45,渔家2,0),COLORCCB3E2 ,L1NETHICK3 ;仿DDXVOL,VOLSTICK;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:VOL,VOLSTICK;主买:IF(CLOSE>OPEN,VAR1*(HTGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)), VOL/2)),COLORRED,COLORSTICK;主卖:IF(CLOSE>OPEN,0-VAR1 *((HIGH-CLOSE)+(OPEN・LOW)),IF(CLOSEvOPEN,0-VARl*( HIGH-LOW),0-VOL/2)),COLOROOFFOO,COLORSTICK;增仓减仓:IF(主买>=(ABS(主卖)),主买+主卖,主卖+主买),COLORYELLOW,LINETHICK2; 博易版(king趋势)QSO:=((CLOSE - LLV(LOWJ 20)) / (HHV(HIGH,120) - LLV(LOWJ 20)));QS1:=((QSO/1) * EMA(CLOSE,20));QS:=SMA(QS1,3,1);QDO:=((CLOSE . LLV(LOW,119))/ (HHV(H1GH,119) - LLV(LOW,119)));QD1:=((QDO / I) * EMA(CLOSE,20));QD:=SMA(QD 1,5,1);QFO:=((CLOSE - LLV(LOW, 118)) / (HHV(HIGH,118) - LLV(LOW, 118)));QF1:=((QFO/ 1) * EMA(CLOSE,20));QF:=SMA(QF1,5,1);PX1:=((((QS + QD) + QF) / 3) + EMA(CLOSE,20));PX2:=MA(PX1,2);PX3:=MA(PX1,3);YY:=((((2 * CLOSE) + HIGH) + LOW) / 4);MA1:=MA(YY,45);C1:=(PX1 ・MA1);M:=(PX2・MA1);O1:=(PX3 - MAI);MA2:=MA(C1,8);BO:=0.5,COLORRED;STICKLINE((C1 >= M),M,(O1 - 0.03),4,0),COLORRED;STICKLINE((C1 <= M),M,(O1+ 0.03),4,0),COLORFFFF00;LIFE:=MA(C 1,13),COLORGREEN;A:MA(LLV(C 1,120),3),COLORRED;B:MA(HHV(C 1,120),3),COLORGREEN;无敌趋势RSV 1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;RSV2:=(CLOSE・LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;J1 :=SMA(RS V 1,3,1 );J2:=SMA(J 1,3,1);趋势线:3*SMA(RSV2,5,1)-2*SMA(SMA(RSV2,5,1),3,1),LINETHICK2,COLORFF84FF; K:SMA(RSV2,3,1),L1NETH1CK2,COLORWHITE;D:SMA(K,3,1),LINETHICK2,COLORF408F4;DI:IF(趋势线v= 10,30,0),LINETHICK2,COLORYELLOW;KI:IF(CROSS(J2,J1)AND J2>85,70,100),LINETHICK2,COLOR00FF00;强弱界线:49,POINTDOT,L1NETHICK3,COLOR99AACC;STICKLINE(趋势线>88,100,趋势线,4,1),COLORGREEN;STICKLINE(趋势线v=l 0,0,趋势线,4,1),COLORYELLOW;STICKLINE(COUNT(趋势线<REF(趋势线,1)AND 趋势线<10,2)=2,0,20,4,0),COLORRED; STICKLINE(CROSS(J2,J1) AND J2>85,100,80,4,0),COLORGREEN;DRAWICON(CROSS(趋势线,49),趋势线,1),COLORRED;DRAWICON(FILTER(CROSS(D,K) AND D>88,10),D* 1.05,2);DRAWTEXT(CROSS(趋势线,49),47;转强*),COLORRED;DRAWTEXT(CROSS(49,趋势线),52」转弱 *),COLORGREEN;粉K线STICKLINE(CROSS(C,(HHV((H+L)/2,120))),O,C, 12,1 ),COLOR3 3DDDD;{历史新高:} STICKLINE(HHV(CLOSE,0)=CLOSE,O,C, 10,0),COLORYELLOW; STICKLINE(C>=O,CLOSE,OPEN,8,0),COLORRED;ST1CKLINE(C>=O,CLOSE,OPEN,7,0),COLORRED;STICKLINE(C>=O,CLOSE,OPEN,6,0),COLOR0000BB;STICKLINE(C>=O,CLOSE,OPEN,5,0),COLGR0000CC;STICKLINE(C>=O,CLOSE,OPEN,4,0),COLOR0000DD;STICKLINE(C>=O,CLOSE,OPEN,3,0),COLOROOOOEE;STICKLINE(C>=O,CLOSE,OPEN,2,0),COLOR0000FF;STICKLINE(C>=O,LOW,HIGH, 1,0),COLORRED;无敌精灵空方:=(EMA(CLOSE,24)-EMA(CLOSE,4))/2*0.95;0;多方:=(EMA(CLOSE,4).EMA(CLOSE,24))/2*0.95;多头:多方,COLORYELLOW;空头:空方”COLORFFFFOO;引路精灵:(多方•空方),COLORRED,LINETHICK2;STICKLINE(多方〉空方,0,多方,0.8, 1),COLOREEAAFE;STICKLINE(空方〉多方,0,空方,0.8, 1),COLORFFFFOO;STICKLINE(多方〉空方,0,空方,0.8 , 1),COLOREEAAFE;STICKLINE(空方〉多方,0,多方,0.8 , 1),COLORFFFFOO;DRAWICON(CROSS(引路精灵,0),引路精灵+0.3,1 );买卖航标VAR 1 :=(CLOSE-LLV(LOW,30))/(HH V(HIGH,30)-LLV(LOW,30))* 100;操盘线:SM A(VAR 1,5,1 ),LINETHICK2,COLORRED;趋势线:SMA(操盘线,3,1 ),LINETH1CK2,COLORYELLOW;买入航标:IF(CROSS(操盘线,趋势线)AND 趋势线<25,50,0),L1NETHICK2,COLORRED; DRAWTEXT(买入航标>0,50」买入),LINETHICK1,COLORRED;卖出时间:IF(CROSS(趋势线,操盘线)AND操盘线>70,80,100),COLORGREEN;DRAWTEXT(卖出时间<100,80;卖出),LINETHICK 1,COLOROOFFOO;天风地火{天风地火N:1 100 3 M:l 100 30}VARO:=(3*CLOSE+LOW+OPEN+HIGH)/6;多头线:(20* VAR0+19*REF( VAR0,1)+18*REF(VAR0,2)+17*REF( VAR0,3)+16*REF( VAR0,4)+ 15*R EF( VAR0,5)+14*REF(VAR0,6)+13 *REF(VAR0,7)+12*REF(VAR0,8)+11 *REF( VAR0,9)+ 10*R EF( VAR0,10)+9*REF(VAR0,11 )+8*REF(VAR0,12)+7*REF(VAR0,13)+6*REF( VAR0,14)+5 *R EF( VAR0,15)+4*REF( VAR0,16)+3 *REF( VAR0,17)+2*REF( VA R0,18)+REF( VAR0,20))/210,CI RCLEDOT,COLORRED,LINETHICK2;空头线:MA(多头线,10), CIRCLEDOT,COLORGREENXINETHICK2;STICKLINE(多头线 > 空头线,多头线,空头线,10,10),COLORRED;ST1CKLINE(多头线v空头线,多头线,空头线,10,10), COLORGREEN;STICKLINE(C>O,O,C,7,0),COLOURED;STICKLINE(O0,0,C,4,0),C0L0RB0B0FF;STICKLINE(C>O,O,C,2,0),COLORYELLOW;STICKLINE(C>O,L,H,0.1,0),COLORYELLOW;STICKLINE(C< O,O,C,7,0),COLORFF2020;STICKLINE(C< O,O,C,4,0),COLORFF6600;STICKLINE(C< O,O,C,2,0),COLORFFCC66;STICKLINE(C< O,L,H,0.1,0),COLORFFCC66;STICKLINE(C=O ANDC>=REF(C, 1 ),O,C,7,0),COLORRED;STICKLINE(C=O ANDO=REF(C, 1 ),O,C,4,0),COLORB0B0FF;STICKLIN E(C=O AN DC>=REF(C, 1 ),0,C,2,0),COLORYELLOW;STICKLINE(C=O ANDC>=REF(C, 1 ),L,H,0.1,0),COLORYELLOW;STICKLINE(C=O AND C<REF(C, 1 ),O,C,7,0),COLORFF2020;STICKLINE(C=O AND CvREF(C,l),O,C,4,0),COLORFF6600;STICKLINE(C=O AND CvREF(C,l),O,C,2,0),COLORFFCC66;STICKLINE(C=O AND C〈REF(C,1),L,H,0.1,0),COLORFFCC66;VAR 1 :=(CLOSE* 1.1 )・(CLOSE*0.9)*80无影手A1:EMA((EMA(CLOSE,1)+EMA(CLOSE,3)+EMA(CLOSE,5))/3,3),COLORRED;A2:EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA(CLOSE,7))/3,3),COLORRED;A3:EMA((EMA(CLOSE,5)+EMA(CLOSE,7)+EMA(CLOSE,9))/3,3),COLOURED;A4:EMA((EMA(CLOSE,7)+EMA(CLOSE,9)+EMA(CLOSE, 11 ))/3,3),COLORRED;A5:EMA((EMA(CLOSE,9)+EMA(CLOSE,11)+EMA(CLOSE,13))/3,3),COLORRED;A6:EMA((EMA(CLOSE,11)+EMA(CLOSE,13)+EMA(CLOSE,15))/3,3),COLORRED;A7:EMA((EMA(CLOSE,13)+EMA(CLOSE,15)+EMA(CLOSE,17))/3,3),COLORRED;A8:EMA((EMA(CLOSE, 15)+EMA(CLOSE, 17)+EMA(CLOSE, 19))/3,3),COLORRED;A9:EMA((EMA(CLOSE,17)+EMA(CLOSE, 19)+EMA(CLOSE,21 ))/3,3),COLORYELLOW; Al 0:EMA((EMA(CLOSE, 19)+EMA(CLOSE,2 l)+EMA(CLOSE,23))/3,3),COLORYELLOW; A11:EMA((EMA(CLOSE,2 l)+EMA(CLOSE,23)+EMA(CLOSE,25))/3,3),COLORYELLOW; A:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3),COLORYELLOW; B:=REF(A,1);DRAWTEXT(A>B,(A+B)/2,*'), COLORFFOOFF;DRAWTEXT(Av=B,(A+B)/2,皆),COLORGREEN;{STICKLINE(A>B,A,B,8,0),COLORFFOOFF;STICKLINE(Av=B,A,B,8,l),COLORFFOOOO;}Al 5:A-(A 1 -A*0.997),COLORFF 1010;A16:A-(A2-A),COLORFF2010;Al 7:A-(A3-A),COLORFF3010;A18: A-( A4-A),COLORFF4010;A19: A-( A5-A),COLORFF5010;A20: A-(A6-A),COLORFF6010;A21:A-(A7-A),COLORFF7010;A22:A-(A8-A),COLORFF8010;A23:A-(A9-A),COLORFF9010;A24:A-(A 10-A),COLORFFC010;A25:A-(A 11-A*0.997),COLORFFEO 10;STICKLINE(OPEN>=CLOSE ,O,C,9,0 ),COLORAAAAAA;ST1CKLINE(OPEN>=CLOSE ,O,C,6,0 ),COLORBBBBBB;STICKLINE(OPEN>=CLOSE ,O,C,2.4,0),COLORCCCCCC;STICKLINE(OPEN>=CLOSE ,O,C, 1.1,0),COLORDDDDDD;STICKLINE(CLOSE>OPEN,O,C,9,0 ),COLOR6666CC;STICKLINE(CLOSE>OPEN,O,C,6 ,0 ),COLOR7777DD;STICKLINE(CLOSE>OPEN,O,C,2.4 ,0 ),COLOR8888EE;STICKLINE(CLOSE>OPEN,O,C,1.1 ,0 ),COLOR9999FF;STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),COLOR1199FF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0),COLOR 1199FF;STICKLrNE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0),COLORCCCCCC;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0),COLORCCCCCC;VAR31 :=(ZIG(3, 19)>REF(ZIG(3,19), 1) ANDREF(ZIG(3,19), 1 )<REF(ZIG(3,19), 2));:6699归r ro r OS'O I =职卑手访)HNrraDLLS:6699WHCnOD'(Ol'OW(牧〉派))AHH)』潮律渡尊*01'—)AHH=:萩X滓)VW =:理-£/(aSO1O+HDIH+MCH)=:手•(rasoio)vw=-i? 盘厚割互•JdOOOOHOlO^O :0曲00*010。

(完整版)量化经典博易大师指标公式汇总以及源代码集成三

(完整版)量化经典博易大师指标公式汇总以及源代码集成三

DRAWTEXT(CLOSE>上分形AND REF(CLOSE,1)<REF(上分形,1),L博易指标公式(量能多空)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 <DKX) AND (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;V AR1:=(HHV(HIGH,15)-LLV(LOW,15));V AR2:=(HHV(HIGH,15)-CLOSE);V AR3:=(CLOSE-LLV(LOW,15));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),15);V AR13:=EMA(((0.667*REF(V AR12,1))+(0.333*V AR12)),2);MA11:=EMA(VAR13,5);DRAWTEXT(CROSS(V AR12-V AR13,0),L-1,'多');DRAWTEXT(CROSS(0,V AR12-V AR13),H+1,'空');多空参考(副图)V AR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;V AR2:=SMA(V AR1,10,1);慢速:=SMA(VAR2,5,1);RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:=SMA(FATK,3,1);V ARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V ARB:=SMA(V ARA,3,1);V ARC:=SMA(V ARB,3,1);加速: EMA(3*V ARB-2*V ARC,2),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;顶:90,COLORFFA500;大顶:100,COLORWHITE;V AR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;V AR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=V AR11 AND V AR22,LINETHICK2,COLORRED;V AR3:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;卖出:=CROSS(80,V AR4),LINETHICK2,COLORGREEN;V AR5:=CROSS(加速,100);V AR6:=CROSS(加速,-6);V AR7:=CROSS(80,加速);V AR8:=CROSS(加速,6);DRAWTEXT(V AR5,85,'注意顶'),COLORBLUE;DRAWTEXT(V AR6,0,'关注底'),COLORRED;DRAWTEXT(V AR7,95,'空'),COLORGREEN;DRAWTEXT(V AR8,5,'多'),COLORMAGENTA;趋势顶底S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE(顶部,98,103,20,1),COLORRED;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;资金量指标V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR6:=(V AR3+V AR4+V AR5)/3;ZH: EMA(EMA(V AR3,5),5)*3, COLORSTICK;V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR8:=IF(VAR6<=-20,10,0);STICKLINE(V AR8=10,20,10,4,0),COLORRED;V AR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,5,'狮子提醒'),COLORFF00FF; STICKLINE(V AR11 AND COUNT(V AR11,30)=1,1,10,8,0),COLORYELLOW;DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,3,'大资金进入'),COLORFF00FF;机构做空能量线V AR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(V AR1,3,1),LINETHICK2,COLORGREEN;V AR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(V AR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;专业快刀手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),50,0),STICK,COLORRED;DRAWICON(小试牛刀>0,50,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),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2; DRAWICON(果断出击>0,100,4),COLORGREEN;XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00;红持绿空:0,COLORGREEN;中分线: 20;V AR1E:=((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 100;V AR2E:=SMA(SMA(V AR1E,3,1),3,1);V AR3E:=EMA(V AR2E,5);GZ:=3*VAR2E-2*V AR3E;趋势J:EMA(GZ,3),colorgreen,linethick3;partline(趋势J>ref(趋势J,1),趋势J),colorred,linethick3;V AR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;V AR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;副图K线RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:SMA(RSV,3,1);D:SMA(K,3,1);J:=3*K-2*D;100,COLOR00FF00;0,COLORFF00FF;STICKLINE(J>REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),3,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),2,0),COLOR000099;;STICKLINE(J>REF(J,1),J,REF(J,1),1,0),COLOR2F2FF0;STICKLINE(J<REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00;STICKLINE(J<REF(J,1),J,REF(J,1),3,0),COLORFF3300;STICKLINE(J<REF(J,1),J,REF(J,1),1.5,0),COLORFF6600;STICKLINE(J<REF(J,1),J,REF(J,1),0,0),COLORFFAA00;一品操盘STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED;STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN; STICKLINE((C<O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,1),COLORCYAN;压力:HHV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORGREEN;支撑:LLV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORRED;RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;V A1:=SMA(RV,3,1);V A2:=SMA(V A1,3,1);ZZ:=EMA(SMA(RG,3,1),2);XX:=SMA(ZZ,3,1);DRAWICON(CROSS(V A1,V A2) AND CROSS(ZZ,XX),L,1);DRAWICON(CROSS(V A2,V A1) AND CROSS(XX,ZZ),H,2);天机均线均:=(3*C+H+L+O)/6;短线:(8*均+7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF(均,7 ))/36,COLORWHITE,PRECIS0;中线:(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECIS0;无双多空V AR1A:=LLV(LOW,21);V AR2A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 100),5);AK:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB=1),L,'建多'),COLORYELLOW;V AR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);V AR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (V AR3AA>0),91,0);STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED; STICKLINE((C>=O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLORRED; STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN;DRAWTEXT(FILTER((V AR4AA>90),45),L,'★大胆多'),COLOR00FFFF;V AR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;V AR2:=SMA(V AR1,3,1);V AR3:=SMA(V AR2,3,1);V AR5:=CROSS(SMA(V AR2,3,1),SMA(V AR3,3,1)) AND SMA(V AR2,3,1)<20; DRAWTEXT(FILTER(V AR5,10)=1,LOW,'抄底'),COLORYELLOW;V ARA:=LLV(LOW,35);V ARB:=HHV(HIGH,30);V ARC:=EMA((CLOSE-V ARA)/(V ARB-V ARA)*4,4)*25;DRAWTEXT(IF(CROSS(87.5,V ARC),87,0),H,'空'),COLOR00FF00;金山银山DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,CLOSE,OPEN,3,0),COLORRED;STICKLINE(DIFF>DEA,HIGH,LOW,3,0),COLORRED;STICKLINE(DIFF<=DEA,CLOSE,OPEN,3,0),COLORGREEN; STICKLINE(DIFF<=DEA,HIGH,LOW,3,0),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),N);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 1 100 15 )即时趋势副图R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA(( CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1);ZP:IF(R1<7,20,0),COLORGREEN;XG:IF(CROSS(R1,7),38,0),COLORRED;A:95,COLORGREEN;快慢多空主图叠加AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED; STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),COLORGREEN; AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;彩色K线HH:=HHV(HIGH,3);LL:=LLV(LOW,3);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));IF((HH1 < LL1),LL,HH),LINETHICK2,COLORBB0066;IF((HH1 > LL1),HH,LL),LINETHICK2,COLOR1B8800;STICKLINE((HH1 < LL1),CLOSE,OPEN,3,0),COLORRED;STICKLINE((HH1 < LL1),HIGH,LOW,0,0),COLORRED;STICKLINE((HH1 > LL1),CLOSE,OPEN,3,0),COLORFF0000;STICKLINE((HH1 > LL1),HIGH,LOW,0,0),COLORFF0000;DRAWTEXT(CROSS(HH1,LL1),HH,'开空'),COLORYELLOW;DRAWTEXT(CROSS(LL1,HH1),LL,'开多'),COLORFF00FF;。

(完整版)博易大师函数、语法指令与指标公式大全

(完整版)博易大师函数、语法指令与指标公式大全
ISEQUAL
是否十字线
判断当前周期是否平盘
ISUP
是否阳线
判断当前周期是否上涨
L
最低价
取当前周期最低价。同LOW
LOW
最低价
取当前周期最低价。简写为:L
O
开盘价
取当前周期开盘价。同OPEN
OPEN
开盘价
取当前周期开盘价。简写为O
SELLVOL
内盘量
取当前周期内盘量(主动卖量)
SETTLEPRICE
ZLJZ
当前股票主力流入净值
取当前股票当前周期主力流入净值
ZLJZ2(Code)
指定股票主力流入净值
取指定股票当前周期主力流入净值。
Code为证券代码,当代码为常量时,可以动态更新该品种数据,否则只能使用本地最近保存的数据。
ZLJZ2('600000.SH'),表示引用浦发银行的主力净值。
函数
功能
解释
DATA限历史行情和数据时间数据。
Code为品种代码,当代码为常量时,可以动态更新该品种数据,否则只能使用本地最近保存的数据。Period为周期类型,取值参考DATAPERIOD;DATA为历史行情数据名。
当Code=''时引用当前品种,Period=0时引用当前周期类型。
STKDATA('',1,'CLOSE')。表示引用当前品种的1分钟线历史收盘价。
DYNAINFO(74)
委卖价四
取得动态行情:委卖价四
DYNAINFO(75)
委卖价五
取得动态行情:委卖价五
函数
功能
解释
示例
即时行情
DYNAINFO2
跨品种动态行情

【史上最全】博易大师指标公式编写教程、指标函数大全、指标代码大全

【史上最全】博易大师指标公式编写教程、指标函数大全、指标代码大全

目录博易大师指标编写教程 (3)一、技术指标公式基础 (3)二、公式的构成 (5)三、指标公式编写技巧 (6)四、指标公式编写举例 (8)博易大师指标函数列表 (13)一、行情函数 (13)二、常数函数 (14)三、时间函数 (15)四、引用函数 (16)五、逻辑函数 (17)六、数学函数 (18)七、统计函数 (19)八、指标函数 (20)九、协方差函数 (21)十、输出修饰符 (22)博易大师指标代码大全 (23)利多方舟 (23)变色MACD (23)渔家乐 (24)仿DDX (24)king趋势 (25)无敌趋势 (25)粉K线 (26)无敌精灵 (26)买卖航标 (26)天风地火 (26)无影手 (27)合并即涨 (28)顶底奇准 (29)一品操盘 (29)一品操盘 (30)★底部提示:副 (31)博易顶底王 (31)趋势线(主图) (32)CCI主图K线 (32)优化MACD (32)博易指标公式(量能多空) (33)多空参考(副图) (33)趋势顶底 (34)资金量指标 (35)机构做空能量线 (35)专业快刀手 (35)无双多空 (37)金山银山 (37)量能指标 (37)即时趋势 (38)快慢多空 (38)彩色K线 (38)量能多空 (39)鳄鱼分形 (39)多空之王 (40)博易大师指标代码大全注释 (41)博易大师指标编写教程一、技术指标公式基础技术指标公式编辑器是澎博软件公式系统的第一类编辑器,是最基础的编辑器,通过该编辑器将单调的数据行情转换成为有形的图形世界,转换成为易观察,视觉效果强烈的曲线,或者其它的图形,方便我们获取有益的信息。

公式系统有以下特点:用户只需要描述一个数据是如何计算的,公式系统就能将所有数据计算出来,并以曲线的形式显示出来。

公式系统以时间序列为基础,其计算对象是一组沿时间递增的数据序列,每一个时间周期包含一组数据,公式系统能对其中的任何数据进行操作。

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

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

博易大师指标公式汇总以及源代码集成博易大师(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编程语言中的源代码集成示例。

博易大师指标(三)

博易大师指标(三)

博易大师指标(三)博易大师指标一:副图快慢线原码:VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,13);VAR8:=HHV(HIGH,13);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORGREEN;AA:10,COLORYELLOW;BB:90,COLORYELLOW;RSV:= (CLOSE-LLV(LOW,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=3VAR2:=CLOSE*VOL;MID:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA( VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL, 24))/4,N);主趋势线1:MID;MID2:=MID*1.01;SDN:=MID*0.94;SDN3:=REF(CLOSE,1800),COLORYELLOW;SUP:=1.06*MID,COLORBLUE;VAR4:=EMA(CLOSE,9);B9:=COUNT(HIGH>SUP,5);VAR1:=MID;PARTLINE(VAR1>REF(VAR1,1),VAR1),LINETHICK2,COLORRED;PARTLINE(VAR1<REF(VAR1,1),VAR1),LINETHICK2,COLORCYA N;PP:=(2*CLOSE+HIGH+LOW)/4;QQ:=ABS(PP-MA(CLOSE,N*15));AA:=QQ/MA(CLOSE,N*15);N2:=(N-2)*15;N3:=(N+2)*15;N4:=(N+3)*15;主趋势线:=(MA(CLOSE,13)),LINETHICK2,COLORRED;CC:=(CLOSE/主趋势线);三:合并即涨Var0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;Var3:=SMA(Var0,3,1);Var1:=SMA(Var3,4,1)-10;Var4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;Var5:=SMA(Var4,3,1);Var2:=SMA(Var5,4,1)-90;STICKLINE(REF(Var1,1)<Var1,Var1,REF(Var1,1),10,0),COLOR0 000FF;0, CIRCLEDOT;STICKLINE(REF(Var1,1)>Var1,Var1,REF(Var1,1),5,0),COLOR00f f00;STICKLINE(REF(Var2,1)>Var2,Var2,REF(Var2,1),10,0),COLOR0 000FF;STICKLINE(REF(Var2,1)<Var2,Var2,REF(Var2,1),5,0),COLOR00f f00;0,COLOR0000FF;四:顶底王VAR1:=LLV(LOW,34);VAR2:=HHV(HIGH,30);VAR3:=REF(CLOSE,1);VAR4:=EMA((CLOSE-VAR1)/(VAR2-VAR1),3)*100;主力:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100,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 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) ANDREF(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),COLORCYAN 九:笑脸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((CLOSE-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,COLOR7F52AF;趋势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,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;十二:喜忧掺半副图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);VAR4:=SMA(RV,3,1);VAR5:=SMA(VAR4,3,1);DRAWICON(CROSS(VAR4,VAR5) AND VAR5<30,8,1);DRAWICON(CROSS(VAR5,VAR4) AND VAR5>30,93,2);FILLRGN(VAR5>REF(VAR5,1),VAR5,VAR4),COLORRED;FILLRGN(VAR5<REF(VAR5,1),VAR5,VAR4),COLORGREEN;十三:量能副图VAR1:=(HHV(HIGH,13)-LLV(LOW,13));VAR2:=(HHV(HIGH,13)-CLOSE);VAR3:=(CLOSE-LLV(LOW,13));VAR4:=(((VAR2/VAR1)*100)-70);VAR5:=(((CLOSE-LLV(LOW,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),1);VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2);STICKLINE(((VAR12-VAR13)>0),VAR12,VAR13,4,0),COLOR0000FF;STICKLINE(((VAR12-VAR13)<0),VAR12,VAR13,4,0),COLORFF0000;MA11:EMA(VAR13,5);十四:红做多绿做空(副图)N:=5; N1:=21;VAR1:=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),COLORYELLOW,LINETHICK1;VAR2:=8,COLORGREEN,LINETHICK0;小试牛刀: IF(CROSS(VAR1,VAR2),8,0),STICK,COLORRED;DRAWICON(小试牛刀>0,8,4);发现庄迹: IF(VAR1<=8,15,0),STICK,COLORCYAN,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*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);VAR81:=MA(C,9),COLORRED;空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORGREEN;减仓空仓:CROSS(CD6,CD5),COLORGREEN;DRAWICON(减仓空仓>0,113,5);VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;端庄窝:=IF(VAR6A>N1,VAR6A-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;。

博易大师期货软件指标公式源码期货最准的指标真正的主升浪公式源码

博易大师期货软件指标公式源码期货最准的指标真正的主升浪公式源码

LC:=REF(CLOSE,2);RSI1:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100; AH:=HHV(RSI1,8);AL:=LLV(RSI1,8);STO1:=IF(AL=AH,0,100*(RSI1-AL)/(AH-AL));SK:EMA(STO1,5);SD:EMA(SK,3);FILLRGN(SK>SD,SK,SD),COLOR0000E1;FILLRGN(SK<SD,SK,SD),COLOR01EB01;强市线:80,POINTDOT,COLORRED;弱市线:20,POINTDOT,COLORWHITE;分水岭:50,POINTDOT,COLORGREEN;N1:=3;N2:=5;N3:=8;N4:=13;RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100; LWR1:=SMA(RSV,N1,1);LWR2:=SMA(LWR1,N1,1);B1:=LWR1>LWR2;S1:=LWR1<LWR2;RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;K:=SMA(RSV1,N1,1);D:=SMA(K,N1,1);B2:=K>D;S2:=K<D;LCC:=REF(CLOSE,1);RSIC1:=(SMA(MAX(CLOSE-LCC,0),N2,1))/(SMA(ABS(CLOSE-LCC),N2,1))*100;RSIC2:=(SMA(MAX(CLOSE-LCC,0),N4,1))/(SMA(ABS(CLOSE-LCC),N4,1))*100;B3:=RSIC1>RSIC2;S3:=RSIC1<RSIC2;DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);DEA:=EMA(DIFF,N2);B4:=DIFF>DEA;S4:=DIFF<DEA;BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;B5:=CLOSE>BBI;S5:=CLOSE<BBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);B6:=MMS>MMM;S6:=MMS<MMM;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);VB8:=(V3*V5);VB9:=(V4*V5);买盘:=(VB9+VB8);卖盘:=(V6+V7);买卖差:=买盘-卖盘;DDX:=买卖差;DX:=MA(买卖差,5)*20;DDX1:=SMA(DX,3,1);DDX2:=SMA(DDX1,3,1);DDX3:=(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/15;B7:=DDX1>DDX2;S7:=DDX1<DDX2;量:=V;换手:=V/CAPITAL*100;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘1:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),V OL/2));卖盘1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LO W),0-VOL/2));DLX:=(买盘1-(卖盘1))/量*换手;DLX1:=SUM(DLX,6);DLX2:=MA(DLX1,5);B8:=DLX1>DLX2;S8:=DLX1<DLX2;X1:=B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8;X2:=S1 AND S2 AND S3 AND S4 AND S5 AND S6 AND S7 AND S8;IF(X1 ,50,DRAWNULL),COLORRED ,LINETHICK5,POINTDOT;IF(X2 ,50,DRAWNULL),COLORGREEN ,LINETHICK5,POINTDOT;XIAO1:=(REF((LOW+OPEN+CLOSE+HIGH)/4,1));XIAO2:=(SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1));XIAO3:=(EMA(XIAO2,10));XIAO4:=(LLV(LOW,33));XIAO5:=(EMA(IF(LOW<=XIAO4,XIAO3,0),3));STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,3,0 ),COLOR000055;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.6,0 ),COLOR000077;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,2.1,0 ),COLOR000099;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,1.5,0 ),COLOR0000BB;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.9,0 ),COLOR0000DD;STICKLINE(XIAO5>REF(XIAO5,1),0,XIAO5,0.3,0 ),COLOR0000FF;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,3,0),COLORYELLOW;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.6,0),COLORYELLOW;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,2.1,0),COLORYELLOW;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,1.5,0),COLOR00BB00;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.9,0),COLORYELLOW;STICKLINE(XIAO5<REF(XIAO5,1),0,XIAO5,0.3,0),COLORYELLOW;【私募进场】:IF(XIAO5>REF(XIAO5,1),XIAO5,0),COLORYELLOW,NODRAW;【私募洗盘】:IF(XIAO5<REF(XIAO5,1),XIAO5,0),COLORWHITE,NODRAW;。

(完整版)博易大师函数、语法指令与指标公式大全

(完整版)博易大师函数、语法指令与指标公式大全
结算价
取当前周期结算价
注意:该函数适用于期货行情
TURNOVER
成交金额
取当前周期成交金额
V
成交量
取当前周期成交量。同VOL
VOL
成交量
取当前周期成交量。简写为:V
ZBS
成交总笔数
取当前周期成交总笔数
函数
功能
解释
示例
专业财务
扩展数据
数据引用
ALTFILTER(X1,X2)
交换信号过滤
X1与X2信号交替过滤
委买量二
取得动态行情:委买量二
DYNAINFO(43)
委买量三
取得动态行情:委买量三
DYNAINFO(44)
委买量四
取得动态行情:委买量四
DYNAINFO(45)
委买量五
取得动态行情:委买量五
DYNAINFO(51)
委买价一
取得动态行情:委买价一
DYNAINFO(52)
委买价二
取得动态行情:委买价二
权的标的股票。
函数
功能
解释
示例
主力资金
FLZJ(Side,Attr,Index)
主力资金
取由参数指定的分类主力资金数据细项。Side为买卖方向:0-买,1-卖;Attr为资金分层:0-庄单,1-大单,2-中单,3-小单;Index为数据类型:0-累计成交量,1-累计成交金额,2-累计成交笔数。
FLZJ(0,0,0),表示庄单累计买入量。
DYNAINFO(07)
最新价
取得动态行情:最新价
DYNAINFO(08)
总成交量
取得动态行情:总成交量
DYNAINFO(09)
最新成交量
取得动态行情:最新成交量

博易大师指标公式源码

博易大师指标公式源码

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

它引入了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;
上面的源码就是博易大师指标的源码。

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

(完整版)量化经典博易大师指标公式汇总以及源代码集成三

(完整版)量化经典博易大师指标公式汇总以及源代码集成三

DRAWTEXT(CLOSE>上分形AND REF(CLOSE,1)<REF(上分形,1),L博易指标公式(量能多空)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 <DKX) AND (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;V AR1:=(HHV(HIGH,15)-LLV(LOW,15));V AR2:=(HHV(HIGH,15)-CLOSE);V AR3:=(CLOSE-LLV(LOW,15));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),15);V AR13:=EMA(((0.667*REF(V AR12,1))+(0.333*V AR12)),2);MA11:=EMA(VAR13,5);DRAWTEXT(CROSS(V AR12-V AR13,0),L-1,'多');DRAWTEXT(CROSS(0,V AR12-V AR13),H+1,'空');多空参考(副图)V AR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;V AR2:=SMA(V AR1,10,1);慢速:=SMA(VAR2,5,1);RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:=SMA(FATK,3,1);V ARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V ARB:=SMA(V ARA,3,1);V ARC:=SMA(V ARB,3,1);加速: EMA(3*V ARB-2*V ARC,2),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;顶:90,COLORFFA500;大顶:100,COLORWHITE;V AR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;V AR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=V AR11 AND V AR22,LINETHICK2,COLORRED;V AR3:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;卖出:=CROSS(80,V AR4),LINETHICK2,COLORGREEN;V AR5:=CROSS(加速,100);V AR6:=CROSS(加速,-6);V AR7:=CROSS(80,加速);V AR8:=CROSS(加速,6);DRAWTEXT(V AR5,85,'注意顶'),COLORBLUE;DRAWTEXT(V AR6,0,'关注底'),COLORRED;DRAWTEXT(V AR7,95,'空'),COLORGREEN;DRAWTEXT(V AR8,5,'多'),COLORMAGENTA;趋势顶底S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE(顶部,98,103,20,1),COLORRED;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;资金量指标V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR6:=(V AR3+V AR4+V AR5)/3;ZH: EMA(EMA(V AR3,5),5)*3, COLORSTICK;V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR8:=IF(VAR6<=-20,10,0);STICKLINE(V AR8=10,20,10,4,0),COLORRED;V AR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,5,'狮子提醒'),COLORFF00FF; STICKLINE(V AR11 AND COUNT(V AR11,30)=1,1,10,8,0),COLORYELLOW;DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,3,'大资金进入'),COLORFF00FF;机构做空能量线V AR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(V AR1,3,1),LINETHICK2,COLORGREEN;V AR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(V AR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;专业快刀手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),50,0),STICK,COLORRED;DRAWICON(小试牛刀>0,50,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),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2; DRAWICON(果断出击>0,100,4),COLORGREEN;XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00;红持绿空:0,COLORGREEN;中分线: 20;V AR1E:=((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 100;V AR2E:=SMA(SMA(V AR1E,3,1),3,1);V AR3E:=EMA(V AR2E,5);GZ:=3*VAR2E-2*V AR3E;趋势J:EMA(GZ,3),colorgreen,linethick3;partline(趋势J>ref(趋势J,1),趋势J),colorred,linethick3;V AR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;V AR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;副图K线RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:SMA(RSV,3,1);D:SMA(K,3,1);J:=3*K-2*D;100,COLOR00FF00;0,COLORFF00FF;STICKLINE(J>REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),3,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),2,0),COLOR000099;;STICKLINE(J>REF(J,1),J,REF(J,1),1,0),COLOR2F2FF0;STICKLINE(J<REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00;STICKLINE(J<REF(J,1),J,REF(J,1),3,0),COLORFF3300;STICKLINE(J<REF(J,1),J,REF(J,1),1.5,0),COLORFF6600;STICKLINE(J<REF(J,1),J,REF(J,1),0,0),COLORFFAA00;一品操盘STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED;STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN; STICKLINE((C<O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,1),COLORCYAN;压力:HHV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORGREEN;支撑:LLV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORRED;RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;V A1:=SMA(RV,3,1);V A2:=SMA(V A1,3,1);ZZ:=EMA(SMA(RG,3,1),2);XX:=SMA(ZZ,3,1);DRAWICON(CROSS(V A1,V A2) AND CROSS(ZZ,XX),L,1);DRAWICON(CROSS(V A2,V A1) AND CROSS(XX,ZZ),H,2);天机均线均:=(3*C+H+L+O)/6;短线:(8*均+7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF(均,7 ))/36,COLORWHITE,PRECIS0;中线:(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECIS0;无双多空V AR1A:=LLV(LOW,21);V AR2A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 100),5);AK:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB=1),L,'建多'),COLORYELLOW;V AR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);V AR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (V AR3AA>0),91,0);STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED; STICKLINE((C>=O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLORRED; STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN;DRAWTEXT(FILTER((V AR4AA>90),45),L,'★大胆多'),COLOR00FFFF;V AR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;V AR2:=SMA(V AR1,3,1);V AR3:=SMA(V AR2,3,1);V AR5:=CROSS(SMA(V AR2,3,1),SMA(V AR3,3,1)) AND SMA(V AR2,3,1)<20; DRAWTEXT(FILTER(V AR5,10)=1,LOW,'抄底'),COLORYELLOW;V ARA:=LLV(LOW,35);V ARB:=HHV(HIGH,30);V ARC:=EMA((CLOSE-V ARA)/(V ARB-V ARA)*4,4)*25;DRAWTEXT(IF(CROSS(87.5,V ARC),87,0),H,'空'),COLOR00FF00;金山银山DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,CLOSE,OPEN,3,0),COLORRED;STICKLINE(DIFF>DEA,HIGH,LOW,3,0),COLORRED;STICKLINE(DIFF<=DEA,CLOSE,OPEN,3,0),COLORGREEN; STICKLINE(DIFF<=DEA,HIGH,LOW,3,0),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),N);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 1 100 15 )即时趋势副图R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA(( CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1);ZP:IF(R1<7,20,0),COLORGREEN;XG:IF(CROSS(R1,7),38,0),COLORRED;A:95,COLORGREEN;快慢多空主图叠加AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED; STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),COLORGREEN; AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;彩色K线HH:=HHV(HIGH,3);LL:=LLV(LOW,3);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));IF((HH1 < LL1),LL,HH),LINETHICK2,COLORBB0066;IF((HH1 > LL1),HH,LL),LINETHICK2,COLOR1B8800;STICKLINE((HH1 < LL1),CLOSE,OPEN,3,0),COLORRED;STICKLINE((HH1 < LL1),HIGH,LOW,0,0),COLORRED;STICKLINE((HH1 > LL1),CLOSE,OPEN,3,0),COLORFF0000;STICKLINE((HH1 > LL1),HIGH,LOW,0,0),COLORFF0000;DRAWTEXT(CROSS(HH1,LL1),HH,'开空'),COLORYELLOW;DRAWTEXT(CROSS(LL1,HH1),LL,'开多'),COLORFF00FF;。

【史上最全】博易大师指标公式编写教程、指标函数大全、指标代码大全

【史上最全】博易大师指标公式编写教程、指标函数大全、指标代码大全

目录
博易大师指标编写教程 (3)
一、技术指标公式基础 (3)
二、公式的构成 (5)
三、指标公式编写技巧 (6)
四、指标公式编写举例 (8)
博易大师指标函数列表 (13)
一、行情函数 (13)
二、常数函数 (14)
三、时间函数 (15)
四、引用函数 (16)
五、逻辑函数 (17)
六、数学函数 (18)
七、统计函数 (19)
八、指标函数 (20)
九、协方差函数 (21)
十、输出修饰符 (22)
博易大师指标代码大全 (23)
利多方舟 (23)
变色MACD (23)
渔家乐 (24)
仿DDX (24)
king趋势 (25)
无敌趋势 (25)
粉K线 (26)
无敌精灵 (26)
买卖航标 (26)
天风地火 (26)
无影手 (27)
合并即涨 (28)
顶底奇准 (29)
一品操盘 (29)
一品操盘 (30)
★底部提示:副 (31)
博易顶底王 (31)
趋势线(主图) (32)
CCI主图K线 (32)
优化MACD (32)
博易指标公式(量能多空) (33)
多空参考(副图) (33)
趋势顶底 (34)
资金量指标 (35)
机构做空能量线 (35)
专业快刀手 (35)
无双多空 (37)
金山银山 (37)
量能指标 (37)
即时趋势 (38)
快慢多空 (38)
彩色K线 (38)
量能多空 (39)
鳄鱼分形 (39)
多空之王 (40)
博易大师指标代码大全注释 (41)。

博弈大师精准买卖指标

博弈大师精准买卖指标

博弈大师精准买卖指标博易大师指标公式集锦以及编写方法大集合(用时把前面空格删掉)利多方舟VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) /(HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) -LLV(LOW,6))),34));DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(CLOSE*0.95),'↑'),COL OR0000FF;DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.035),'卖'),COLORFFFF34;年:MA(CLOSE,30),COLORGREEN;STICKLINE(C>=年 ANDC>=O,C,O,3,0),COLORRED;STICKLINE(C>=年 ANDC>=O,H,L,0,0),COLORRED;STICKLINE(C>=年 ANDC<o,c,o,3,1),colorred;< bdsfid="96" p=""></o,c,o,3,1),colorred;<>STICKLINE(C>=年 ANDC<o,o,h,0,0),colorred;< bdsfid="99" p=""></o,o,h,0,0),colorred;<>STICKLINE(C>=年 ANDC<o,c,l,0,0),colorred;< bdsfid="102" p=""></o,c,l,0,0),colorred;<>STICKLINE(C<年 ANDC>O,C,O,3,1),COLORFFFF00;STICKLINE(C<年 ANDC<=O,C,O,3,1),COLORFFFF00;STICKLINE(C<年 ANDC<=O,H,L,0,1),COLORFFFF00;STICKLINE(C<年 ANDC>O,C,H,0,1),COLORFFFF00;STICKLINE(C<年 ANDC>O,O,L,0,1),COLORFFFF00;符号↑为"买”变色MACDDIFF:(EMA(CLOSE,12) -EMA(CLOSE,26))*20,COLORFFFFFF,LINETHICK1;DEA:EMA(DIFF,9),COLOR00FFFF,LINETHICK1;MACD:2*(DIFF-DEA), COLORSTICK;MACD1:2*(DIFF-DEA),COLORRED,LINETHICK0;MACD2:SMA(MACD1,0,3),COLORFFFF00,LINETHICK0;STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLOR00FFFF;STICKLINE(MACD1<macd2,0,macd1,1,0),color40ff00;< bdsfid="124" p=""></macd2,0,macd1,1,0),color40ff00;<> S1:=MACD<0;S2:= (MACD>=0);S3:=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:=CROSS(DIFF,DEA) AND S6;L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;变盘:CROSS(L1,L2) ANDL5,LINETHICK0,COLORD6FF9C;STICKLINE(变盘,5,-5,4,1),COLORD6FF9C;成立距今:BARSLAST(CROSS(DIFF,DEA)),LINETHICK0;L6:=BARSCOUNT(CLOSE);DRAWTEXT(CROSS(L1,L2),DIFF,'买'),COLOR0000FF;DRAWTEXT(CROSS(L2,L1),DIFF,'卖'),COLORFFFF00;REF(DEA,S3),POINTDOT,COLORGREEN;IF(L1>L2,REF(DEA,S3),0),POINTDOT,LINETHICK5,COLORB078 FF;IF(MACD<0,REF(DEA,S3),0),POINTDOT,LINETHICK5,COLORG REEN;LS:=IF(DIFF>DEA AND DIFF>0,1,0);加速上扬:IF(REF(LS=0,1) ANDLS=1,0.1,0);XG1:CROSS(MACD1,MACD2) AND MACD1<0,LINETHICK0;XG2:CROSS(DIFF,DEA),LINETHICK0;M1:=MACD>REF(MACD,1) AND DIFF<dea;< bdsfid="154" p=""></dea;<>绿柱短了:M1 AND COUNT(M1,10)=1 ANDC>MA(C,55) AND COUNT(MACD<0,5)>=5,LINETHICK0;DRAWTEXT(绿柱短了,MACD,'绿柱短了'),COLOR00FF80;渔家乐渔家:3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1) ,3,1),LINETHICK2, COLORYELLOW;渔家乐: IF(CROSS(渔家,MA(渔家,10)) AND 渔家<=10,35,0),LINETHICK3 , COLORMAGENTA;渔家出海: IF(CROSS(渔家,MA(渔家,10)) AND 渔家<35,70,0),LINETHICK3 , COLORRED;渔家网: IF(CROSS(MA(渔家,9),渔家) AND 渔家>70,110,72),LINETHICK1 , COLORCYAN;DRAWICON(CROSS(渔家,62),68,1);DRAWICON(CROSS(渔家,72),70,1);DRAWICON(CROSS(渔家,66),72,1);DRAWICON(CROSS(渔家,68),66,1);DRAWICON(CROSS(76,渔家),70,2);DRAWICON(CROSS(68,渔家),84,2);DRAWICON(CROSS(66,渔家),80,2);DRAWICON(CROSS(64,渔家),70,2);准备下网: IF(渔家<=10,30,0),STICK,COLOR8080FF,LINETHICK4;此处下网: IF(CROSS(渔家,10),45,0),STICK,COLORRED,LINETHICK4;DRAWTEXT(此处下网,40,'关注'),COLORYELLOW;准备休渔吧: IF(渔家>=90,70,0),STICK, COLORGREEN;休渔吧: IF(CROSS(84,渔家),100,0),STICK,COLOR77AAFF,LINETHICK5;DRAWTEXT(休渔吧,98,'回家!'),COLOR77AAFF ;水面: 72, COLORCYAN ;网架: 105;水底: 10;渔家2: MA(渔家,9),LINETHICK2 ,COLORFF0000;IF(CROSS(渔家,MA(渔家,6)) AND 渔家2<45,渔家2,0),COLORCCB3E2 ,LINETHICK3 ;仿DDXVOL,VOLSTICK;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:VOL,VOLSTICK;主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<="" bdsfid="192" p="" vol="">主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<="" bdsfid="195" ow),0-vol="" p=""> 增仓减仓: IF(主买>=(ABS(主卖)),主买+主卖,主卖+主买),COLORYELLOW,LINETHICK2;无敌趋势RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;RSV2:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);趋势线:3*SMA(RSV2,5,1)-2*SMA(SMA(RSV2,5,1),3,1),LINETHICK2,COLORFF84FF;K:SMA(RSV2,3,1),LINETHICK2,COLORWHITE;D:SMA(K,3,1),LINETHICK2,COLORF408F4;DI:IF(趋势线<=10,30,0),LINETHICK2,COLORYELLOW;KI:IF(CROSS(J2,J1) ANDJ2>85,70,100),LINETHICK2,COLOR00FF00;强弱界线:49,POINTDOT,LINETHICK3,COLOR99AACC;STICKLINE(趋势线>88,100,趋势线,4,1),COLORGREEN;STICKLINE(趋势线<=10,0,趋势线,4,1),COLORYELLOW;STICKLINE(COUNT(趋势线<=""><10,2)=2,0,20,4,0),COLORRED;STICKLINE(CROSS(J2,J1) ANDJ2>85,100,80,4,0),COLORGREEN;DRAWICON(CROSS(趋势线,49),趋势线,1),COLORRED;DRAWICON(FILTER(CROSS(D,K) AND D>88,10),D*1.05,2);DRAWTEXT(CROSS(趋势线,49),47,'转强'),COLORRED;DRAWTEXT(CROSS(49,趋势线),52,'转弱'),COLORGREEN;无敌精灵空方:=(EMA(CLOSE,24)-EMA(CLOSE,4))/2*0.95;0;多方:=(EMA(CLOSE,4)-EMA(CLOSE,24))/2*0.95;多头:多方,COLORYELLOW;空头:空方,,COLORFFFF00;引路精灵:(多方-空方),COLORRED,LINETHICK2;STICKLINE(多方>空方 ,0,多方 ,0.8 , 1),COLOREEAAFE;STICKLINE(空方>多方 ,0,空方 ,0.8 , 1),COLORFFFF00;STICKLINE(多方>空方 ,0 ,空方 ,0.8 , 1),COLOREEAAFE;STICKLINE(空方>多方,0 ,多方 ,0.8 , 1),COLORFFFF00;DRAWICON(CROSS(引路精灵 ,0 ) ,引路精灵+0.3,1 );买卖航标VAR1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;操盘线:SMA(VAR1,5,1),LINETHICK2,COLORRED;趋势线:SMA(操盘线,3,1),LINETHICK2,COLORYELLOW;买入航标:IF(CROSS(操盘线,趋势线) AND 趋势线<25,50,0),LINETHICK2,COLORRED;DRAWTEXT(买入航标>0,50,'买入'),LINETHICK1,COLORRED;卖出时间:IF(CROSS(趋势线,操盘线)AND操盘线>70,80,100),COLORGREEN;DRAWTEXT(卖出时间<100,80,'卖出'),LINETHICK1,COLOR00FF00;天风地火{天风地火 N:1 100 3 M:1 100 30}VAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;多头线:(20*VAR0+19*REF(VAR0,1)+18*REF(VAR0,2)+17*REF(VAR 0,3)+16*REF(VAR0,4)+15*REF(VAR0,5)+14*REF(VAR0,6)+13*REF(VAR0,7)+12*REF(VAR0,8)+11 *REF(VAR0,9)+10*REF(VAR0,10)+9*REF(VAR0,11)+8*REF(VAR0,12)+7*REF(VAR0,13)+6*RE F(VAR0,14)+5*REF(VAR0,15)+4*REF(VAR0,16)+3*REF(VAR0,17)+2*REF(VAR0,18)+REF(VAR 0,20))/210,CIRCLEDOT,C OLORRED,LINETHICK2;空头线: MA(多头线,10),CIRCLEDOT,COLORGREEN,LINETHICK2;STICKLINE(多头线>空头线,多头线,空头线,10,10),COLORRED;STICKLINE(多头线<空头线,多头线,空头线,10,10), COLORGREEN;STICKLINE(C>O,O,C,7,0),COLORRED;STICKLINE(C>O,O,C,4,0),COLORB0B0FF;STICKLINE(C>O,O,C,2,0),COLORYELLOW;STICKLINE(C>O,L,H,0.1,0),COLORYELLOW;STICKLINE(C< O,O,C,7,0),COLORFF2020;STICKLINE(C< O,O,C,4,0),COLORFF6600;STICKLINE(C< O,O,C,2,0),COLORFFCC66;STICKLINE(C< O,L,H,0.1,0),COLORFFCC66;STICKLINE(C=OANDC>=REF(C,1),O,C,7,0),COLORRED;STICKLINE(C=OANDC>=REF(C,1),O,C,4,0),COLORB0B0FF;STICKLINE(C=OANDC>=REF(C,1),O,C,2,0),COLORYELLOW;STICKLINE(C=OANDC>=REF(C,1),L,H,0.1,0),COLORYELLOW;STICKLINE(C=O ANDC<ref(c,1),o,c,7,0),colorff2020;< bdsfid="266" p=""></ref(c,1),o,c,7,0),colorff2020;<>STICKLINE(C=O ANDC<ref(c,1),o,c,4,0),colorff6600;< bdsfid="269" p=""></ref(c,1),o,c,4,0),colorff6600;<>STICKLINE(C=O ANDC<ref(c,1),o,c,2,0),colorffcc66;< bdsfid="272" p=""></ref(c,1),o,c,2,0),colorffcc66;<>STICKLINE(C=O ANDC<ref(c,1),l,h,0.1,0),colorffcc66;< bdsfid="275" p=""></ref(c,1),l,h,0.1,0),colorffcc66;<>VAR1:=(CLOSE*1.1)-(CLOSE*0.9)*80顶底奇准买:=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)>=5AND WR>90;跑:=COUNT(WR>60,7)>=5AND CROSS(80,WR);慌:WR<=10AND WR>0,POINTDOT,COLOR00FF00;绝:WR=0,POINTDOT,COLORFF6600;买:REF(WR,1)<10AND C>REF(C,1) AND C>O,POINTDOT,COLORWHITE;攻:WR>=90AND WR<100 OR (H=HHV(H,5) AND H/REF(C,1)>=1.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) ANDC>O;助涨:(涨 OR 强) AND FLSZ,POINTDOT,COLORFF00FF;DRAWICON(优选=100,50,1);{以下设置副图显示方式}STICKLINE(WR>=50,50,WR,1,0),COLORWHITE;STICKLINE(WR>=90 ANDWR<100,100,95,4,0),COLORWHITE;STICKLINE(WR=100,100,95,4,0),COLORFF00FF;STICKLINE(WR<=10 ANDWR>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 andc>o;Var6:=(2*CLOSE+HIGH+LOW)/4;Var7:=LLV(LOW,13);Var8:=HHV(HIGH,13);Var9:=EMA((Var6-Var7)/(Var8-Var7)*100,13);VarA:=EMA(0.667*REF(Var9,1)+0.333*Var9,2);多:Var9,COLORRED,POINTDOT;空:EMA(0.382*REF(Var9,2)+0.618*Var9,12),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;趋势线(主图)AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416; STICKLINE(BB10>1 AND AA10>REF(AA10,1),AA10,REF(AA10,1),8,0),COLORRED;STICKLINE(BB10<1 ANDAA10<="" bdsfid="396" p="">AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416; STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW; STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;变色主图线O1:=MA(C,O), LINETHICK1;N1:=MA(C,21), LINETHICK1;M2:MA(C,55),COLOR0080FF;PARTLINE(N1>M2,M2),COLORRED,LINETHICK2;PARTLINE(N1<=M2,M2),COLORGREEN,LINETHICK2;CCI主图K线TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));STICKLINE(CCI>=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),COLORCYAN;STICKLINE(CCI<0,C,L,0.1,0),COLORCYAN;DRAWTEXT(CROSS(CCI,-200) ANDCCI>REF(CCI,1),L,'平空'),COLORGREEN;DRAWTEXT(CROSS(200,CCI) ANDCCI<ref(cci,1),h,'平多'),coloryellow;< bdsfid="420" p=""></ref(cci,1),h,'平多'),coloryellow;<>DRAWTEXT(CROSS(CCI,100) ANDCCI>REF(CCI,1),L,'加多'),COLORYELLOW;DRAWTEXT(CROSS(-100,CCI) ANDCCI<ref(cci,1),h,'加空'),colorgreen< bdsfid="425" p=""></ref(cci,1),h,'加空'),colorgreen<>多空参考(副图)VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:=SMA(VAR2,5,1);RSV:=((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:=SMA(FATK,3,1);VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速:EMA(3*VARB-2*VARC,2),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;顶:90,COLORFFA500;大顶:100,COLORWHITE;VAR11:=LLV(LOW,5)=LLV(LOW,45) ANDCLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 ANDVAR22,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),LINETHICK2,COLORGREEN;VAR5:=CROSS(加速,100);VAR6:=CROSS(加速,-6);VAR7:=CROSS(80,加速);VAR8:=CROSS(加速,6);DRAWTEXT(VAR5,85,'注意顶'),COLORBLUE;DRAWTEXT(VAR6,0,'关注底'),COLORRED;DRAWTEXT(VAR7,95,'空'),COLORGREEN;DRAWTEXT(VAR8,5,'多'),COLORMAGENTA;资金量指标VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR6:=(VAR3+VAR4+VAR5)/3;ZH: EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR8:=IF(VAR6<=-20,10,0);STICKLINE(VAR8=10,20,10,4,0),COLORRED;VAR11:=VARF<="" bdsfid="471" p="">VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,5,'狮子提醒'),COLORFF00FF;STICKLINE(VAR11 ANDCOUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,3,'大资金进入'),COLORFF00FF;机构做空能量线VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:SMA(VAR1,3,1),LINETHICK2,COLORGREEN;VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线:SMA(VAR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;专业快刀手N1:=21;VAR1:=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),COLORYEL LOW,LINETHICK1;VAR2:=8,COLORGREEN,LINETHICK0;小试牛刀:IF(CROSS(VAR1,VAR2),50,0),STICK,COLORRED;DRAWICON(小试牛刀>0,50,4);发现庄迹:IF(VAR1<=8,15,0),STICK,COLORCYAN,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*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);VAR81:=MA(C,9),COLORRED;空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORGREEN;减仓空仓:CROSS(CD6,CD5),COLORGREEN;DRAWICON(减仓空仓>0,113,5);VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;端庄窝:=IF(VAR6A>N1,VAR6A-N1,0),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2; DRAWICON(果断出击>0,100,4),COLORGREEN;XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00;红持绿空:0,COLORGREEN;中分线: 20;VAR1E:=((CLOSE - LLV(LOW,20)) /(HHV(HIGH,20) - LLV(LOW,20))) * 100;VAR2E:=SMA(SMA(VAR1E,3,1),3,1);VAR3E:=EMA(VAR2E,5);GZ:=3*VAR2E-2*VAR3E;趋势J:EMA(GZ,3),colorgreen,linethick3;partline(趋势J>ref(趋势J,1),趋势J),colorred,linethick3;VAR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;天机均线均:=(3*C+H+L+O)/6;短线:(8*均+7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF(均,7))/36,COLORWHITE,PRECIS0;中线:(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECIS0;金山银山DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,CLOSE,OPEN,3,0),COLORRED;STICKLINE(DIFF>DEA,HIGH,LOW,3,0),COLORRED;STICKLINE(DIFF<=DEA,CLOSE,OPEN,3,0),COLORGREEN;STICKLINE(DIFF<=DEA,HIGH,LOW,3,0),COLORGREEN;量能指标VAR1:=(HHV(HIGH,13)-LLV(LOW,13));VAR2:=(HHV(HIGH,13)-CLOSE);VAR3:=(CLOSE-LLV(LOW,13));VAR4:=(((VAR2/VAR1)*100)-70);VAR5:=(((CLOSE-LLV(LOW,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),N);VAR13:=EMA(((0.667*REF(VAR12,1))+(0.333*VAR12)),2);STICKLINE(((VAR12-VAR13)>0),VAR12,VAR13,4,0),COLOR0000FF;STICKLINE(((VAR12-VAR13)<0),VAR12,VAR13,4,0),COLORFF0000;MA11:EMA(VAR13,5);(N 1100 15 )即时趋势副图R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA((CL OSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1);ZP:IF(R1<7,20,0),COLORGREEN;XG:IF(CROSS(R1,7),38,0),COLORRED;A:95,COLORGREEN;快慢多空主图叠加AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 ANDAA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED;STICKLINE(BB10<1 ANDAA10<="" bdsfid="581" p="">AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;彩色K线HH:=HHV(HIGH,3);LL:=LLV(LOW,3);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));IF((HH1 <LL1),LL,HH),LINETHICK2,COLORBB0066;IF((HH1 >LL1),HH,LL),LINETHICK2,COLOR1B8800;STICKLINE((HH1 <LL1),CLOSE,OPEN,3,0),COLORRED;STICKLINE((HH1 <LL1),HIGH,LOW,0,0),COLORRED;STICKLINE((HH1 >LL1),CLOSE,OPEN,3,0),COLORFF0000;STICKLINE((HH1 >LL1),HIGH,LOW,0,0),COLORFF0000;DRAWTEXT(CROSS(HH1,LL1),HH,'开空'),COLORYELLOW; DRAWTEXT(CROSS(LL1,HH1),LL,'开多'),COLORFF00FF;鳄鱼分形主图叠加Y:=(HIGH+LOW)/2;上唇:SMA(Y,5,1),COLORGREEN;牙齿:SMA(Y,8,1),COLORRED;下鄂:SMA(Y,13,1),COLORFF6600;{分形- 没有未来函数}KU1:=IF(HIGH=HHV(HIGH,3),1,0);KD1:=IF( LOW=LLV( LOW,3),1,0);UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 ANDKU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1AND REF(KU1,1)=0 AND KU1=0)));DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 ANDKD1=0,REF(LOW,2), REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));上分形:IF(HIGH>=MA(CLOSE,3),UL,REF(UL,BARSLAST(HIGH>MA( CLOSE,3)))),LINETHICK0,COLO RMAGENTA;{分形数字} 下分形:IF(LOW<=MA(CLOSE,3),DL,REF(DL,BARSLAST(LOW<=MA(CLO SE,3)))),LINETHICK0,COLORYELLOW ;STICKLINE(BARSLAST(ABS(上分形-REF(上分形,1)))上分形 AND REF(CLOSE,1)<barslast(closeREF(下分形,1)),下分形,下分形,4,1),COLORYELLOW;DRAWTEXT(CLOSE>上分形AND REF(CLOSE,1)<ref(上分形,1),low,'买< bdsfid="626" p=""></ref(上分形,1),low,'买<> '),COLORFF00FF;{箭头突破分形}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) ANDAC>REF(AC,1),COLORRED;VG:=AO<="" bdsfid="636" p="">AC<ref(ac,1),colorgreen;< bdsfid="638" p=""></ref(ac,1),colorgreen;<>VH:=AO>REF(AO,1) ANDAC<ref(ac,1),colorgray;< bdsfid="641" p=""></ref(ac,1),colorgray;<>VI:=AOREF(AC,1),COLORGRAY;VJ:=VH OR VI;STICKLINE(VF ANDCLOSE>OPEN,CLOSE,OPEN,4,1),COLORRED; STICKLINE(VF ANDCLOSE<=OPEN,CLOSE,OPEN,4,0),COLORRED; STICKLINE(VF,HIGH,LOW,1,0),COLORRED;。

博易大师指标公式 期货指标源码 文华软件指标公式

博易大师指标公式 期货指标源码 文华软件指标公式

X_35:=MAX(X_34,0);X_36:=ABS(X_34);X_37:=SMA(X_35,7,1)/SMA(X_36,7,1)*100;X_38:=SMA(X_35,13,1)/SMA(X_36,13,1)*100;X_39:=BARSCOUNT(CLOSE);X_40:=SMA(MAX(X_34,0),6,1)/SMA(ABS(X_34),6,1)*100;X_41:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; X_42:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;DRAWICON(BU,L-0.1,1);DRAWICON(SEL,H+0.1,2);STICKLINE1(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;STICKLINE1(买线>=卖线,CLOSE,OPEN,3,1),COLORRED;STICKLINE1(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE1(买线<卖线,CLOSE,OPEN,3,1),COLORGREEN;散户:EMA(CLOSE,5),COLORWHITE;操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;界点:MA(CLOSE,20),COLORMAGENTA;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;顶:REFX1(高1,10000),COLORRED;一0.809:REFX1(H1,10000),COLORYELLOW;二0.618:REFX1(H2,10000),COLORMAGENTA;三0.500:REFX1(H3,10000),COLORWHITE;四0.382:REFX1(H4,10000),COLORGREEN;五0.191:REFX1(H5,10000),COLORYELLOW;低:REFX1(低1,10000),COLORRED;CAPITAL:=GETPRICE1('流通股本');DRAWICON(C<MA(C,250) AND C>MA(C,10) AND REF(C,1)<REF(O,1)*0.97 AND C/O>1.03 AND MACD:=2*(DIFF-DEA),COLORSTICK;N:=BARSLAST(CROSS(DIFF,DEA))+1;M:=BARSLAST(CROSSDOWN(DIFF,DEA))+1;DRAWCOLORLINE(N<M,DIFF,COLORRED,COLORBLUE),LINETHICK4;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,10,0),COLORRED;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,8,0),COLORRED;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,4,0),COLORRED;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLORRED;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,0,0),COLORRED;多头庄家:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,10,0),COLORRED;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,8,0),COLORRED;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,4,0),COLORRED; STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLORRED; STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,0.3,0),COLORRED;。

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

DRAWTEXT(CLOSE>上分形AND REF(CLOSE,1)<REF(上分形,1),L博易指标公式(量能多空)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 <DKX) AND (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;V AR1:=(HHV(HIGH,15)-LLV(LOW,15));V AR2:=(HHV(HIGH,15)-CLOSE);V AR3:=(CLOSE-LLV(LOW,15));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),15);V AR13:=EMA(((0.667*REF(V AR12,1))+(0.333*V AR12)),2);MA11:=EMA(VAR13,5);DRAWTEXT(CROSS(V AR12-V AR13,0),L-1,'多');DRAWTEXT(CROSS(0,V AR12-V AR13),H+1,'空');多空参考(副图)V AR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;V AR2:=SMA(V AR1,10,1);慢速:=SMA(VAR2,5,1);RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:=SMA(FATK,3,1);V ARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V ARB:=SMA(V ARA,3,1);V ARC:=SMA(V ARB,3,1);加速: EMA(3*V ARB-2*V ARC,2),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;顶:90,COLORFFA500;大顶:100,COLORWHITE;V AR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;V AR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=V AR11 AND V AR22,LINETHICK2,COLORRED;V AR3:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;卖出:=CROSS(80,V AR4),LINETHICK2,COLORGREEN;V AR5:=CROSS(加速,100);V AR6:=CROSS(加速,-6);V AR7:=CROSS(80,加速);V AR8:=CROSS(加速,6);DRAWTEXT(V AR5,85,'注意顶'),COLORBLUE;DRAWTEXT(V AR6,0,'关注底'),COLORRED;DRAWTEXT(V AR7,95,'空'),COLORGREEN;DRAWTEXT(V AR8,5,'多'),COLORMAGENTA;趋势顶底S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2; 长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE(顶部,98,103,20,1),COLORRED;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;资金量指标V ARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;V AR6:=(V AR3+V AR4+V AR5)/3;ZH: EMA(EMA(V AR3,5),5)*3, COLORSTICK;V AR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);V AR8:=IF(VAR6<=-20,10,0);STICKLINE(V AR8=10,20,10,4,0),COLORRED;V AR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,5,'狮子提醒'),COLORFF00FF; STICKLINE(V AR11 AND COUNT(VAR11,30)=1,1,10,8,0),COLORYELLOW;DRAWTEXT(V AR11 AND COUNT(V AR11,30)=1,3,'大资金进入'),COLORFF00FF;机构做空能量线V AR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线: SMA(V AR1,3,1),LINETHICK2,COLORGREEN;V AR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;机构做多能量线: SMA(V AR2,5,1)-8,LINETHICK2,COLORRED;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;专业快刀手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),50,0),STICK,COLORRED;DRAWICON(小试牛刀>0,50,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),COLORLIRED;果断出击:IF(CROSS(端庄窝,0.01),100,0),STICK,COLORGREEN,LINETHICK2; DRAWICON(果断出击>0,100,4),COLORGREEN;XG:=CROSS(端庄窝,0.01);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;E:=CROSS(83,RSI);STICKLINE(REF(端庄窝,1)<端庄窝,端庄窝,REF(端庄窝,1),3,0),COLORRED; STICKLINE(REF(端庄窝,1)>端庄窝,端庄窝,REF(端庄窝,1),3,0),COLOR00FF00;红持绿空:0,COLORGREEN;中分线: 20;V AR1E:=((CLOSE - LLV(LOW,20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 100;V AR2E:=SMA(SMA(V AR1E,3,1),3,1);V AR3E:=EMA(V AR2E,5);GZ:=3*VAR2E-2*V AR3E;趋势J:EMA(GZ,3),colorgreen,linethick3;partline(趋势J>ref(趋势J,1),趋势J),colorred,linethick3;V AR37:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;V AR38:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;V AR39:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;副图K线RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:SMA(RSV,3,1);D:SMA(K,3,1);J:=3*K-2*D;100,COLOR00FF00;0,COLORFF00FF;STICKLINE(J>REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),3,0),COLORRED;STICKLINE(J>REF(J,1),J,REF(J,1),2,0),COLOR000099;;STICKLINE(J>REF(J,1),J,REF(J,1),1,0),COLOR2F2FF0;STICKLINE(J<REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00;STICKLINE(J<REF(J,1),J,REF(J,1),3,0),COLORFF3300;STICKLINE(J<REF(J,1),J,REF(J,1),1.5,0),COLORFF6600;STICKLINE(J<REF(J,1),J,REF(J,1),0,0),COLORFFAA00;一品操盘STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED;STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN; STICKLINE((C<O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,1),COLORCYAN;压力:HHV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORGREEN;支撑:LLV(MA((LOW+HIGH+CLOSE)/3,1),34),LINETHICK2,COLORRED;RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;V A1:=SMA(RV,3,1);V A2:=SMA(V A1,3,1);ZZ:=EMA(SMA(RG,3,1),2);XX:=SMA(ZZ,3,1);DRAWICON(CROSS(V A1,V A2) AND CROSS(ZZ,XX),L,1);DRAWICON(CROSS(V A2,V A1) AND CROSS(XX,ZZ),H,2);天机均线均:=(3*C+H+L+O)/6;短线:(8*均+7*REF(均,1)+6*REF(均,2)+5*REF(均,3)+4*REF(均,4)+3*REF(均,5)+2*REF(均,6)+REF(均,7 ))/36,COLORWHITE,PRECIS0;中线:(LLV(短线,3)+LLV(短线,5)+LLV(短线,8))/3,COLORYELLOW,PRECIS0;无双多空V AR1A:=LLV(LOW,21);V AR2A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 100),5);AK:=EMA((((CLOSE - V AR1A) / (V AR2A - V AR1A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB=1),L,'建多'),COLORYELLOW;V AR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);V AR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (V AR3AA>0),91,0);STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED; STICKLINE((C>=O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLORRED; STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN;DRAWTEXT(FILTER((V AR4AA>90),45),L,'★大胆多'),COLOR00FFFF;V AR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;V AR2:=SMA(V AR1,3,1);V AR3:=SMA(V AR2,3,1);V AR5:=CROSS(SMA(V AR2,3,1),SMA(V AR3,3,1)) AND SMA(V AR2,3,1)<20; DRAWTEXT(FILTER(V AR5,10)=1,LOW,'抄底'),COLORYELLOW;V ARA:=LLV(LOW,35);V ARB:=HHV(HIGH,30);V ARC:=EMA((CLOSE-V ARA)/(V ARB-V ARA)*4,4)*25;DRAWTEXT(IF(CROSS(87.5,V ARC),87,0),H,'空'),COLOR00FF00;金山银山DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,CLOSE,OPEN,3,0),COLORRED;STICKLINE(DIFF>DEA,HIGH,LOW,3,0),COLORRED;STICKLINE(DIFF<=DEA,CLOSE,OPEN,3,0),COLORGREEN; STICKLINE(DIFF<=DEA,HIGH,LOW,3,0),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),N);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 1 100 15 )即时趋势副图R1:3*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1)-2*SMA(SMA(( CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3,1),2,1);ZP:IF(R1<7,20,0),COLORGREEN;XG:IF(CROSS(R1,7),38,0),COLORRED;A:95,COLORGREEN;快慢多空主图叠加AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED; STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),COLORGREEN; AA20:=MA(C,20);BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;彩色K线HH:=HHV(HIGH,3);LL:=LLV(LOW,3);HH1:=BARSLAST((HH > REF(HH,1)));LL1:=BARSLAST((LL < REF(LL,1)));IF((HH1 < LL1),LL,HH),LINETHICK2,COLORBB0066;IF((HH1 > LL1),HH,LL),LINETHICK2,COLOR1B8800;STICKLINE((HH1 < LL1),CLOSE,OPEN,3,0),COLORRED;STICKLINE((HH1 < LL1),HIGH,LOW,0,0),COLORRED;STICKLINE((HH1 > LL1),CLOSE,OPEN,3,0),COLORFF0000;STICKLINE((HH1 > LL1),HIGH,LOW,0,0),COLORFF0000;DRAWTEXT(CROSS(HH1,LL1),HH,'开空'),COLORYELLOW;DRAWTEXT(CROSS(LL1,HH1),LL,'开多'),COLORFF00FF;。

相关文档
最新文档