以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  引用前60分钟收盘价  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=145474)

--  作者:tanyongde
--  发布时间:2016/12/29 10:47:44
--  引用前60分钟收盘价
    引用前60分钟收盘价,怎样写?
--  作者:jinzhe
--  发布时间:2016/12/29 10:49:40
--  
callstock(stklabel,vtclose,5,-1);
--  作者:tanyongde
--  发布时间:2016/12/29 11:02:43
--  
 不好意思, 错了,是引用60分种21日线的价格  (ma21:ref(ma(close,21),1),colorblue,linethick2;)
--  作者:jinzhe
--  发布时间:2016/12/29 11:04:03
--  
stkindi(\'\',\'ma.ma1(21)\',0,5,-1);
--  作者:tanyongde
--  发布时间:2016/12/29 11:35:22
--  
谢谢
--  作者:tanyongde
--  发布时间:2016/12/29 13:07:01
--  

  h 穿破 line2 时,按当时h价+3*mindiff委托

  l 跌破 line2 时,按当时L价-3*mindiff委托

  可以按下面写,会有问题吗?

long2:=cross(h,line2);

short2:=cross(line2,l);

if myhoiding=0 and long2 and h>line1 then buy(1,p,limitr,h+3*mindiff),ignorecheckprice;

if myhoiding=0 and short2 and l<line1 then buyshort(1,p,limitr,l-3*mindiff),ignorecheckprice;

--  作者:jinzhe
--  发布时间:2016/12/29 13:16:09
--  
可以