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

你好我想把文华指标改成博弈大师指标但是现实差别大请老师改写下 谢谢了 [博易POBO]

咨询内容:

你好我想把文华指标改成博弈大师指标但是现实差别大请老师改写下 谢谢了

文华财经指标
 
//,RGB(145,0,0),RGB(0,153,153)

参考价11:MA(CLOSE,2),COLORRED,PRECIS0,NOTEXT,NODRAW;
参考价21:MA(CLOSE,3),RGB(0,240,0),PRECIS0,NOTEXT,NODRAW;
参考价31:MA(C,10),RGB(255,255,128),PRECIS0,NOTEXT,NODRAW;
FILLRGN1(参考价11>=参考价21,参考价11,参考价21),RGB(145,0,0);
FILLRGN1(参考价11< 参考价21,参考价11,参考价21),COLOR008643;

HH1:=IFELSE(H<REF(H,11)&&REF(H,15)<REF(H,29),REF(H,21),0);
LL1:=IFELSE(L>REF(L,11)&&REF(L,12)>REF(L,25),REF(L,21),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(K2=1,HIGH,K2=1,HT,RGB(0,153,153));
DRAWLINE(K2=1,LOW,K2=1,LT,RGB(0,153,153));
DRAWLINE(K2=-3,HIGH,K2=-3,HT,RGB(145,0,0));
DRAWLINE(K2=-3,LOW,K2=-3,LT,RGB(145,0,0));
STICKLINE(K2>0,OPEN,CLOSE,RGB(0,153,153),1);
STICKLINE(K2<=0,OPEN,CLOSE,RGB(145,0,0),1);
STICKLINE(W2>0 AND K2<=0,OPEN,CLOSE,RGB(145,0,0),0);
STICKLINE(W2>0 AND K2>0,OPEN,CLOSE,RGB(0,153,153),0);
DRAWLINE(K2=1 AND REF(K2,1)=1,G,K2=1 AND REF(K2,1)=1,REF(G,1),COLORCYAN),LINETHICK3;
DRAWLINE(K2=-3 AND REF(K2,1)=-3,G,K2=-3 AND REF(K2,1)=-3,REF(G,1),COLORRED),LINETHICK3;
DRAWSL(K2=1,G,0,1,0,COLORCYAN),LINETHICK3;
DRAWSL(K2=-3,G,0,1,0,COLORRED),LINETHICK3;
AA:=VALUEWHEN(K2=-3,G);
CC:=VALUEWHEN(K2=1,G);
压力线:CC,COLORLIGHTGREEN,NODRAW,NOTEXT;
支撑线:AA,COLORYELLOW,NODRAW,NOTEXT;



HH91:=IFELSE(H<REF(H,1) && REF(H,1)<REF(H,2),REF(H,2),0);
LL91:=IFELSE(L>REF(L,1) && REF(L,1)>REF(L,2),REF(L,2),0);
HH92:=VALUEWHEN(HH91>0,HH91);
LL92:=VALUEWHEN(LL91>0,LL91);
K91:=IFELSE(CLOSE>HH92,-3,IFELSE(CLOSE<LL92,1,0));
K92:=VALUEWHEN(K91<>0,K91);
G9:=IFELSE(K92=1,HH92,LL92);
G91:=VALUEWHEN(ISLASTBAR,G9);
W91:=K92;
W92:=OPEN-CLOSE;
H9T:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
L9T:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);

DRAWLINE(W91=1 && REF(W91,1)=1,G9,W91=1 && REF(W91,1)=1,REF(G9,1),COLORGREEN),DOT;
DRAWLINE(W91=-3 && REF(W91,1)=-3,G9,W91=-3 && REF(W91,1)=-3,REF(G9,1),COLORRED),DOT;
DRAWSL(K92=1,G9,0,1,0,COLORGREEN),DOT;
DRAWSL(K92=-3,G9,0,1,0,COLORRED),DOT;
BAA9:=1;
MA94:=EMA(CLOSE,10)*BAA9;
HH9:=HHV(HIGH,5)*BAA9;
LL9:=LLV(LOW,5)*BAA9;
H91:=IFELSE(CLOSE>REF(HH9,1),1,0)*BAA9;
L91:=IFELSE(CLOSE<REF(LL9,1),-1,0)*BAA9;
H90:=REF(HIGH,1)*BAA9;
L90:=REF(LOW,1)*BAA9;
P97:=H91+L91*BAA9;
P8:=IFELSE(P97=0,REF(P97,1),P97)*BAA9;
P9:=IFELSE(P8=0,REF(P8,1),P8)*BAA9;
P10:=IFELSE(P9=0,REF(P9,1),P9)*BAA9;
P11:=IFELSE(P10=0,REF(P10,1),P10)*BAA9;
P12:=IFELSE(P11=0,REF(P11,1),P11)*BAA9;
P13:=IFELSE(P12=0,REF(P12,1),P12)*BAA9;
P14:=IFELSE(P13=0,REF(P13,1),P13)*BAA9;
P15:=IFELSE(P14=0,REF(P14,1),P14)*BAA9;
P16:=IFELSE(P15=0,REF(P15,1),P15)*BAA9;
P17:=IFELSE(P16=0,REF(P16,1),P16)*BAA9;
P18:=IFELSE(P17=0,REF(P17,1),P17)*BAA9;
P19:=IFELSE(P18=0,REF(P18,1),P18)*BAA9;
P20:=IFELSE(P19=0,REF(P19,1),P19)*BAA9;
P21:=IFELSE(P20=0,REF(P20,1),P20)*BAA9;
P22:=IFELSE(P21=0,REF(P21,1),P21)*BAA9;
P23:=IFELSE(P22=0,REF(P22,1),P22)*BAA9;
P24:=IFELSE(P23=0,REF(P23,1),P23)*BAA9;
P25:=IFELSE(P24=0,REF(P24,1),P24)*BAA9;
P26:=IFELSE(P25=0,REF(P25,1),P25)*BAA9;
P27:=IFELSE(P26=0,REF(P26,1),P26)*BAA9;
P28:=IFELSE(P27=0,REF(P27,1),P27)*BAA9;
P29:=IFELSE(P28=0,REF(P28,1),P28)*BAA9;
P30:=IFELSE(P29=0,REF(P29,1),P29)*BAA9;
T9:=IFELSE(P30=0,REF(P30,1),P30)*BAA9;
AUTOFILTER;
DD9:=BARSLAST(CROSS(T9=1,0.5));
KK9:=BARSLAST(CROSS(T9=-1,0.5));

N1:=6;
N2:=28;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
VV1:=(C*2+H+L)/4*10;
VV2:=EMA(VV1,13)-EMA(VV1,34);
VV3:=EMA(VV2,5);
VV4:=2*(VV2-VV3)*5.5;
主力撤:=IF(VV4<=0,VV4,0);
主力进:=IF(VV4>=0,VV4,0);
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
买入:=趋势线<=13 && V12>13;
BB:=(趋势线<=13 && V12>13) && FILTER((趋势线<=13 && V12>13),10);
逃顶:=FILTER(趋势线>90 && 趋势线<REF(趋势线,1) && 主力进<REF(主力进,1),8);
KD1:=CROSS(T9=1,0.5) && W91=-3 && DD9<KK9;
KD2:=(W91=-3 && DD9<KK9 && DIFF>DEA && RSI1>RSI2);
PK1:=CROSS(T9=-1,0.5) && W91=1 && KK9<DD9;
PK2:=W91=1 && KK9<DD9 && DIFF<DEA && RSI1<RSI2;
KDD:=BARSLAST(CROSS(W91=-3 && DD9<KK9,0.5))+1;
PKK:=BARSLAST(CROSS(W91=1 && KK9<DD9,0.5))+1;
DD11:=(CROSS(COUNT(KD1 || KD2,KDD)=1,0.5) || KD1);
T1:=CROSS(3.5,价位线) && (DIFF<DEA || RSI1<RSI2);
T2:=逃顶 && (DIFF<DEA || RSI1<RSI2);
T3:=NOT(W91=-3 && DD9<KK9) && REF(W91=-3 && DD9<KK9,1);
T31:=CROSS(DIFF<DEA && RSI1<RSI2,0.5);
T4:=CROSS(COUNT(T1 || T2 || T3 || T31,BARSLAST(DD11)+1)=1,0.5);
KK11:=(CROSS(COUNT(PK1 || PK2,PKK)=1,0.5) || PK1);
S1:=CROSS(价位线,0.3) && (DIFF>DEA || RSI1>RSI2);
S2:=BB && (DIFF>DEA || RSI1>RSI2);
S3:=NOT(W91=1 && DD9>KK9) && REF(W91=1 && DD9>KK9,1);
S31:=CROSS(DIFF>DEA && RSI1>RSI2,0.5);
S4:=CROSS(COUNT(S1 || S2 || S3 || S31,BARSLAST(KK11)+1)=1,0.5);
MA20:=EMA(CLOSE,20);
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,20),COLORYELLOW;
ZYZS:=IFELSE((M1>M2),M2,M1),COLORGREEN;
D10151:=BARSLAST((CROSS(COUNT(KD1 || KD2,KDD)=1,0.5) || KD2) && C>MA20);
K10152:=BARSLAST((CROSS(COUNT(PK1 || PK2,PKK)=1,0.5) || PK2) && C<MA20);
K10152P:=BARSLAST(NOT(W91=1 && KK9<DD9));
D10151P:=BARSLAST(NOT(W91=-3 && DD9<KK9));
PJ:=MA(H-L,20);

DRAWTEXT(CROSS(K10152>K10152P,0.5),L,'多1'),VALIGN0,FONTSIZE15,RGB(255,255,128);
DRAWTEXT(CROSS(K10152<K10152P,0.5),H+PJ,'空1'),VALIGN2,FONTSIZE15,RGB(255,255,128);
DRAWTEXT(CROSS(D10151>D10151P,0.2),L,'平多'),VALIGN2,FONTSIZE15,RGB(255,255,128);


HX7:=HHV(HIGH,38);
LX7:=LLV(LOW,20);
TMP:=K2;
DRAWTEXT(CROSS(TMP,0),HX7,'空2'),FONTSIZE15,RGB(255,255,128);
DRAWTEXT(CROSS(0,TMP),LX7,'多2'),FONTSIZE15,RGB(255,255,128);
MA55:=MA(CLOSE,55),NODRAW;
DRAWTEXT(CROSS(TMP,0)&&CLOSE<=MA55,HX7,'空2'),FONTSIZE15,RGB(255,255,128);
DRAWTEXT(CROSS(0,TMP)&&CLOSE>=MA55,LX7,'多2'),FONTSIZE15,RGB(255,255,128);









HH0:=HHV(HIGH,223);
LL0:=LLV(LOW,496);
HH111:=BARSLAST((HH0>REF(HH0,1)));
LL111:=BARSLAST((LL0<REF(LL0,1)));
A1:=IFELSE((HH111 < LL111),1,IFELSE((HH111 > LL111),-1,0));
AA1:IFELSE(A1>=0,LL0,HH0),COLORCYAN,DOT,NOTEXT;
BA:IFELSE(A1<=0,LL0,HH0),COLORRED,NODRAW,NOTEXT;
DRAWTEXT(CROSS(HH111,LL111),HH0,'开空'),FONTSIZE19;
DRAWTEXT(CROSS(LL111,HH111),LL0,'开多'),FONTSIZE19;
DRAWLINE(HH111>LL111,HIGH,HH111>LL111,OPEN,COLORCYAN);
DRAWLINE(HH111>LL111,LOW,HH111>LL111,CLOSE,COLORCYAN);
DRAWLINE(HH111<=LL111,HIGH,HH111<=LL111,CLOSE,COLORRED);
DRAWLINE(HH111<=LL111,LOW,HH111<=LL111,OPEN,COLORRED);

STICKLINE(HH111>LL111,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(HH111<=LL111,OPEN,CLOSE,COLORRED,1);

STICKLINE(HH111>LL111,OPEN,CLOSE,COLORCYAN,0),COLORCYAN;
STICKLINE(HH111<=LL111,OPEN,CLOSE,COLORRED,0),COLORRED;

STICKLINE1(HH111>LL111,L,H,0,0),COLORCYAN;
STICKLINE1(HH111<=LL111,L,MIN(O,C),0,0),COLORRED;
STICKLINE1(HH111<=LL111,MAX(O,C),H,0,0),COLORRED;






 
 
 
改后的博弈大师指标:
 //,RGB(145,0,0),RGB(0,153,153)

参考价11:=MA(CLOSE,2);
参考价21:=MA(CLOSE,3);
参考价31:=MA(C,10);
FILLRGN(参考价11>=参考价21,参考价11,参考价21),COLOR910000;
FILLRGN(参考价11< 参考价21,参考价11,参考价21),COLOR008643;

HH1:=IFELSE(H<REF(H,11)&&REF(H,15)<REF(H,29),REF(H,21),0);
LL1:=IFELSE(L>REF(L,11)&&REF(L,12)>REF(L,25),REF(L,21),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
//DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);


W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
{
DRAWLINE(K2=1,HIGH,K2=1,HT,RGB(0,153,153));
DRAWLINE(K2=1,LOW,K2=1,LT,RGB(0,153,153));
DRAWLINE(K2=-3,HIGH,K2=-3,HT,RGB(145,0,0));
DRAWLINE(K2=-3,LOW,K2=-3,LT,RGB(145,0,0));
}
STICKLINE(K2>0,OPEN,CLOSE,8,1),COLOR009191; {RGB(0,153,153)}
STICKLINE(K2<=0,OPEN,CLOSE,8,1),COLOR910000;{RGB(145,0,0)}
STICKLINE(W2>0 AND K2<=0,OPEN,CLOSE,8,0),COLOR910000;{RGB(145,0,0)}
STICKLINE(W2>0 AND K2>0,OPEN,CLOSE,8,0),COLOR009191;{RGB(0,153,153)}
DRAWLINE(K2=1 AND REF(K2,1)=1,G,K2=1 AND REF(K2,1)=1,REF(G,1),COLORCYAN),LINETHICK3;
DRAWLINE(K2=-3 AND REF(K2,1)=-3,G,K2=-3 AND REF(K2,1)=-3,REF(G,1),COLORRED),LINETHICK3;
{DRAWSL(K2=1,G,0,1,0,COLORCYAN),LINETHICK3;}
{DRAWSL(K2=-3,G,0,1,0,COLORRED),LINETHICK3;}
AA:=VALUEWHEN(K2=-3,G);
CC:=VALUEWHEN(K2=1,G);
压力线:CC,COLORGREEN,NODRAW;
支撑线:AA,COLORYELLOW,NODRAW;



HH91:=IFELSE(H<REF(H,1) && REF(H,1)<REF(H,2),REF(H,2),0);
LL91:=IFELSE(L>REF(L,1) && REF(L,1)>REF(L,2),REF(L,2),0);
HH92:=VALUEWHEN(HH91>0,HH91);
LL92:=VALUEWHEN(LL91>0,LL91);
K91:=IFELSE(CLOSE>HH92,-3,IFELSE(CLOSE<LL92,1,0));
K92:=VALUEWHEN(K91<>0,K91);
G9:=IFELSE(K92=1,HH92,LL92);
G91:=VALUEWHEN(ISLASTBAR,G9);
W91:=K92;
W92:=OPEN-CLOSE;
H9T:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
L9T:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);

DRAWLINE(W91=1 && REF(W91,1)=1,G9,W91=1 && REF(W91,1)=1,REF(G9,1),COLORGREEN),POINTDOT;
DRAWLINE(W91=-3 && REF(W91,1)=-3,G9,W91=-3 && REF(W91,1)=-3,REF(G9,1),COLORRED),POINTDOT;
{DRAWSL(K92=1,G9,0,1,0,COLORGREEN),POINTDOT;}
{DRAWSL(K92=-3,G9,0,1,0,COLORRED),POINTDOT;}
BAA9:=1;
MA94:=EMA(CLOSE,10)*BAA9;
HH9:=HHV(HIGH,5)*BAA9;
LL9:=LLV(LOW,5)*BAA9;
H91:=IFELSE(CLOSE>REF(HH9,1),1,0)*BAA9;
L91:=IFELSE(CLOSE<REF(LL9,1),-1,0)*BAA9;
H90:=REF(HIGH,1)*BAA9;
L90:=REF(LOW,1)*BAA9;
P97:=H91+L91*BAA9;
P8:=IFELSE(P97=0,REF(P97,1),P97)*BAA9;
P9:=IFELSE(P8=0,REF(P8,1),P8)*BAA9;
P10:=IFELSE(P9=0,REF(P9,1),P9)*BAA9;
P11:=IFELSE(P10=0,REF(P10,1),P10)*BAA9;
P12:=IFELSE(P11=0,REF(P11,1),P11)*BAA9;
P13:=IFELSE(P12=0,REF(P12,1),P12)*BAA9;
P14:=IFELSE(P13=0,REF(P13,1),P13)*BAA9;
P15:=IFELSE(P14=0,REF(P14,1),P14)*BAA9;
P16:=IFELSE(P15=0,REF(P15,1),P15)*BAA9;
P17:=IFELSE(P16=0,REF(P16,1),P16)*BAA9;
P18:=IFELSE(P17=0,REF(P17,1),P17)*BAA9;
P19:=IFELSE(P18=0,REF(P18,1),P18)*BAA9;
P20:=IFELSE(P19=0,REF(P19,1),P19)*BAA9;
P21:=IFELSE(P20=0,REF(P20,1),P20)*BAA9;
P22:=IFELSE(P21=0,REF(P21,1),P21)*BAA9;
P23:=IFELSE(P22=0,REF(P22,1),P22)*BAA9;
P24:=IFELSE(P23=0,REF(P23,1),P23)*BAA9;
P25:=IFELSE(P24=0,REF(P24,1),P24)*BAA9;
P26:=IFELSE(P25=0,REF(P25,1),P25)*BAA9;
P27:=IFELSE(P26=0,REF(P26,1),P26)*BAA9;
P28:=IFELSE(P27=0,REF(P27,1),P27)*BAA9;
P29:=IFELSE(P28=0,REF(P28,1),P28)*BAA9;
P30:=IFELSE(P29=0,REF(P29,1),P29)*BAA9;
T9:=IFELSE(P30=0,REF(P30,1),P30)*BAA9;
AUTOFILTER;
DD9:=BARSLAST(CROSS(T9=1,0.5));
KK9:=BARSLAST(CROSS(T9=-1,0.5));

N1:=6;
N2:=28;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
VV1:=(C*2+H+L)/4*10;
VV2:=EMA(VV1,13)-EMA(VV1,34);
VV3:=EMA(VV2,5);
VV4:=2*(VV2-VV3)*5.5;
主力撤:=IF(VV4<=0,VV4,0);
主力进:=IF(VV4>=0,VV4,0);
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
买入:=趋势线<=13 && V12>13;
BB:=(趋势线<=13 && V12>13) && FILTER((趋势线<=13 && V12>13),10);
逃顶:=FILTER(趋势线>90 && 趋势线<REF(趋势线,1) && 主力进<REF(主力进,1),8);
KD1:=CROSS(T9=1,0.5) && W91=-3 && DD9<KK9;
KD2:=(W91=-3 && DD9<KK9 && DIFF>DEA && RSI1>RSI2);
PK1:=CROSS(T9=-1,0.5) && W91=1 && KK9<DD9;
PK2:=W91=1 && KK9<DD9 && DIFF<DEA && RSI1<RSI2;
KDD:=BARSLAST(CROSS(W91=-3 && DD9<KK9,0.5))+1;
PKK:=BARSLAST(CROSS(W91=1 && KK9<DD9,0.5))+1;
DD11:=(CROSS(COUNT(KD1 || KD2,KDD)=1,0.5) || KD1);
T1:=CROSS(3.5,价位线) && (DIFF<DEA || RSI1<RSI2);
T2:=逃顶 && (DIFF<DEA || RSI1<RSI2);
T3:=NOT(W91=-3 && DD9<KK9) && REF(W91=-3 && DD9<KK9,1);
T31:=CROSS(DIFF<DEA && RSI1<RSI2,0.5);
T4:=CROSS(COUNT(T1 || T2 || T3 || T31,BARSLAST(DD11)+1)=1,0.5);
KK11:=(CROSS(COUNT(PK1 || PK2,PKK)=1,0.5) || PK1);
S1:=CROSS(价位线,0.3) && (DIFF>DEA || RSI1>RSI2);
S2:=BB && (DIFF>DEA || RSI1>RSI2);
S3:=NOT(W91=1 && DD9>KK9) && REF(W91=1 && DD9>KK9,1);
S31:=CROSS(DIFF>DEA && RSI1>RSI2,0.5);
S4:=CROSS(COUNT(S1 || S2 || S3 || S31,BARSLAST(KK11)+1)=1,0.5);
MA20:=EMA(CLOSE,20);
M1:=MA(CLOSE,5);
M2:=MA(CLOSE,20),COLORYELLOW;
ZYZS:=IFELSE((M1>M2),M2,M1),COLORGREEN;
D10151:=BARSLAST((CROSS(COUNT(KD1 || KD2,KDD)=1,0.5) || KD2) && C>MA20);
K10152:=BARSLAST((CROSS(COUNT(PK1 || PK2,PKK)=1,0.5) || PK2) && C<MA20);
K10152P:=BARSLAST(NOT(W91=1 && KK9<DD9));
D10151P:=BARSLAST(NOT(W91=-3 && DD9<KK9));
PJ:=MA(H-L,20);

DRAWTEXT(CROSS(K10152>K10152P,0.5),L,'多1'),VALIGN0,FONTSIZE15,COLORYELLOW;
DRAWTEXT(CROSS(K10152<K10152P,0.5),H+PJ,'空1'),VALIGN2,FONTSIZE15,COLORYELLOW;
DRAWTEXT(CROSS(D10151>D10151P,0.2),L,'平多'),VALIGN2,FONTSIZE15,COLORYELLOW;


HX7:=HHV(HIGH,38);
LX7:=LLV(LOW,20);
TMP:=K2;
DRAWTEXT(CROSS(TMP,0),HX7,'空2'),FONTSIZE15,COLORYELLOW;
DRAWTEXT(CROSS(0,TMP),LX7,'多2'),FONTSIZE15,COLORYELLOW;
MA55:=MA(CLOSE,55),NODRAW;
DRAWTEXT(CROSS(TMP,0)&&CLOSE<=MA55,HX7,'空2'),FONTSIZE15,COLORYELLOW;
DRAWTEXT(CROSS(0,TMP)&&CLOSE>=MA55,LX7,'多2'),FONTSIZE15,COLORYELLOW;




HH0:=HHV(HIGH,223);
LL0:=LLV(LOW,496);
HH111:=BARSLAST((HH0>REF(HH0,1)));
LL111:=BARSLAST((LL0<REF(LL0,1)));
A1:=IFELSE((HH111 < LL111),1,IFELSE((HH111 > LL111),-1,0));
AA1:IFELSE(A1>=0,LL0,HH0),COLORCYAN,POINTDOT,NODRAW;
BA:IFELSE(A1<=0,LL0,HH0),COLORRED,NODRAW,NODRAW;
DRAWTEXT(CROSS(HH111,LL111),HH0,'开空'),FONTSIZE19;
DRAWTEXT(CROSS(LL111,HH111),LL0,'开多'),FONTSIZE19;
DRAWLINE(HH111>LL111,HIGH,HH111>LL111,OPEN,COLORCYAN);
DRAWLINE(HH111>LL111,LOW,HH111>LL111,CLOSE,COLORCYAN);
DRAWLINE(HH111<=LL111,HIGH,HH111<=LL111,CLOSE,COLORRED);
DRAWLINE(HH111<=LL111,LOW,HH111<=LL111,OPEN,COLORRED);

STICKLINE(HH111>LL111,OPEN,CLOSE,8,0),COLORCYAN;
STICKLINE(HH111<=LL111,OPEN,CLOSE,8,1),COLORRED;

STICKLINE(HH111>LL111,OPEN,CLOSE,8,0),COLORCYAN;
STICKLINE(HH111<=LL111,OPEN,CLOSE,8,0),COLORRED;

STICKLINE(HH111>LL111,L,H,0,0),COLORCYAN;
STICKLINE(HH111<=LL111,L,MIN(O,C),0,0),COLORRED;
STICKLINE(HH111<=LL111,MAX(O,C),H,0,0),COLORRED; 文华图片.jpg博弈大师的显示.png<!-- 咨询内容:

附件 :

-->

 

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

博易技术人员: 请问一下你这个指标怎么用呢
可以加我QQ聊一下?
425614929
  此类公式不能修改,画线函数不匹配 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容