Rss & SiteMap

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

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

标题:日内交易如何写?

1楼
huoyang14895 发表于:2016/3/8 10:55:48
请问:(图表交易)1.日内交易如何写?
                          2.日内交易亏损,下一手加一手单,如何写。
       谢
2楼
pyd 发表于:2016/3/8 10:59:38

1.日内交易是当日平仓的意思的吗?那么处理办法是:

if time0>=timetot0(closetime(0))-60*5 then begin

   sell(1,0,marketr);

   sellshort(1,0,marketr);

end

 

即收盘前5分钟平仓

需要另外的在开仓条件里面加上: time0<timetot0(closetime(0))-60*5

     

2

variable:ss=1;//定义下单数量,即开仓手数写ss

if holding>0 and 平多条件 then begin

   sell(1,0,marketr);

   if numprofit(1)<=0 then ss:=ss+1;

end

 

if holding<0  and 平空条件 then begin

   sellshort(1,0,marketr);

   if numprofit(1)<=0  then ss:=ss+1;

end

3楼
huoyang14895 发表于:2016/3/8 13:06:21
共3 条记录, 每页显示 10 条, 页签: [1]


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