在多筆線圖上使用。
1,能夠取得N天的均價,如三天就取1,2,3號三天的均價,等第4天開盤時就取2,3, 4號的均價,把1號的價格排除。
2, 以均線表示,當價格上穿或下穿均線時用劍頭標明,當一個劍頭出現(xiàn)時鎖定30秒鐘,之后再重新計算。
3, 向上劍頭出現(xiàn)時把K線涂染成紅色,向下時染成藍色。
先這么多了,謝謝!!
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;