九毛八公式指标
公式模块:
比如 标记 3天的,今天星期四,就在星期一的那根k线做个标记,比如一个点,一个箭头之类的,然后还显示当天收盘价。
gg1:=crOSS(ISNULL(REFX(&CLOSE,5)),0.8);
gg2:=CROSS(ISNULL(REFX(&CLOSE,12)),0.8);
gg3:=CROSS(ISNULL(REFX(&CLOSE,30)),0.8);
gg4:=CROSS(ISNULL(REFX(&CLOSE,60)),0.8);
gg5:=CROSS(ISNULL(REFX(&CLOSE,89)),0.8);
DRAWTEXT(gg1,H*1.01,'*'+TOSTRING(C,2));
DRAWTEXT(gg2,H*1.01,'*'+TOSTRING(C,2));
DRAWTEXT(gg3,H*1.01,'*'+TOSTRING(C,2));
DRAWTEXT(gg4,H*1.01,'*'+TOSTRING(C,2));
DRAWTEXT(gg5,H*1.01,'*'+TOSTRING(C,2));
t5:=backset(barstatus=2,5);
tk5:=ref(t5,1)=0 and t5;
t12:=backset(barstatus=2,12);
tk12:=ref(t12,1)=0 and t12;
vertline(tk5 or tk12,1);