以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  isup和isdown这两个函数怎么用  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=57934)

--  作者:vermouth
--  发布时间:2013/10/24 9:34:49
--  isup和isdown这两个函数怎么用
当第一根K线跟第二根K线是阴线的时候。如果第三根K线是阳线就在第四根K线上面开空。这个怎么写。麻烦老师了。
--  作者:jinzhe
--  发布时间:2013/10/24 9:50:53
--  
if ref(isup,1) and ref(isdown,2) and ref(isdown,3) then buyshort(holding=0,1,thisclose);
--  作者:vermouth
--  发布时间:2013/10/24 9:59:42
--  
以下是引用jinzhe在2013/10/24 9:50:53的发言:
if ref(isup,1) and ref(isdown,2) and ref(isdown,3) then buyshort(holding=0,1,thisclose);
平仓条件是当再出现阳线的时候平仓。这个怎么写啊。老师


--  作者:jinzhe
--  发布时间:2013/10/24 10:02:20
--  
if isup then sellshort(1,0,thisclose);
--  作者:vermouth
--  发布时间:2013/10/24 10:18:12
--  
以下是引用jinzhe在2013/10/24 10:02:20的发言:
if isup then sellshort(1,0,thisclose);
我加了一个sar的指标进去。
if time>093000 and holding=0 and ref(isup,1) and ref(isdown,2) and ref(isdown,3) and ref(c,3)<sar(10,2,20)
平仓条件里面怎么写等这个sar指标的那一段走完再平仓啊?


--  作者:jinzhe
--  发布时间:2013/10/24 10:23:08
--  

什么叫SAR指标走完?k线走完SAR值固定后再平常?