以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 参数怎样改变 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=90233) |
-- 作者:tzx88518 -- 发布时间:2016/1/19 12:42:45 -- 参数怎样改变 老师: 请问:我想让策略中的参数随均线价格而变化怎么写。 比方说:ma:=5000时,macd参数为:(26,12,9),ma:=1000时将macd的参数自动改成(30,15,10). 谢谢! |
-- 作者:jinzhe -- 发布时间:2016/1/19 13:07:28 -- if ma=5000 then begin p:=26; s:=12; m:=9; end
if ma=1000 then begin p:=30; s:=15; m:=10; end
DIFF : EMA(CLOSE,S) - EMA(CLOSE,P); |
-- 作者:tzx88518 -- 发布时间:2016/1/19 13:14:27 -- 谢谢! |