以下是多头加仓的部分,DRAWICON可以运行就是画出了对应图表,但是没有开仓。谢谢了
if holding >0 and abs(holding)<cOpenELots and time<COPENLASTTIME and CTradeLong and (ref(conOpenHL,1))THEN
begin
buy(1, ccloseNum1*cOpenELots,limitr,openPriceL + TD*MINDIFF);
myholding:=myholding+ccloseNum1*cOpenELots,nodraw;
DRAWICON(holding>=0 ,low-30*MINDIFF,1);
end