Rss & SiteMap
金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/
//应用:后台程序化
//仅以多头为例
ast:='ast';// 全局变量,记录开仓资金
IF CON1 AND THOLDING=0 THEN
BEGIN
TBUY(1,1,MKT);
EXTGBDATASET('ast',tasset);//记录开仓时的总资金
END
if tasset<=EXTGBDATA('ast')*0.98 and tholding>0 then tsell(1,1,mkt);