以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://www.weistock.com/bbs/list.asp?boardid=4)
----  将策略改为突破上轨多,跌破上轨平。突破下轨空,上破下轨平。  (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=188465)

--  作者:qq代人发帖
--  发布时间:2021/5/25 14:37:52
--  将策略改为突破上轨多,跌破上轨平。突破下轨空,上破下轨平。
LastH:CALLSTOCK(\'\',vtHIGH,6,-1);
lastL:CALLSTOCK(\'\',vtLOW,6,-1);

if cross(c,lastH) then 
begin 
SELLSHORT(holding<0,holding,market);
buy(holding=0,1,market);    
END

if cross(lastL,l) then 
begin 
SELL(holding>0,holding,market);
BUYSHORT(holding=0,1,market);    
END  
将策略改为突破上轨多,跌破上轨平。突破下轨空,上破下轨平。
图片点击可在新窗口打开查看此主题相关图片如下:4.png
图片点击可在新窗口打开查看

--  作者:gxx978
--  发布时间:2021/5/25 14:59:33
--  
已回复,参考连接:http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=188462