一個思路請版主寫成指標!! [金字塔]
- 咨詢內容:
在多筆線圖上使用。
1,能夠取得N天的均價,如三天就取1,2,3號三天的均價,等第4天開盤時就取2,3, 4號的均價,把1號的價格排除。
2, 以均線表示,當價格上穿或下穿均線時用劍頭標明,當一個劍頭出現時鎖定30秒鐘,之后再重新計算。
3, 向上劍頭出現時把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;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容