請問,平倉後到結算不作單的程式語法該怎麼寫?
我的想法是若平倉是 sell ("Sell") next bar at market, buytocover ("BTC") next bar at market
if 買進條件=Treu and 結算日<>Ture and exitname="Sell" then buy ("Buy") next bar at market
if 賣出條件=Treu and 結算日<>Ture and exitname="BTC" then buy ("Buy") next bar at market
但結果不如預期,exitname是這樣用嗎?