Rss & SiteMap

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

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

标题:[原创]基本面量化交易

1楼
z7c9 发表于:2013/3/25 17:01:35

runmode:1;

account:='888888';

lots:=volunit*10;

pb:=close/finance(34);
roe:=finance(37);

entrylongcond:=pb<3 and roe>8;
exitlongcond:=pb>3 or roe<8;

if tbuyholdingex(account,stklabel,1)=0 then begin
 if entrylongcond then
  tbuy(1,lots,lmt,close,0,account,stklabel); 
end

if tbuyholdingex(account,stklabel,1)>0 then begin
 if exitlongcond then
  tsell(1,lots,lmt,close,0,account,stklabel); 
end

 

 

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


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