Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
variable:h1=0;
if date<>ref(date,1) then h1:=holding;//获取昨天的剩余持仓量
if time>=151000 then hh:=holding-h1;//用总持仓-昨天的剩余持仓来获取今日成交的持仓
if time>=151200 then sell(holding>0,hh/2,market);//平掉今日交易量一般的持仓
这个只能笼统的写一下,具体情况要视自身情况而定,绝对不能直接使用