咨詢內(nèi)容:
這是文華上的一個波段指標(biāo),但博易上用不了,請高手改一下,加粗的地方有問題通不過
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0,COLORCYAN),LINETHICK2;
DRAWSL(K2=-3,G,0,1,0,COLORYELLOW),LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'賣↓');
DRAWTEXT(CROSS(0,TMP),LX,'買↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'賣↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'買↑');
?
?來源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1)?AND?HX<REF(HX,2)?AND?HX<REF(HX,4)?AND?LX<REF(LX,1)?AND?LX<REF(LX,3)?AND?LX<REF(LX,5)?AND?OPEN>CLOSE?AND?(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1)?AND?LX>REF(LX,3)?AND?LX>REF(LX,5)?AND?HX>REF(HX,1)?AND?HX>REF(HX,2)?AND?HX>REF(HX,4)?AND?OPEN<CLOSE?AND?(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1?AND?REF(TMP,1)=1,G,TMP=1?AND?REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3?AND?REF(TMP,1)=-3,G,TMP=-3?AND?REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0),COLORCYAN,LINETHICK2;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'賣↓');
DRAWTEXT(CROSS(0,TMP),LX,'買↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0)?AND?CLOSE<=MA55,HX,'賣↓');
DRAWTEXT(CROSS(0,TMP)?AND?CLOSE>=MA55,LX,'買↑');
?
您的指標(biāo)我會發(fā)給我們技術(shù)人員看一下。
來源 程序化久久網(wǎng)