Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:一个思路请版主写成指标!!

1楼
jjjckk 发表于:2014/2/26 10:11:24

在多笔线图上使用。

 

1,能够取得N天的均价,如三天就取1,2,3号三天的均价,等第4天开盘时就取2,3, 4号的均价,把1号的价格排除。

 

2, 以均线表示,当价格上穿或下穿均线时用剑头标明,当一个剑头出现时锁定30秒钟,之后再重新计算。

 

3, 向上剑头出现时把K线涂染成红色,向下时染成蓝色。

 

先这么多了,谢谢!!

2楼
jinzhe 发表于:2014/2/26 10:34:15

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;

 

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.04688 s, 3 queries.