咨詢內(nèi)容:
請教怎么編一下情況 if n<=5 then if c<平倉數(shù)值 then sellshort(holding<0,1,thisclose) ; 當(dāng)平倉時(shí) n:=0 否則n 不變 else (也就是n>6) if 平倉條件 then sellshort(holding<0,1,thisclose) ; 當(dāng)平倉時(shí) n:=0 否則n 不變 這里平倉數(shù)值是數(shù)值變量, 平倉條件是邏輯變量 本來想用這個(gè)形式 if(n<=5,平倉數(shù)值,平倉條件),感覺不對