博易大师自编指标 博易大师期货指标源码



QQ315078100的分享

分享

博易大师自编指标

MA5:MA(C,5);

MA10 :MA(CLOSE,10);

MA60 : MA(CLOSE,60);

GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));

GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));

GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));

GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));

BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;

BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;

BAIJIN3:=GJTJ1>60 AND GJTJ4>70;

DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'金');

-----------------------------------------------------------------------------

工作线:EMA(C,14),COLOR00FFFF,LINETHICK1;

一号线:EMA(CLOSE,144),POINTDOT,LINETHICK2,COLOR0000FF;

二号线:EMA(C,25),COLORWHITE,LINETHICK2;

三号线:EMA(C,318),COLOR0000FF,LINETHICK2;

四黑马线:EMA(C,453),CIRCLEDOT,LINETHICK1,COLOR428899;

五号线:EMA(C,550),COLORFFCC66;

六号线:EMA(C,610),LINETHICK2,COLORYELLOW;

七号线:EMA(C,730),COLORBLUE;

八号线:EMA(C,99),POINTDOT,LINETHICK2,COLORWHITE;

DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),COLORWHITE;

DEA:=EMA(DIFF,9),COLORF00FF0 ;

MACD:=0.90*(DIFF-DEA), COLORSTICK;

TJ:=(DIFF>=DEA);

TJ1:=(DIFF>=0);

{STICKLINE(TJ,H,L,0,0),COLORYELLOW;}

STICKLINE(TJ,O,C,3,1),COLORYELLOW;

STICKLINE(TJ1 AND TJ,H,L,0,0),COLORF00FF0;

STICKLINE(TJ1 AND TJ,O,C,3,1),COLORF00FF0;

STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;

STICKLINE(DIFF<DEA,O,C,3,0),COLORF0F000;

VAR1:=(CLOSE*2+HIGH+LOW)/4;

SK:= EMA(VAR1,13)-EMA(VAR1,73);

SD:= EMA(SK,2);

{DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORRED;}

{STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;}

STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,3,0),COLORRED;

SS:=CROSS(二号线,八号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98

OR CROSS(二号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98

OR CROSS(二号线,一号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(二号线,三号线);

DRAWICON(SS,L-0.04,1);

DD:=CROSS(八号线,一号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98

OR CROSS(八号线,四黑马线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98

OR CROSS(八号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98

OR CROSS(八号线,三号线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(二号线,四黑马线);

{DD:=CROSS(二号线,四黑马线);};

-----------------------------------------------------------------

2副主图

-----------------------------------------

VARA:=LLV(LOW,35);

VARB:=HHV(HIGH,30);

VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;

QS: VARC,COLORWHITE;

STICKLINE(VARC<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,0,25,4,0),COLORYELLOW;

STICKLINE(VARC>90,100,85,4,0),COLORRED;

VARD:=87.5;

VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;

DRAWTEXT(IF(CROSS(QS,VARD) AND VARE=100,50,0),56,'目标');

DRAWTEXT(IF(CROSS(VARD,QS),87,0),85,'跑');

DRAWTEXT(IF(CROSS(QS,VARE) AND QS>87,87,0),70,'卖');

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR8:=LLV(LOW,30);

VARAA:=HHV(HIGH,30);

B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);

B1:=EMA(B,5);

STICKLINE(B>0 AND B-B1>=0,79,80,4,0),COLORWHITE;

STICKLINE(B>0 AND B-B1<0,79,80,4,0),COLORCYAN;

STICKLINE(B>0 AND B-B1>=0,49,50,4,0),COLORRED;

STICKLINE(B>0 AND B-B1<0,49,50,4,0),COLORRED;

STICKLINE(B>0 AND B-B1>=0,19,20,4,0),COLORWHITE;

STICKLINE(B>0 AND B-B1<0,19,20,4,0),COLORCYAN;

STICKLINE(B-B1>0,B,B1,4,1),COLORRED;

STICKLINE(B-B1<0,B,B1,4,1),COLORWHITE;

V1:=(2*CLOSE+HIGH+LOW)/4; V2:=LLV(LOW,21);

VA:=HHV(HIGH,34);

FB:=EMA((V1-V2)/(VA-V2)*100,13);

FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);

ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;

-------------------------------------------------------------------------

优化MACD

-----------------------------------------------

AB1:=EMA(C,2)-EMA(C,89);

AB2:=EMA(AB1,30);

AB3:=2*(AB1-AB2)*9.8;

AB4:=POW(AB3,3)*0.1+POW(AB3,2);

轨迹:IF(AB3>0.015,AB4,0.28)/28,LINETHICK2,COLORRED;

STICKLINE(轨迹>REF(轨迹,1),0,轨迹,0.5,0);

-------------------------

开空提示,副图

-------------------

D1:EMA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5);

D2:REF(D1,1);

STICKLINE(D1>=REF(D1,1),D1,D2,3,0),COLORRED;

STICKLINE(D1<REF(D1,1),D1,D2,3,0),COLORGREEN;

底:10,COLORCYAN;

顶:80,COLORBLUE;

抄底:IF(CROSS(D1,D2) AND D2<底,30,0),LINETHICK2,COLORRED;

----------------------------------------------

波段提示

---------------------------------------------------------

顶:=85;

中:=50;

底:=20;HHV(HIGH,34);

AA:= VARA*2;

BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13);

VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);

CC:SMA(VAR5,20,1),COLORRED;

CC1:SMA(CC,5,1),COLORGREEN;

STICKLINE(CC>CC1,CC,CC1,1,0),COLORRED;

STICKLINE(CC1>CC,CC,CC1,1,0),COLORGREEN;

出击:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0),COLORRED;

{跑}

DRAWICON(CC < REF(CC,1) AND REF(CC,1) < REF(CC,2) AND CC > CC1,100,2);

--------------------------------------

波段优化

-----------------------------

波段线: 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),LINETHICK2,COLORRED;

M1:=EMA(MA(波段线,5),3);

STICKLINE(波段线>108 AND 波段线>=M1,波段线,108,2,0),COLORF0F000;

STICKLINE(波段线<0 AND 波段线<M1,波段线,0,2,0),COLORF00FF0;

底部线: 5,COLOR00FFFF;

风险线: 108,COLORFF9D00;

模仿质变主图,

AA05:=MA(C,5),COLOR0099CC;

五日乖离率:=(C-AA05)/AA05*100;

BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;

速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);

加速度5:=EMA((速度5-REF(速度5,1)),3),LINETHICK2;

AA10:=MA(C,10);

AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;

AA30:=MA(C,30);

三拾日乖离率:=(C-AA30)/AA30*100;

VAR11:=(AA20-AA30)>REF((AA20-AA30),1)

AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);

VAR22:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND

AA30<REF(AA30,1);

BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;

强势狙击:=FILTER(BB30>30 AND BB10>45 AND

CROSS(BB05,60),10);

加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND

AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND

AA10>REF(AA10,1)

AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;

清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND

AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND

AA10<REF(AA10,1),10);

DRAWICON(加仓 ,LOW*0.99,23);

DRAWICON(清仓 ,HIGH*1.01,15);

DRAWICON(强势狙击 ,LOW*0.99,13);

TYP := (HIGH + LOW + CLOSE)/3;

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));

差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));

差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));

差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));

差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));

差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;

AAA:=(3*C+H+L+O)/6;

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;

短线:VAR1,COLORWHITE;

中线:VAR6,COLORYELLOW;

下跌:=IF(VAR1=VAR6,VAR6, 0),POINTDOT,COLORGREEN;

TJ1:= CCI1>差值4;

立桩量:=FILTER(TJ1,0);

TJ2:=IF(BARSLAST(立桩量)=1 ,1,IF(BARSLAST(立桩量)=2 ,1,

IF(BARSLAST(立桩量)=3 ,1,0)));

成立1:=TJ2;

条件成立1:=FILTER(成立1,5);

TJ11:= CCI1<-差值4 ;

立桩量2:=FILTER(TJ11,0);

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,

IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,

IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));

成立2:=TJ22;

条件成立2:=FILTER(成立2,5);

TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))

OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);

立桩量3:=FILTER(TJ111,5);

TJ222:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(HIGH,3),1,0)));

突破3:=TJ222=1;

STICKLINE(CLOSE AND 下跌= VAR6,REF(HIGH,BARSLAST(立桩量3)),

REF(HIGH,BARSLAST(立桩量3)),10,1),COLORCYAN;

STICKLINE(CLOSE AND 下跌= VAR6,REF(LOW,BARSLAST(立桩量3)),

REF(LOW,BARSLAST(立桩量3)),10,1),COLORYELLOW;

TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));

三天法则:=TJ3=1;

成立:=三天法则 AND 突破3;

条件成立:=FILTER(成立,5);

TJ31:=(VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1);

TJ32:=FILTER(TJ31,1);

{IF(条件成立 AND 下跌= VAR6 AND AA30>=REF(AA30,1),H*1.03,0),POINTDOT,CROSSDOT,LINETHICK6,COLORFF33FF;

IF(条件成立 AND 下跌= VAR6 AND AA30>=REF(AA30,1),H*1.03,0),POINTDOT,LINETHICK4,COLOR00CCFF;}

STICKLINE(C>=O,L,H,0,0),COLORRED;

STICKLINE(C<O,L,H,0,0),COLORFFFF00;

STICKLINE(C>O,C,O,3.2,0),COLORRED;

STICKLINE(1,C,O,2.8,0),COLOR454500;

STICKLINE(1,C,O,2,0),COLOR555500;

STICKLINE(1,C,O,1.5,0),COLOR656500;

STICKLINE(1,C,O,1,0),COLOR757500;

STICKLINE(1,C,O,0.5,0),COLOR858500;

STICKLINE(立桩量,C,O,2.8,0),COLOR000045;

STICKLINE(立桩量,C,O,2.8,0),COLOR000065;

STICKLINE(立桩量,C,O,2,0),COLOR000085;

STICKLINE(立桩量,C,O,1.5,0),COLOR0000A5;

STICKLINE(立桩量,C,O,1,0),COLOR0000C5;

STICKLINE(立桩量,C,O,0.5,0),COLOR0000E5;

 

 

博易公式

 

VAR2:=485;

VAR3:=222;

VAR4:=96;

VAR5:=MA(HHV(HIGH,VAR2),17);

VAR6:=MA(HHV(HIGH,VAR3),17);

博易大师自编指标 博易大师期货指标源码
VAR7:=MA(HHV(HIGH,VAR4),17);

VAR8:=MA(LLV(LOW,VAR2),17);

VAR9:=MA(LLV(LOW,VAR3),17);

VARA:=MA(LLV(LOW,VAR4),17);

VARB:=MA((VAR8*0.96+VAR9*0.96+VARA*0.96+VAR5*0.558+VAR6*0.558+VAR7*0.558)/6,17);

VARC:=MA((VAR8*1.25+VAR9*1.23+VARA*1.2+VAR5*0.55+VAR6*0.55+VAR7*0.65)/6,17);

VARD:=MA((VAR8*1.3+VAR9*1.3+VARA*1.3+VAR5*0.68+VAR6*0.68+VAR7*0.68)/6,17);

VARE:=MA((VARB*3+VARC*2+VARD)/6*1.738,17);

VARF:=MA((VARB*2.38+VARC*2.18+VARD*1.85+VAR5*1.05)/4,17);

VAR10:=MA((VARD+VARE)*0.5,17);

满仓: VARB;

半仓: VARC;

低吸: VARD;

中线: VAR10;

高抛: VARE;

出货: VARF;

------------------------------------------------------------

模仿的支撑助力。。主图

----------------------------------------------

TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);

HD:=HIGH-REF(HIGH,1);

LD:=REF(LOW,1)-LOW;

DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);

DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);

PDI1:=DMP*100/TR,COLORRED;

MDI1:=DMM*100/TR,COLORGREEN;

ADX:SMA(ABS(MDI1-PDI1)/(MDI1+PDI1)*100,M,1),COLORYELLOW,LINETHICK2;

ADXR:(ADX+REF(ADX,M))/2,COLORMAGENTA;

STICKLINE(ADX<=REF(ADXR,1),ADX,ADXR,2,0),COLORBLUE;

STICKLINE(ADX>REF(ADXR,1),ADX,ADXR,2,0),COLORRED;

PDI:PDI1,COLORYELLOW;

MDI:MDI1,COLORGREEN;

-------------------------------------------------------

优化的DMI

-------------------------------------------

BIAS1:(C-MA(C,7))/MA(C,7)*100;

BIAS2:(C-MA(C,14))/MA(C,14)*100;

BIAS3:(C-MA(C,28))/MA(C,28)*100;

DRAWTEXT(BIAS1<-6,-8,'注'),COLORGREEN;

DRAWTEXT(BIAS2<-10,-16,'意'),COLOR0000FF;

DRAWTEXT(BIAS3<-16,-20,'底'),COLORRED;

-----------------------------------------------------------

优化的BIAS。。

H1:EMA(C,8);

H2:EMA(H1,20);

VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;

VAR2:=SMA(VAR1,5,1);

VAR3:=SMA(VAR2,8,1);

VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;

VAR5:=C>LLV(C,60)*1.13 AND VAR4;

VAR6:=IF(C>200,VAR4,VAR5);

STICKLINE(H1>H2,H1,H2,0,1),COLORRED;

STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;

-------------------------------------------------------------------------------

波段,副图

------------------------------------

短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;

中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;

中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;

长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;

20,POINTDOT;

50,POINTDOT;

80,POINTDOT;

--------------

副图

---------------

Y:=(H+L)/2;

AA:=REF((SMA(Y,5,1)),3);

BB:=REF((SMA(Y,8,1)),5);

CC:=REF((SMA(Y,13,1)),8);

MA1:MA(CLOSE,M1),COLORWHITE,LINETHICK3;

MA2:MA(CLOSE,M2),COLORYELLOW,LINETHICK3;

MA3:MA(CLOSE,M3),COLORDB7093,LINETHICK3;

鳄:CC,COLORFF6600;

齿:BB,COLORRED;

唇:AA,COLORGREEN;

R2:=REF(齿,5);

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>=R2,UL,REF(UL,BARSLAST(HIGH>R2))),POINTDOT,LINETHICK3,COLORMAGENTA;

下分形:IF(LOW<=R2,DL,REF(DL,BARSLAST(LOW<=R2))),POINTDOT,LINETHICK3,COLORYELLOW;

DRAWICON(CLOSE>上分形 AND REF(CLOSE,1)<REF(上分形,1),HIGH*1.03,1);

DRAWICON(CLOSE<下分形 AND REF(CLOSE,1)>REF(下分形,1),LOW*0.99,2);

AO:=MA(Y,5)-MA(Y,34);

MAO:=MA(AO,5);

AC:=AO-MAO;

AC1:=REF(AC,1);

AO1:=REF(AO,1);

KAC:=IF(AC>AC1 AND AO>AO1,1,0);

KAO:=IF(AC<AC1 AND AO<AO1,-1,0);

STICKLINE(KAC=1 AND CLOSE>=OPEN,OPEN,CLOSE,3,1),COLORRED;

STICKLINE(KAO=-1 AND CLOSE>=OPEN,OPEN,CLOSE,3,1),COLORGREEN;

STICKLINE(KAO=0 AND KAC=0 AND CLOSE>=OPEN,OPEN,CLOSE,3,1),COLORDDDDDD;

STICKLINE(CLOSE>=OPEN,HIGH,CLOSE,0.0,1.0),COLORRED;

STICKLINE(CLOSE>=OPEN,OPEN,LOW,0.0,1),COLORRED;

STICKLINE(KAC=1 AND CLOSE<OPEN,OPEN,CLOSE,3,0),COLORRED;

STICKLINE(KAO=-1 AND CLOSE<OPEN,OPEN,CLOSE,3,0),COLORGREEN;

--------------------------------------------------------

主图混沌操作,,,参数。。M1.1.100.6.M2.1.100.18....M3..1.200.144

VOL_AMO:=1;{1~2;1-成交量;2-成交额};

EPSL:=0.0001;

TJ1:=H=L AND C>REF(C,1);{预备简单处理一字涨停};

TJ2:=H=L AND C<REF(C,1);{预备简单处理一字跌停};

量_价:IF(VOL_AMO=1,V,AMOUNT),STICK,COLOREEFFEE;{量或价};

STICKLINE(C>OPEN,0,量_价,1.5,-1),COLOR1133FA;{画阴阳量空心柱};

STICKLINE(C<OPEN,0,量_价,2.2,1),COLORDFDF13;

EP:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));

YFQJ_JLJ_DDX:=(2*C-H-L+EP)/(3*(H-L+ABS(EP)));

买卖差:YFQJ_JLJ_DDX*量_价,COLOR13AADD,LINETHICK2;{LINETHICK};

{比率}买卖差/量_价*100,LINETHICK2;

主动买:量_价*(1+YFQJ_JLJ_DDX)/2,COLOR1133AA,LINETHICK2;

主动卖:量_价*(1-YFQJ_JLJ_DDX)/2,COLORDFDF13,LINETHICK2;

STICKLINE(1,0,主动买,2.2,1),COLOR1133DE;{红色实框空心柱}

{买卖差(DDV)实心柱};

JDZ:=ABS(买卖差);

STICKLINE(主动买>主动卖,0,JDZ,2,0),COLOR13BCFF;

STICKLINE(主动买>主动卖,0,JDZ,1,0),COLOR13CDFF;

STICKLINE(主动买>主动卖,0,JDZ,0.5,0),COLOR13DEFF;

STICKLINE(主动买<主动卖,0,JDZ,2,0),COLOR339933;

STICKLINE(主动买<主动卖,0,JDZ,1,0),COLOR33BB33;

STICKLINE(主动买<主动卖,0,JDZ,0.5,0),COLOR33DD33;

{买卖差累积曲线};

短:EMA(SUM(买卖差,5),3),COLORABCCBA,LINETHICK2;

中:EMA(SUM(买卖差,30),3)/5,COLOR13EFEF,LINETHICK1;

长:EMA(SUM(买卖差,60),3)/10,COLORFFAA55,LINETHICK1;

强:IF(短>REF(短,1),短,MA(短,256000)),COLOR1133EF,LINETHICK2;

{};

-------------------------------

别人的公式没有改好

--------------

ATRA:= SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),6,1);

HD := HIGH-REF(HIGH,1);

LD := REF(LOW,1)-LOW;

DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),6,1);

DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),6,1);

PDI:= DMP*100/ATRA;

MDI:= DMM*100/ATRA;

ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1),LINETHICK2;

涨趋势:IF((MDI-PDI)/(MDI+PDI)<0,10,0),COLOR8899DD,LINETHICK2;

跌趋势:IF((MDI-PDI)/(MDI+PDI)>=0,10,ADX),COLORDD9988,LINETHICK2;

FILLRGN(ADX,10,0);

FILLRGN(跌趋势>涨趋势,跌趋势,涨趋势),COLOR487DD9;

FILLRGN(跌趋势<涨趋势,跌趋势,涨趋势),COLOR0000FF;

对比线:=(ADX+REF(ADX,6))/2;

STICKLINE(CROSS(ADX,30),ADX,30,3,0),COLOR00FFFF;

STICKLINE(C>0,80,80,1.5,0),COLORFFFFFF;

STICKLINE(C>0,50,50,1.5,0),COLOR00FFFF;

STICKLINE(C>0,20,20,1.5,0),COLORFF00FF;

WW1:=SMA(((CLOSE-LLV(CLOSE,10))/(HHV(HIGH,10)-LLV(LOW,10))),3,1);

WW2:=SMA(((WW1-LLV(WW1,3))/(HHV(WW1,3)-LLV(WW1,3))),3,1)*100;

ZZ:=SMA(((VOL-LLV(VOL,10))/(HHV(VOL,10)-LLV(VOL,10))),3,1);

ZZ1:=SMA(((ZZ-LLV(ZZ,3))/(HHV(ZZ,3)-LLV(ZZ,3))),3,1)*100;

快线:=EMA(WW2,1),COLORBLUE,LINETHICK2;

慢线:=EMA(快线,2),COLORGREEN,LINETHICK2;

量快:=EMA(ZZ1,1),LINETHICK2;

量慢:=EMA(量快,2),COLORWHITE,LINETHICK2;

AA1:=SMA(((CLOSE-LLV(CLOSE,13))/(HHV(HIGH,13)-LLV(LOW,13))),3,1);

价线:=SMA(((AA1-LLV(AA1,4))/(HHV(AA1,4)-LLV(AA1,4))),3,1)*100;

周线:MA(价线,5),COLORMAGENTA,LINETHICK1;

BB1:=SMA(((VOL-LLV(VOL,13))/(HHV(VOL,13)-LLV(VOL,13))),3,1);

量线:SMA(((BB1-LLV(BB1,4))/(HHV(BB1,4)-LLV(BB1,4))),3,1)*100,LINETHICK2;

周量:MA(量线,5),COLORYELLOW,LINETHICK1;

月线:=MA(价线,22),COLORRED,LINETHICK0;

月量:=MA(量线,22),COLORYELLOW,LINETHICK0;

快线2:=EMA(周线,1),COLORBLUE,LINETHICK2;

慢线2:=EMA(快线2,2),COLORGREEN,LINETHICK2;

量快2:=EMA(周量,1);

量慢2:=EMA(量快2,2),COLORWHITE,LINETHICK2;

DRAWTEXT(FILTER(快线>=95 AND 慢线>=95 AND 周线>=90 OR 周量>=90,5),85,'减');

看色块→:30,COLORRED;

IF(周线>=REF(周线,1),周线,0),COLORMAGENTA,LINETHICK2;

IF(周线>=REF(周线,1) AND 月线>=REF(月线,1),周线,0),COLORRED,LINETHICK2;

IF(周线<REF(周线,1),周线,0),COLORGREEN,LINETHICK1;

IF(周量>=REF(周量,1),周量,0),COLORYELLOW,LINETHICK2;

IF(周量<REF(周量,1),周量,0),COLORGREEN,LINETHICK1;

IF(CROSS(快线2,慢线2),慢线2,0),COLORRED,LINETHICK3,CIRCLEDOT;

IF(CROSS(慢线2,快线2),快线2,0),COLORGREEN,LINETHICK3,CIRCLEDOT;

IF(CROSS(量快2,量慢2),量慢2,0),COLORRED,LINETHICK2,CIRCLEDOT;

==================================================================

 

ATRA:= SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),6,1);

HD := HIGH-REF(HIGH,1);

LD := REF(LOW,1)-LOW;

DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),6,1);

DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),6,1);

PDI:= DMP*100/ATRA;

MDI:= DMM*100/ATRA;

ADX: SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1),LINETHICK2;

涨趋势:IF((MDI-PDI)/(MDI+PDI)<0,10,0),COLOR8899DD,LINETHICK2;

跌趋势:IF((MDI-PDI)/(MDI+PDI)>=0,10,ADX),COLORDD9988,LINETHICK2;

FILLRGN(ADX,10,0);

FILLRGN(跌趋势>涨趋势,跌趋势,涨趋势),COLOR487DD9;

FILLRGN(跌趋势<涨趋势,跌趋势,涨趋势),COLOR0000FF;

对比线:=(ADX+REF(ADX,6))/2;

STICKLINE(CROSS(ADX,30),ADX,30,3,0),COLOR00FFFF;

STICKLINE(C>0,80,80,1.5,0),COLORFFFFFF;

STICKLINE(C>0,50,50,1.5,0),COLOR00FFFF;

STICKLINE(C>0,20,20,1.5,0),COLORFF00FF;

WW1:=SMA(((CLOSE-LLV(CLOSE,10))/(HHV(HIGH,10)-LLV(LOW,10))),3,1);

WW2:=SMA(((WW1-LLV(WW1,3))/(HHV(WW1,3)-LLV(WW1,3))),3,1)*100;

ZZ:=SMA(((VOL-LLV(VOL,10))/(HHV(VOL,10)-LLV(VOL,10))),3,1);

ZZ1:=SMA(((ZZ-LLV(ZZ,3))/(HHV(ZZ,3)-LLV(ZZ,3))),3,1)*100;

快线:=EMA(WW2,1),COLORBLUE,LINETHICK2;

慢线:=EMA(快线,2),COLORGREEN,LINETHICK2;

量快:=EMA(ZZ1,1),LINETHICK2;

量慢:=EMA(量快,2),COLORWHITE,LINETHICK2;

AA1:=SMA(((CLOSE-LLV(CLOSE,13))/(HHV(HIGH,13)-LLV(LOW,13))),3,1);

价线:=SMA(((AA1-LLV(AA1,4))/(HHV(AA1,4)-LLV(AA1,4))),3,1)*100;

周线:MA(价线,5),COLORMAGENTA,LINETHICK1;

BB1:=SMA(((VOL-LLV(VOL,13))/(HHV(VOL,13)-LLV(VOL,13))),3,1);

量线:SMA(((BB1-LLV(BB1,4))/(HHV(BB1,4)-LLV(BB1,4))),3,1)*100,LINETHICK2;

周量:MA(量线,5),COLORYELLOW,LINETHICK1;

月线:=MA(价线,22),COLORRED,LINETHICK0;

月量:=MA(量线,22),COLORYELLOW,LINETHICK0;

快线2:=EMA(周线,1),COLORBLUE,LINETHICK2;

慢线2:=EMA(快线2,2),COLORGREEN,LINETHICK2;

量快2:=EMA(周量,1);

量慢2:=EMA(量快2,2),COLORWHITE,LINETHICK2;

DRAWTEXT(FILTER(快线>=95 AND 慢线>=95 AND 周线>=90 OR 周量>=90,5),85,'减');

看色块→:30,COLORRED;

PARTLINE(周线>=REF(周线,1),周线),COLORMAGENTA,LINETHICK2;

PARTLINE(周线>=REF(周线,1) AND 月线>=REF(月线,1),周线),COLORRED,LINETHICK2;

PARTLINE(周线<REF(周线,1),周线),COLORGREEN,LINETHICK1;

PARTLINE(周量>=REF(周量,1),周量),COLORYELLOW,LINETHICK2;

PARTLINE(周量<REF(周量,1),周量),COLORGREEN,LINETHICK1;

PARTLINE(CROSS(快线2,慢线2),慢线2),COLORRED,LINETHICK3,CIRCLEDOT;

PARTLINE(CROSS(慢线2,快线2),快线2),COLORGREEN,LINETHICK3,CIRCLEDOT;

PARTLINE(CROSS(量快2,量慢2),量慢2),COLORRED,LINETHICK2,CIRCLEDOT;

  

爱华网本文地址 » http://www.aihuau.com/a/25101011/92896.html

更多阅读

易语言进度条源码 精易论坛

易语言进度条源码——简介今天,我给大家带来如何弄进度条!易语言进度条源码——工具/原料电脑易语言易语言进度条源码——方法/步骤易语言进度条源码 1、打开易语言!拉

大智慧公式教程 大智慧指标源码

大智慧公式教程公式入门我们大多数的用户并不是完全了解“公式编辑器”的意义,简单地,我们可以从以下几个角度进行理解:一、指标分析:“公式编辑器”好比是一个工作母床,通过这个工作母床可以制造出所需要的各式各样的零件,同样,在指标分析

SAR,Parabolic SAR,抛物线指标 sar抛物线指标源码

SAR,抛物线指标(Parabolic SAR)又叫或停损转向操作点指标,其全称叫"Stop and Reveres,缩写SAR",是由美国技术分析大师威尔斯-威尔德(Wells Wilder)所创造的,是一种简单易学、比较准确的中短期技术分析工具。抛物转向指标是对分析价格趋势非常

声明:《博易大师自编指标 博易大师期货指标源码》为网友朝飞暮卷分享!如侵犯到您的合法权益请联系我们删除