Rss & SiteMap

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

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

标题:[交易系统]抛物线转向系统

1楼
z7c9 发表于:2011/10/24 19:45:30

 

runmode:0;

input:p(120);
input:n(120);
input:s(2);
input:m(20);

myma:=ma(open,p);
mysar:=sar(n,s,m);

entrylongcond:=open>myma and high>=mysar;
exitlongcond:=low<=mysar;

entryshortcond:=openexitshortcond:=high>=mysar;

if holding=0 then begin
if entrylongcond then
buy(1,1,limitr,max(open,mysar));

if entryshortcond then
buyshort(1,1,limitr,min(open,mysar));
end

if holding>0 then begin
if exitlongcond then
sell(1,holding,limitr,min(open,mysar));
end

if holding<0 then begin
if exitshortcond then
sellshort(1,holding,limitr,max(open,mysar));
end

盈亏:asset-500000,noaxis,coloryellow,linethick2;

2楼
a7777 发表于:2013/1/29 21:38:15
图片点击可在新窗口打开查看
3楼
linxycca 发表于:2013/3/4 15:38:03
分享一下
4楼
jiangsen 发表于:2013/3/21 18:30:29
5楼
jzts 发表于:2013/3/22 0:29:02

公式好象不完全...

共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.