if enterbars=2 then begin
sell(1,0,market);
sellshort(1,0,marketr);
end
谢谢老师!想再请教您一个问题,要想记录夜盘时间段的最高点和最低点,该如何编写呢?
高点:valuewhen(time=closetime(1),hhv(h,barslast(time=closetime(0))));
低点:valuewhen(time=closetime(1),llv(l,barslast(time=closetime(0))))