Rss & SiteMap

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

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

标题:金字塔直接反手如何写

1楼
qq代人发帖 发表于:2013/10/8 11:13:22
请教:金字塔直接反手如何写?
2楼
vermouth 发表于:2013/10/8 11:18:09
if cond then begin
sell();
buyshort();
end


3楼
jinzhe 发表于:2013/10/8 11:18:34

举例:

 


input:m(5),n(20);
ma5:ma(c,m);
ma20:ma(c,20);

if cross(c,ma20) then begin
 sellshort(holding<0,0,thisclose);
 buy(holding=0,1,thisclose);
end

if cross(ma20,c) then begin
 sell(holding>0,0,thisclose);
 buyshort(holding=0,1,thisclose);
end

 

 

说明:20均线和5均线上下穿进行反手,以上是范例

4楼
zzsg 发表于:2013/10/8 11:56:31
谢谢
非常感谢
共4 条记录, 每页显示 10 条, 页签: [1]


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