以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助] 老师 不会写  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=51949)

--  作者: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;


这个移动止盈不起作用



--  作者:jinzhe
--  发布时间:2013/5/13 10:22:44
--  
策略是多空都有,还是只开空
--  作者:rfgvb
--  发布时间:2013/5/13 10:25:02
--  
策略有多空   

老师  你写的盈动止盈 不起作用呀

--  作者: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;


--  作者:rfgvb
--  发布时间:2013/5/13 10:52:14
--  
那移动止盈部分呢
--  作者:jinzhe
--  发布时间:2013/5/13 11:00:32
--  
移动止盈参考系统子自带的公式,论坛里面也有很多关于移动止损止盈的策略