以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  代码编写请教  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=168362)

--  作者:yuanman
--  发布时间:2019/2/22 9:15:21
--  代码编写请教
请老师帮助编写;买开仓后,最高价大于中轨小于上轨,X1下穿MA1,平多。谢谢!
--  作者:FireScript
--  发布时间:2019/2/22 10:01:17
--  
 
sellcond:holding>0 and h>mid and h<up and cross(ma1,x1);
if sellcond then sell(holding>0,holding,market);

这里的mid 中轨  up 上轨 你自行把他们的定义补充下就行了。

--  作者:yuanman
--  发布时间:2019/2/22 11:46:41
--  
谢谢老师!