这个指标在通达信能用,而且看起来很准确,检测也没有未来函数,可惜飞狐上通不过,高手能否改成飞狐源码,谢谢。(此指标也来自本论坛,具体哪个贴子找不到了)
源码如下:
DRAWGBK(C>0, RGB(5,40,30),RGB(5,60,40),1,0,0);
DRAWTEXT_FIX(1,0,0.00,0,'★红箭头买入!'),COLORRED;
DRAWTEXT_FIX(1,0,0.5,0,'★绿箭头卖出!'),COLORGREEN;
{进场}
P:=21;
WH1:=IF(L=LLV(L,P),L,DRAWNULL);
WH2:=CONST(BARSLAST(WH1!=DRAWNULL));
CURRBARSCOUNT<=WH2+1 AND L=LLV(L,P),COLOR0000FF,LINETHICK2;
{止盈}
H1:=IF(H=HHV(H,P),H,DRAWNULL);
H2:=CONST(BARSLAST(H1!=DRAWNULL));
CURRBARSCOUNT<=H2+1 AND H=HHV(H,P),COLORGREEN, LINETHICK2;