以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://222.73.7.161/bbs/index.asp)
--  公式模型编写问题提交  (http://222.73.7.161/bbs/list.asp?boardid=4)
----  [原创]棋盘指标  (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=5073)

--  作者:z7c9
--  发布时间:2011/1/31 11:01:19
--  [原创]棋盘指标

 

 

以下内容为程序代码:

1 runmode:1;
2
3 昨开:ref(open,1),linethick0;
4 昨高:ref(high,1),linethick0;
5 昨低:ref(low,1),linethick0;
6 昨收:ref(close,1),linethick0;
7 昨结:ref(amount/vol/multiplier,1),linethick0;
8
9 今开:open,linethick0;


 

以下内容为程序代码:

1 runmode:1;
2
3 昨开:="Test1.昨开#day";
4 昨高:="Test1.昨高#day";
5 昨低:="Test1.昨低#day";
6 昨收:="Test1.昨收#day";
7 昨结:="Test1.昨结#day";
8 今开:="Test1.今开#day";
9 涨停:=trimprice(昨结*1.03);
10 跌停:=trimprice(昨结*0.97);
11
12 drawline(time=090500,昨开,time=150000 or islastbar,昨开,0);
13 drawline(time=090500,昨高,time=150000 or islastbar,昨高,0);
14 drawline(time=090500,昨低,time=150000 or islastbar,昨低,0);
15 drawline(time=090500,昨收,time=150000 or islastbar,昨收,0);
16 drawline(time=090500,昨结,time=150000 or islastbar,昨结,0);
17 drawline(time=090500,今开,time=150000 or islastbar,今开,0);
18 drawline(time=090500,涨停,time=150000 or islastbar,涨停,0);
19 drawline(time=090500,跌停,time=150000 or islastbar,跌停,0);
20
21 vertline(time=090500,涨停,跌停);
22 vertline(time=093500,涨停,跌停);
23 vertline(time=100500,涨停,跌停);
24 vertline(time=103500,涨停,跌停);
25 vertline(time=110500,涨停,跌停);
26 vertline(time=113000,涨停,跌停);
27 vertline(time=133500,涨停,跌停);
28 vertline(time=140500,涨停,跌停);
29 vertline(time=143500,涨停,跌停);
30 vertline(time=150000,涨停,跌停);
31

 

 

[此贴子已经被作者于2011-1-31 12:26:56编辑过]