""Uji balik
Permulaan: 2022-11-18 00:00:00
Akhir: 2022-11-18 00:01:00
tempoh: 1m
asasPeriode: 1m
Bursa: {
def main (:
while True:
Log ((exchange.GetAccount))
for r in range ((len ((exchanges)):
Log (menambah indeks objek bursa (yang pertama adalah 0): log, r, nama log: log, exchanges[r].GetName (), tag log: log, exchanges[r].GetLabel ())
# exchanges[r].SetDirection ((
Pencipta Kuantiti - Impian Kecil`` ''Backtest mula: 2022-11-18 00:00:00 end: 2022-11-18 00:01:00 tempoh: 1m BasePeriod: 1m exchanges: [{"eid:"Futures_Binance","currency":"BTC_USDT"},{"eid:"Futures_Binance","currency":"ETH_USDT"},{"eid:"Futures_Binance","currency:"ETC_USDT"}] '' def main (: while True: Log ((exchange.GetAccount)) for r in range ((len ((exchanges)): Log (("menambah indeks objek bursa ((yang pertama adalah 0 dan sebagainya):", r, "nama:", exchanges[r].GetName ((), "tag:", exchanges[r].GetLabel (()) exchanges[r].SetContractType (("swap") # Futures untuk menetapkan kontrak exchanges[r].SetDirection (("buy") exchanges[r].Buy ((-1, 10, "lebih") position_cangwei = _C (exchange.GetPosition) Log ((position_cangwei) Sleep ((10000) `` Di samping itu, ia juga boleh digunakan untuk membuat kontrak masa hadapan.