Rss & SiteMap

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

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

标题:[求助]交易系统的调整

1楼
活不明白 发表于:2010/7/1 11:53:01

 

(注:我想以上的30分钟的周期为:9:30、10:00、10:45、11:15、13:45、14:15、14:45、15:00这几个时间段的最高点、最低点作为买卖依据,请问以下程序怎么调整?)

//《30分钟日内反转系统》

//使用周期1分钟图表

//


 

//准备需要的中间变量

h30:=ref(hhv(h,30),1);     

L30:=ref(llv(L,30),1);      


 

//画出多头的止损线

partline(holding>0,L30,colorred);


 

//建立多头的进场条件

long:=h>h30  and  time>093000  and  time<145200;

if  long  then

       begin

       sellshort(holding<0,holding,limitr,h30);

       buy(holding=0,20,limitr,h30);             

       end

   

//建立空头的进场条件

short:=L<L30 and time>093000 and time<145200;

if short then

       begin

       sell(holding>0,0,limitr,L30);

       buyshort(holding=0,20,limitr,L30);           

       end


 

//画出空头的止损线

partline(holding<0,h30,colorgreen);


 

//收盘前平仓

sell(time>145500 and holding>0,0,thisclose);

sellshort(time>145500 and holding<0,0,thisclose);


 

资产:ASSET,LINETHICK0;

可用现金:CASH(0),LINETHICK0;

持仓:HOLDING,LINETHICK0;


 

 

2楼
admin 发表于:2010/7/3 15:17:02
以最低点和最高点为买卖依据是什么意思,我们没人能看的懂
3楼
蔡宛宏 发表于:2012/2/1 17:53:51
能不能把思路具体说明白?
共3 条记录, 每页显示 10 条, 页签: [1]


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