在日内5分钟图表中,如果连续两次交易亏损,那么就暂停当天的所有交易,直到明天再恢复交易,请问改如何编程处理啊,谢谢
variable:kk=1;
if todaybar=1 then kk:=1;
....................
if a then
begin
sellshort(1,0,limitr,c);
if numprofit(1)<0 and numprofit(2)<0 and totaldaytread>=2 then kk:=-1;
buy(kk>0,1,limitr,c);
end