以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- TB代码转换成金字塔,谢谢 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=158485) |
-- 作者:代人发贴 -- 发布时间:2017/10/10 13:44:25 -- TB代码转换成金字塔,谢谢 股票只做多不做空 /ParamsNumeric capital(50000);Numeric length1(11);Numeric length2(42);Numeric length3(53);Numeric length4(178);Varsbool condition1;bool condition2;Numeric maxPrice;Numeric minPrice;Numeric lots;Begin/ /If(!CallAuctionFilter) Return;lots=Ceiling(capital/(Close*100),1);condition1= close[2] > close[length1] and close[9] > close[length4] and close[1] > open[1] and close[138]>open[length2] and close[1] > open[length3];
|
-- 作者:pyd -- 发布时间:2017/10/10 13:55:51 -- zijin:=50000; lots:=zijin/Close; |