Rss & SiteMap

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

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

标题:[求助] 老师 不会写

1楼
rfgvb 发表于:2013/5/13 10:17:45
1、日内判断:  如果上次开的空单亏损   ,这次就给空信号不开空 



2、写第一个,后面的照着写

 

variable:win=0;

if 开仓条件 and holding=0 then begin

buy;

win:=c-enterprice;

end

 

if c-enterprice>win then win:=c-enterprice;

 

if win>=10*mindiff and c-enterprice<=3*mindiff then sell;


这个移动止盈不起作用


2楼
jinzhe 发表于:2013/5/13 10:22:44
策略是多空都有,还是只开空
3楼
rfgvb 发表于:2013/5/13 10:25:02
策略有多空   

老师  你写的盈动止盈 不起作用呀
4楼
jinzhe 发表于:2013/5/13 10:44:27

d1: valuewhen(平空条件 and holding<0,date);

o1:valuewhen(平空条件 and holding<0,openprofit);

if date=d1 and 开空条件 and o1>=0 then buyshort;

5楼
rfgvb 发表于:2013/5/13 10:52:14
那移动止盈部分呢
6楼
jinzhe 发表于:2013/5/13 11:00:32
移动止盈参考系统子自带的公式,论坛里面也有很多关于移动止损止盈的策略
共6 条记录, 每页显示 10 条, 页签: [1]


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