咨詢內(nèi)容:
感恩修改指標(biāo)
老師您好!下面指標(biāo)我修改后檢測通過,但會(huì)壓縮K線圖。感恩您重新幫忙修改一下。
?
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORWHITE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0) OR (ISLASTBAR AND MACD<0),REF(VA3,1)+2),0.5);
前低:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW;
X:IF(COUNT(MACD>0,BARSLAST(VA2))=BARSLAST(VA2),DRAWLINE(VA2,H,REF(VA2,1),REF(H,1),1),
DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(MACD>0 AND C>X AND O>X,C,O,1,0),COLORRED;
STICKLINE(MACD>0 AND C>X AND O
STICKLINE(MACD>0 AND MACD>前高,C,O,1,0),COLORYELLOW;
STICKLINE(REFX(VA2,1) OR REFX(VA4,1),C,O,1,0),COLORGREEN;
JC:=CROSS(DIF,DEA);
JTS:=BARSLAST(DIF
SC:=CROSS(DEA,DIF);
STS:=BARSLAST(DIF>DEA);
價(jià)值低點(diǎn):IF(JTS>0,DRAWLINE(JC,L,REF(JC,1),REF(L,1),1),DRAWNULL),COLORMAGENTA,LINETHICK2;
價(jià)值高點(diǎn):IF(STS>0,DRAWLINE(SC,H,REF(SC,1),REF(H,1),1),DRAWNULL),COLORYELLOW,LINETHICK2;
JGGD:=DRAWLINE(SC,H,REF(SC,1),REF(H,1),1);
WW:=BARSLAST(VA4)<=REF(IF(VA4,BARSNEXT(JC),DRAWNULL),BARSLAST(VA4));
指標(biāo)低點(diǎn):IF(WW,DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1),DRAWNULL),COLORWHITE,LINETHICK2;
白線:=DRAWLINE(VA4,L,REF(VA4,1),REF(L,1),1);
STICKLINE(MAX(C,O)<指標(biāo)低點(diǎn),C,O,1,0),COLORWHITE;
STICKLINE(MAX(C,O)>指標(biāo)低點(diǎn) AND MIN(C,O)<指標(biāo)低點(diǎn),指標(biāo)低點(diǎn),MIN(C,O),1,0),COLORWHITE;
STICKLINE(價(jià)值低點(diǎn)<白線 AND MAX(C,O)>價(jià)值低點(diǎn) AND MIN(C,O)<價(jià)值低點(diǎn),價(jià)值低點(diǎn),
MIN(C,O),1,0),COLORMAGENTA;
STICKLINE(價(jià)值低點(diǎn)<白線 AND MAX(C,O)<價(jià)值低點(diǎn),C,O,1,0),COLORMAGENTA;
DRAWTEXT(價(jià)值低點(diǎn)<白線 AND O<價(jià)值低點(diǎn) AND C>價(jià)值低點(diǎn) AND MACD>REF(MACD,1) AND
REF(C,1)<價(jià)值低點(diǎn) AND JTS>1,L*0.99,'挖坑竣事、還需確認(rèn)'),COLORYELLOW;
DRAWTEXT(JC AND 價(jià)值低點(diǎn)>JGGD,L*0.99,'小心筑頂、紅柱掩護(hù)');
DRAWTEXT(NOT(WW) AND C>價(jià)值高點(diǎn) AND O<價(jià)值高點(diǎn),L*0.99,'簡樸騙術(shù)、時(shí)間調(diào)和');
DRAWTEXT(WW AND C>價(jià)值高點(diǎn) AND O<價(jià)值高點(diǎn),L*0.99,'再漲一段、留意真假'),COLORYELLOW;
?
?
?來源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
您好,目前函數(shù)系統(tǒng)不支持畫線賦值。
明白。謝謝您!
來源 程序化久久網(wǎng)