Rss & SiteMap

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

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

标题:kd交易系统例子

1楼
Q1304230834 发表于:2012/11/11 19:42:55
//新手学习用,以扩展编写思路

N:=45;P1:=3;P2:=3;P3:=5;
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,P1,1);
K:=SMA(FASTK,P2,1);
D:=SMA(K,P3,1);

long:=cross(k,50);
longend:=cross(50,k);

short:=cross(50,k);
shortend:=cross(k,50);

if holding>0 then begin
sell(longend,1,thisclose);
end

if holding<0 then begin
sellshort(shortend,1,thisclose);
end

////////
if holding=0 then begin
buy(long,1,thisclose);
buyshort(short,1,thisclose);
end
2楼
empty01711 发表于:2013/1/2 18:39:55
谢谢!!!!!!!!!!!!!!!!!
3楼
wcolin 发表于:2013/1/7 22:07:31
谢谢!!!!!!!!!!!!!!!!!
共3 条记录, 每页显示 10 条, 页签: [1]


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