老师;我编一程序加载时,k线图显示开仓;
而评测时,成交明细上没有,怎么回事啊
老师;在评测中的问题:
第一个表达:卖开后,指数最低价下跌超过5点,当最高价大于(最低价+5)时,平仓;
问题是2执行,1不执行,不明白,请老师指导;
1、if enterbars>0 and( enterprice- LLV(l,enterbars))>5 and high>=(LLV(l,enterbars)+5) then sellshort(holding>0,0,market);
2、if enterbars>0 and( hhv(high,enterbars)-enterprice)>5 and l<=(hhv(high,enterbars)-5) then sell(holding>0,0,market);
LLV(l,enterbars))>5
这一类的不论是HHV还是LLV都要修改一下后面的周期,把enterbars改成enterbars+1
老师;在评测中,第二个语句执行;第一个语句不执行(按你说的改过也不执行)
请帮助解决第一个语句不执行的问题
1、if enterbars>0 and( enterprice- LLV(l,enterbars))>5 and high>=(LLV(l,enterbars)+5) then sellshort(holding>0,0,market);
sellshort是啥个意思啊?平空吧,holding>0的时候哪有空单可平啊?