您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

老师这个指标能不压缩吗 [博易POBO]

咨询内容:

老师这个指标能不压缩吗

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,COLORYELLOW;
//多止盈:=(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*1+REFX(MA(HH,25),25/2),NODRAW,COLORWHITE;
//空止损:=(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*3.5+REFX(MA(HH,25),25/2),NODRAW,COLORYELLOW;
//空止盈:=REFX(MA(LL,25),25/2)-(REFX(MA(HH,25),25/2)-REFX(MA(LL,25),25/2))*1,NODRAW,COLORWHITE;

多止损:=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;


N:=13;
UR:=6;
LR:=6;

CURRBARSCOUNT:=REFX(BARPOS,DATACOUNT-BARPOS-1)-BARPOS+1;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=REFX(BARSLAST(TC1=H),DATACOUNT-BARPOS-1)+1;
UPPER:=REFX(IF(TC2=1,H,REF(H,TC2-1)),DATACOUNT-BARPOS-1);
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=REFX(BARSLAST(BC1=L),DATACOUNT-BARPOS-1)+1;
LOWER:=REFX(IF(BC2=1,L,REF(L,BC2-1)),DATACOUNT-BARPOS-1);
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;

HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;

STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,9,0),COLOR628962,LINETHICK5;

STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,9,0),COLOR628962,LINETHICK5;

NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));

LR1:=FORCAST(C,NOD+1);
NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),DATACOUNT-BARPOS-1),DRAWNULL),COLOR93BDA8,LINETHICK6;
DRAWNUMBER(ISLASTBAR,NP,NP,2),COLOR93BDA8;
{近点}
LR2:=SLOPE(C,NOD+1);
LR3:=REFX(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),DATACOUNT-BARPOS-1);
FP:NP-LR3*(NOD),COLOR93BDA8,LINETHICK6;
DRAWNUMBER(ISLASTBAR,FP,FP,2),COLOR93BDA8;
{远点}
EQU:(NP+FP)/2,COLOR93BDA8,LINETHICK6;
DRAWNUMBER(ISLASTBAR,EQU,EQU,2),COLOR93BDA8;

{中点}
AD:=ABS(NP-FP),LINETHICK6;

DBL:=BARSLAST(BC1)+1;
DBH:=BARSLAST(TC1)+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=REFX(BARSLAST(AT1-LRL=AT2),DATACOUNT-BARPOS-1);
AT4:=REFX(IF(AT3=0,H,REF(H,AT3)),DATACOUNT-BARPOS-1);
AT5:=REFX(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)),DATACOUNT-BARPOS-1);
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=REFX(BARSLAST(LRL-UT1=UT2),DATACOUNT-BARPOS-1);
UT4:=REFX(IF(UT3=0,H,REF(H,UT3)),DATACOUNT-BARPOS-1);
UT5:=REFX(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)),DATACOUNT-BARPOS-1);
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,REFX(REF(ATL,MIN(BC2,TC2)-11),DATACOUNT-BARPOS-1));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,REFX(REF(UTL,MIN(BC2,TC2)-11),DATACOUNT-BARPOS-1));
IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR00FFFF,LINETHICK4;
IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORYELLOW,LINETHICK6;

IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFFFFFF,LINETHICK6;



N1:=13;UR1:=6;LR01:=6;
TC01:=IF(H=HHV(H,3*UR1),H,DRAWNULL);
TC02:=REFX(BARSLAST(TC01=H),DATACOUNT-BARPOS-1)+1;
UPPER01:=REFX(IF(TC02=1,H,REF(H,TC02-1)),DATACOUNT-BARPOS-1);
BC01:=IF(L=LLV(L,3*LR01),L,DRAWNULL);
BC02:=REFX(BARSLAST(BC01=L),DATACOUNT-BARPOS-1)+1;
LOWER01:=REFX(IF(BC02=1,L,REF(L,BC02-1)),DATACOUNT-BARPOS-1);
LP0:=CURRBARSCOUNT<=BC02 AND L=LOWER01;{低点定位}
HP0:=CURRBARSCOUNT<=TC02 AND H=UPPER01;{高点定位}
STICKLINE(IF(BC02>TC02,HP0,LP0),LOWER01,UPPER01,9,0),COLOR628962,LINETHICK5;
STICKLINE(IF(BC02>TC02,LP0,HP0),LOWER01,UPPER01,9,0),COLOR628962,LINETHICK5;




N2:=33;UR01:=6;LR001:=6;
TC001:=IF(H=HHV(H,1*UR01),H,DRAWNULL);
TC002:=REFX(BARSLAST(TC001=H),DATACOUNT-BARPOS-1)+1;
UPPER001:=REFX(IF(TC002=1,H,REF(H,TC002-1)),DATACOUNT-BARPOS-1);
BC001:=IF(L=LLV(L,1*LR001),L,DRAWNULL);
BC002:=REFX(BARSLAST(BC001=L),DATACOUNT-BARPOS-1)+1;
LOWER001:=REFX(IF(BC002=1,L,REF(L,BC002-1)),DATACOUNT-BARPOS-1);

LP00:=CURRBARSCOUNT<=BC002 AND L=LOWER001;{低点定位}
HP00:=CURRBARSCOUNT<=TC002 AND H=UPPER001;{高点定位}
STICKLINE(IF(BC002>TC002,HP00,LP00),LOWER001,UPPER001,9,0),COLOR628962,LINETHICK5;
STICKLINE(IF(BC002>TC002,LP00,HP00),LOWER001,UPPER001,9,0),COLOR628962,LINETHICK5;



DRAWICON(HP,H,11); DRAWICON(LP,L,13);
DRAWICON(HP0,H,11); DRAWICON(LP0,L,13);
DRAWICON(HP00,H,11); DRAWICON(LP00,L,13);

HD:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(L,10)=LLV(L,2*10+1),10),10+1),10);
支撑O:REF(LOW,BARSLAST(LD)),COLOR008000,POINTDOT,LINETHICK6;
压力O:REF(HIGH,BARSLAST(HD)),COLORFF0000,POINTDOT,LINETHICK6;


VAR1:=ZIG(3,2.88)<REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)>REF(ZIG(3,2.88),2);
VAR2:=ZIG(3,2.88)>REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)<REF(ZIG(3,2.88),2);
STICKLINE(VAR1,C,O,8,0),COLOR00FF00;
STICKLINE(VAR1,C,O,5,0),COLOR00FF00;
STICKLINE(VAR1,H,L,2,0),COLOR00FF00;
DRAWTEXT(VAR1,H*1.002,' 上阻力'),COLOR80FFFF;
STICKLINE(VAR2,C,O,7,0),COLOR0000FF;
STICKLINE(VAR2,C,O,5,0),COLOR0000FF;
STICKLINE(VAR2,H,L,2,0),COLOR0000FF;
DRAWTEXT(VAR2,L*0.999,' 下阻力'),COLOR43D0FA;
VAR3:=ZIG(3,4.88)<REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)>REF(ZIG(3,4.88),2);
VAR4:=ZIG(3,4.88)>REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)<REF(ZIG(3,4.88),2);
STICKLINE(VAR3,C,O,8,0),COLOR00FF00;
STICKLINE(VAR3,C,O,5,0),COLOR00FF00;
STICKLINE(VAR3,H,L,2,0),COLOR00FF00;
DRAWTEXT(VAR3,H*1.002,'强上阻力'),COLOR43D0FA;
STICKLINE(VAR4,C,O,7,0),COLOR0000FF;
STICKLINE(VAR4,C,O,5,0),COLOR0000FF;
STICKLINE(VAR4,H,L,2,0),COLOR0000FF;
DRAWTEXT(VAR4,L*0.999,'强下阻力'),COLOR43D0FA;
VAR5:=ZIG(3,5.88)<REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)>REF(ZIG(3,5.88),2);
VAR6:=ZIG(3,5.88)>REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)<REF(ZIG(3,5.88),2);
STICKLINE(VAR5,C,O,9,0),COLOR00FFFF;
STICKLINE(VAR5,C,O,6,0),COLOR00FF00;
STICKLINE(VAR5,H,L,3,0),COLOR00FF00;
DRAWTEXT(VAR5,H*1.002,'■强上阻力■'),COLOR00FF00;
STICKLINE(VAR6,C,O,8,0),COLOR00FFFF;
STICKLINE(VAR6,C,O,6,0),COLOR0000FF;
STICKLINE(VAR6,H,L,3,0),COLOR0000FF;
DRAWTEXT(VAR6,L*0.999,'■强下阻力■'),COLOR00FFFF;
VAR7:=ZIG(3,6.88)<REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)>REF(ZIG(3,6.88),2);
VAR8:=ZIG(3,6.88)>REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)<REF(ZIG(3,6.88),2);
STICKLINE(VAR7,C,O,9,0),COLOR00FFFF;
STICKLINE(VAR7,C,O,6,0),COLOR00FF00;
STICKLINE(VAR7,H,L,2,0),COLOR00FF00;
DRAWTEXT(VAR7,H*1.002,'■■强上阻力■■'),COLOR00FF00;
DRAWTEXT(VAR8,L*0.999,'■■强下阻力■■'),COLOR00FFFF;
VAR9:=ZIG(3,8.88)<REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)>REF(ZIG(3,8.88),2);
VAR10:=ZIG(3,8.88)>REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)<REF(ZIG(3,8.88),2);
DRAWTEXT(VAR9,H*1.002,'■■■强上阻力■■■'),COLOR00FF00;
DRAWTEXT(VAR10,L*0.999,'■■■强下阻力■■■'),COLOR00FFFF;
VAR13:=ZIG(3,15.88)<REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)>REF(ZIG(3,15.88),2);
VAR14:=ZIG(3,15.88)>REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)<REF(ZIG(3,15.88),2);
DRAWTEXT(VAR13,H*1.002,'★★★大逆转 趋势★★★'),COLOR00FF00;
DRAWTEXT(VAR14,L*0.999,'★★★大逆转 趋势★★★'),COLOR00FFFF;
VAR15:=ZIG(3,0.10)<REF(ZIG(3,0.10),1) AND REF(ZIG(3,0.10),1)>REF(ZIG(3,0.10),2);
VAR16:=ZIG(3,0.10)>REF(ZIG(3,0.10),1) AND REF(ZIG(3,0.10),1)<REF(ZIG(3,0.10),2);
DRAWICON(VAR15,H,2);
DRAWICON(VAR16,L,1);

P1:=1;
P3:=3;
P5:=5;
P8:=8;
P13:=13;
P21:=21;
P34:=34;
P55:=55;
P89:=89;
P144:=144;
P233:=233;
P377:=377;
ASA1:=REF(H,P1)=HHV(H,2*P1+1);
BSB1:=FILTER(ASA1,P1);
CSC1:=BACKSET(BSB1,P1+1);
DSD1:=CROSS(CSC1,0.5);
DRAWTEXT(DSD1,H*1.001,'▼'),COLOR00FF00;
ASA2:=REF(L,P1)=LLV(L,2*P1+1);
BSB2:=FILTER(ASA2,P1);
CSC2:=BACKSET(BSB2,P1+1);
DSD2:=CROSS(CSC2,0.5);
DRAWTEXT(DSD2,L*0.999,'▲'),COLOR0000FF;

A1:=REF(H,P3)=HHV(H,2*P3+1);
B01:=FILTER(A1,P3);
C1:=BACKSET(B01,P3+1);
D1:=CROSS(C1,0.5);
DRAWTEXT(D1,H,'空空'),COLORGREEN;
A2:=REF(L,P3)=LLV(L,2*P3+1);
B2:=FILTER(A2,P3);
C2:=BACKSET(B2,P3+1);
D2:=CROSS(C2,0.5);
DRAWTEXT(D2,L,'多多'),COLOR0000FF;

AA1:=REF(H,P5)=HHV(H,2*P5+1);
BB1:=FILTER(AA1,P5);
CC1:=BACKSET(BB1,P5+1);
DD1:=CROSS(CC1,0.5);
DRAWTEXT(DD1,H,'空空空'),COLORGREEN;
AA2:=REF(L,P5)=LLV(L,2*P5+1);
BB2:=FILTER(AA2,P5);
CC2:=BACKSET(BB2,P5+1);
DD2:=CROSS(CC2,0.5);
DRAWTEXT(DD2,L,'多多多'),COLOR0000FF;

AAA1:=REF(H,P8)=HHV(H,2*P8+1);
BBB1:=FILTER(AAA1,P8);
CCC1:=BACKSET(BBB1,P8+1);
DDD1:=CROSS(CCC1,0.5);
DRAWTEXT(DDD1,H,'空空空空'),COLORGREEN;
AAA2:=REF(L,P8)=LLV(L,2*P8+1);
BBB2:=FILTER(AAA2,P8);
CCC2:=BACKSET(BBB2,P8+1);
DDD2:=CROSS(CCC2,0.5);
DRAWTEXT(DDD2,L,'多多多多'),COLOR0000FF;

AAAA1:=REF(H,P13)=HHV(H,2*P13+1);
BBBB1:=FILTER(AAAA1,P13);
CCCC1:=BACKSET(BBBB1,P13+1);
DDDD1:=CROSS(CCCC1,0.5);
DRAWTEXT(DDDD1,H,'空空空空空'),COLORGREEN;
AAAA2:=REF(L,P13)=LLV(L,2*P13+1);
BBBB2:=FILTER(AAAA2,P13);
CCCC2:=BACKSET(BBBB2,P13+1);
DDDD2:=CROSS(CCCC2,0.5);
DRAWTEXT(DDDD2,L,'多多多多多'),COLOR0000FF;

AJA1:=REF(H,P21)=HHV(H,2*P21+1);
BJB1:=FILTER(AJA1,P21);
CJC1:=BACKSET(BJB1,P21+1);
DJD1:=CROSS(CJC1,0.5);
DRAWTEXT(DJD1,H,'空空空空空空'),COLORGREEN;
AJA2:=REF(L,P21)=LLV(L,2*P21+1);
BJB2:=FILTER(AJA2,P21);
CJC2:=BACKSET(BJB2,P21+1);
DJD2:=CROSS(CJC2,0.5);
DRAWTEXT(DJD2,L,'多多多多多多'),COLOR0000FF;

AGA1:=REF(H,P34)=HHV(H,2*P34+1);
BGB1:=FILTER(AGA1,P34);
CGC1:=BACKSET(BGB1,P34+1);
DGD1:=CROSS(CGC1,0.5);
DRAWTEXT(DGD1,H,'空空空空空空空'),COLORGREEN;
AGA2:=REF(L,P34)=LLV(L,2*P34+1);
BGB2:=FILTER(AGA2,P34);
CGC2:=BACKSET(BGB2,P34+1);
DGD2:=CROSS(CGC2,0.5);
DRAWTEXT(DGD2,L,'多多多多多多多'),COLOR0000FF;

ARA1:=REF(H,P55)=HHV(H,2*P55+1);
BRB1:=FILTER(ARA1,P55);
CRC1:=BACKSET(BRB1,P55+1);
DRD1:=CROSS(CRC1,0.5);
DRAWTEXT(DRD1,H,'空空空空空空空空'),COLORGREEN;
ARA2:=REF(L,P55)=LLV(L,2*P55+1);
BRB2:=FILTER(ARA2,P55);
CRC2:=BACKSET(BRB2,P55+1);
DRD2:=CROSS(CRC2,0.5);
DRAWTEXT(DRD2,L,'多多多多多多多多'),COLOR0000FF;

AQA1:=REF(H,P89)=HHV(H,2*P89+1);
BQB1:=FILTER(AQA1,P89);
CQC1:=BACKSET(BQB1,P89+1);
DQD1:=CROSS(CQC1,0.5);
DRAWTEXT(DQD1,H,'空空空空空空空空空'),COLORGREEN;
AQA2:=REF(L,P89)=LLV(L,2*P89+1);
BQB2:=FILTER(AQA2,P89);
CQC2:=BACKSET(BQB2,P89+1);
DQD2:=CROSS(CQC2,0.5);
DRAWTEXT(DQD2,L,'多多多多多多多多多'),COLOR0000FF;

AZA1:=REF(H,P144)=HHV(H,2*P144+1);
BZB1:=FILTER(AZA1,P144);
CZC1:=BACKSET(BZB1,P144+1);
DZD1:=CROSS(CZC1,0.5);
DRAWTEXT(DZD1,H,'空空空空空空空空空空'),COLORGREEN;
AZA2:=REF(L,P144)=LLV(L,2*P144+1);
BZB2:=FILTER(AZA2,P144);
CZC2:=BACKSET(BZB2,P144+1);
DZD2:=CROSS(CZC2,0.5);
DRAWTEXT(DZD2,L,'多多多多多多多多多多'),COLORFFFFFF;

AWA1:=REF(H,P233)=HHV(H,2*P233+1);
BWB1:=FILTER(AWA1,P233);
CWC1:=BACKSET(BWB1,P233+1);
DWD1:=CROSS(CWC1,0.5);
DRAWTEXT(DWD1,H,'空空空空空空空空空空空'),COLORFF0000;
AWA2:=REF(L,P233)=LLV(L,2*P233+1);
BWB2:=FILTER(AWA2,P233);
CWC2:=BACKSET(BWB2,P233+1);
DWD2:=CROSS(CWC2,0.5);
DRAWTEXT(DWD2,L,'多多多多多多多多多多多'),COLORFFFFFF;


AXA1:=REF(H,P377)=HHV(H,2*P377+1);
BXB1:=FILTER(AXA1,P377);
CXC1:=BACKSET(BXB1,P377+1);
DXD1:=CROSS(CXC1,0.5);
DRAWTEXT(DXD1,H,'空空空空空空空空空空空空'),COLORGREEN;
AXA2:=REF(L,P377)=LLV(L,2*P377+1);
BXB2:=FILTER(AXA2,P377);
CXC2:=BACKSET(BXB2,P377+1);
DXD2:=CROSS(CXC2,0.5);
DRAWTEXT(DXD2,L,'多多多多多多多多多多多多'),COLOR0000FF;


UR:=5;
LR:=5;
CURRBARSCOUNT:=REFX(BARPOS,DATACOUNT-BARPOS-1)-BARPOS+1;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=REFX(BARSLAST(TC1=H),DATACOUNT-BARPOS-1)+1;
UP:=REFX(IF(TC2=1,H,REF(H,TC2-1)),DATACOUNT-BARPOS-1);
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=REFX(BARSLAST(BC1=L),DATACOUNT-BARPOS-1)+1;
LL1:IF(REFX(BARSLAST(H=HHV(H,8*UR))<BARSLAST(L=LLV(L,8*UR)),DATACOUNT-BARPOS-1),REFX(IF(BC2=1,L,REF(L,BC2-1)),DATACOUNT-BARPOS-1),DRAWNULL),COLOR0000FF,LINETHICK3;
LL:IF(REFX(BARSLAST(H=HHV(H,8*UR))>BARSLAST(L=LLV(L,8*UR)),DATACOUNT-BARPOS-1),REFX(IF(BC2=1,L,REF(L,BC2-1)),DATACOUNT-BARPOS-1),DRAWNULL),COLOR0000FF,POINTDOT,LINETHICK3;

TC11:=IF(L=LLV(L,8*UR),L,DRAWNULL);
TC21:=REFX(BARSLAST(TC11=L),DATACOUNT-BARPOS-1)+1;
UP1:=REFX(IF(TC21=1,L,REF(L,TC21-1)),DATACOUNT-BARPOS-1);
BC11:=IF(H=HHV(H,8*LR),H,DRAWNULL);
BC21:=REFX(BARSLAST(BC11=H),DATACOUNT-BARPOS-1)+1;
HH1:IF(REFX(BARSLAST(H=HHV(H,8*UR))>BARSLAST(L=LLV(L,8*UR)),DATACOUNT-BARPOS-1) , REFX(IF(BC21=1,H,REF(H,BC21-1)),DATACOUNT-BARPOS-1),DRAWNULL),COLOR00FF00,LINETHICK3;
HH:IF(REFX(BARSLAST(H=HHV(H,8*UR))<BARSLAST(L=LLV(L,8*UR)),DATACOUNT-BARPOS-1) , REFX(IF(BC21=1,H,REF(H,BC21-1)),DATACOUNT-BARPOS-1),DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK3;

DRAWICON(CROSS(C,HH),H,5);
DRAWICON(CROSS(LL1,C),L,4);



 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: 您好,这个指标数值相差比较大,确实会造成压缩,不建议把不同的指标公式放在一个公式里使用。 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容