源碼: P:=21; WH1:=IF(L=LLV(L,P),L,DRAWNULL); WH2:=CONST(BARSLAST(WH1!=DRAWNULL)); WH3:=CONST(IF(WH2=0,H,REF(H,WH2))); WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1); WH5:=CONST(IF(WH4=0,H,REF(H,WH4))); WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1); 進(jìn)場(chǎng):IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED; IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED; DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),進(jìn)場(chǎng),'進(jìn)場(chǎng)線'),COLORRED; 超跌進(jìn)場(chǎng):IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE; DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌進(jìn)場(chǎng),'超跌進(jìn)場(chǎng)線'),COLORCB21BE; H1:=IF(H=HHV(H,P),H,DRAWNULL); H2:=CONST(BARSLAST(H1!=DRAWNULL)); H3:=CONST(IF(H2=0,L,REF(L,H2))); H4:=CONST(REF(BARSLAST(L<H3),H2+1)+H2+1); H5:=CONST(IF(H4=0,L,REF(L,H4))); H6:=CONST(REF(BARSLAST(L<H5),H4+1)+H4+1); 止損:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),COLORYELLOW; IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE; DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止損,'止損線'),COLORYELLOW; 止盈:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE; DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈線'),COLORCB21BE;DRAWTEXT_FIX(C>O,0.01,0.9,0,'WWW.CXH99.COM'),COLORRED; DRAWTEXT_FIX(C>O,1,1,0,'<span style='display:none;'><a data-cke-saved-href='http://www.' href='http://www.'>程序化交易模型</a></span>'),COLORRED; 點(diǎn)擊復(fù)制上述代碼粘貼到到公式管理器 |
|