当第一根K线跟第二根K线是阴线的时候。如果第三根K线是阳线就在第四根K线上面开空。这个怎么写。麻烦老师了。
if ref(isup,1) and ref(isdown,2) and ref(isdown,3) then buyshort(holding=0,1,thisclose);
以下是引用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);
平仓条件是当再出现阳线的时候平仓。这个怎么写啊。老师
if isup then sellshort(1,0,thisclose);
以下是引用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指标的那一段走完再平仓啊?
什么叫SAR指标走完?k线走完SAR值固定后再平常?