在多筆線圖上使用。
1,能夠取得N天的均價(jià),如三天就取1,2,3號(hào)三天的均價(jià),等第4天開(kāi)盤(pán)時(shí)就取2,3, 4號(hào)的均價(jià),把1號(hào)的價(jià)格排除。
2, 以均線表示,當(dāng)價(jià)格上穿或下穿均線時(shí)用劍頭標(biāo)明,當(dāng)一個(gè)劍頭出現(xiàn)時(shí)鎖定30秒鐘,之后再重新計(jì)算。
3, 向上劍頭出現(xiàn)時(shí)把K線涂染成紅色,向下時(shí)染成藍(lán)色。
先這么多了,謝謝!!
ma3:ma(c,3);
cond1:=cross(c,ma3);
cond2:=cross(ma3,c);
drawicon(cond1,close,4);
drawicon(cond1,close,5);
if cond1 then begin
extgbdataset('time',timetot0(currenttime));
end
if cond2 then begin
extgbdataset('time1',timetot0(currenttime));
end
if cond1 and timetot0(currenttime)=extgbdata('time')+15 then stickline(islastbar,o,c,10,0),colorred;
if cond2 and timetot0(currenttime)=extgbdata('time1')+15 then stickline(islastbar,o,c,10,0),colorblue;