if holding>0 and enterprice-c>50*mindiff then
sell(1,holding,market);
if holding<0 and c-enterprice>50*mindiff then
sellshort(1,holding,market);
if holding>0 and c-enterprice>0 and c<ref(llv(l,2),1) then
sell(1,holding,market);
if holding<0 and enterprice-c>0 and c>ref(hhv(h,2),1) then
sellshort(1,holding,market);
[此贴子已经被作者于2017/7/18 13:58:45编辑过]
假如7.18号买入的,我的止损是设在15号到17号的低点,这个怎么平
设定的条件满足就平仓
假如7.18号3000买入,15和17号的低点是2900,今天的的价格低于2900的时候就触发平仓
[此贴子已经被作者于2017/7/18 14:56:01编辑过]