请问金字塔能否在触及止盈或者止损价格后立即平仓?如果可以如何编写指标?谢谢!
if holding>0 and c-enterprice>5*mindiff then sell(1,0,market);//多头止盈
if holding>0 and enterprice-c>3*mindiff then sell(1,0,market);//多头止损
if holding<0 and enterprice-c>5*mindiff then sellshort(1,0,market);//空头止盈
if holding<0 and c-enterprice>3*mindiff then sellshort(1,0,market);//空头止损
这个是上次JINZHE,好像是这样的吧
if holding<0 and enterprice-c>5*mindiff then sellshort(1,0,market);//空头止盈
market指令应该是下一根K线开盘市价,我想知道,触及到价格就平仓?谢谢。
对于价位的理解是错误 价格指的是下个k线开盘价,不是说到了下个k线开盘再下单
触及就下单在图表交易设置里面设置成一秒固定时间间隔
图表交易一个开仓条件只会执行一次,
每根k线操作不止一次,楼主用的是后台?