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