以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  这个为什么有白色的三角啊?。请老师指导下,万分感谢!  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=30156)

--  作者:xhbsy007
--  发布时间:2012/10/28 10:50:22
--  这个为什么有白色的三角啊?。请老师指导下,万分感谢!

这个为什么有白色的三角啊?我需要每次上穿下穿都反手。请老师指导下,万分感谢!

 

 

 

MA20:MA(C,20);
XD:=CROSS(C,MA20);
XK:=CROSS(MA20,C);

if holding>0 and XK then sell(1,1,LIMIT,MA20);
if holding<0 and XD then sellshort(1,1,LIMIT,MA20);
if holding=0 and XD then buy(1,1,LIMIT,MA20);
if holding=0 and XK then buyshort(1,1,LIMIT,MA20);


--  作者:xhbsy007
--  发布时间:2012/10/28 10:51:57
--  
请老师指导下,万分感谢! 
--  作者:xhbsy007
--  发布时间:2012/10/28 11:05:12
--  

 用20线 正反手  ;仓位1手


--  作者:supercan
--  发布时间:2012/10/28 11:07:02
--  
当K线走完,ma20的价格还能成交吗?除非用市场价格。
[此贴子已经被作者于2012-10-28 11:08:14编辑过]

--  作者:xhbsy007
--  发布时间:2012/10/28 11:57:19
--  

用来测试的 


--  作者:王锋
--  发布时间:2012/10/28 11:57:51
--  
http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=332 问题26
--  作者:xhbsy007
--  发布时间:2012/10/28 11:59:08
--  
测试最大收益。。其实任何模型 的收益高低 来自于你的介入点位置。。这个点掌握的好于不好 很重要。。我需要先把最大收益测试出来
--  作者:xhbsy007
--  发布时间:2012/10/28 12:31:13
--  

老师啊:能否直接帮我改下啊。 帖子看了 还是弄不明白


--  作者:xhbsy007
--  发布时间:2012/10/28 12:43:59
--  

MA20:MA(C,20);
XD:=CROSS(C,MA20);
XK:=CROSS(MA20,C);

if holding>0 and XK then sell(C<MA20,1,LIMIT,MA20);
if holding<0 and XD then sellshort(C>MA20,1,LIMIT,MA20);
if holding=0 and XD then buy(C>MA20,1,LIMIT,MA20);
if holding=0 and XK then buyshort(C<MA20,1,LIMIT,MA20);

 

 

还是不对啊??


--  作者:xhbsy007
--  发布时间:2012/10/28 21:54:10
--  

有飘过的的大哥 会的吗啊?帮我改下  谢谢