以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  老师,这是文华的语句,请老师改成金字塔语句。  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=89697)

--  作者:WHSZ_123
--  发布时间:2016/1/11 22:42:18
--  老师,这是文华的语句,请老师改成金字塔语句。
BKHIGH>BKPRICE+N2&&C<BKHIGH-(BKHIGH-BKPRICE)*0.5,SP;//回撤5%转向
SKLOW<SKPRICE-N2&&C>SKLOW+(SKPRICE-SKLOW)*0.5,BP;//回撤5%转向

--  作者:jinzhe
--  发布时间:2016/1/12 8:58:15
--  

if holding>0 and hhv(h,enterbars+1)>enterprice+n2 and c<(hhv(h,enterbars+1)-0.5*(hhv(h,enterbars+1)-enterprice)) then sell(1,0,market);

if holding<0 and llv(l,enterbars+1)<enterprice-n2 and c>(llv(l,enterbars+1)-0.5*(enterprice-llv(l,enterbars+1))) then sellshort(1,0,market);

 


--  作者:WHSZ_123
--  发布时间:2016/1/12 22:19:15
--  
老师,这是文华的语句,请老师改成金字塔语句。  发帖心情 Post By:2016/1/11 22:42:18    Post IP:119.122.167.216[只看该作者

BKHIGH>BKPRICE+N2&&C<BKHIGH-(BKHIGH-BKPRICE)*0.5,SP;//回撤5%转向
SKLOW<SKPRICE-N2&&C>SKLOW+(SKPRICE-SKLOW)*0.5,BP;//回撤5%转向


--  作者:jinzhe
--  发布时间:2016/1/13 8:47:19
--  
以下是引用jinzhe在2016/1/12 8:58:15的发言:

if holding>0 and hhv(h,enterbars+1)>enterprice+n2 and c<(hhv(h,enterbars+1)-0.5*(hhv(h,enterbars+1)-enterprice)) then sell(1,0,market);

if holding<0 and llv(l,enterbars+1)<enterprice-n2 and c>(llv(l,enterbars+1)-0.5*(enterprice-llv(l,enterbars+1))) then sellshort(1,0,market);