'''backtest
start: 2022-11-18 00:00:00
end: 2022-11-18 00:01:00
period: 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{"एक्सचेंज ऑब्जेक्ट इंडेक्स जोड़ा गया{" पहले 0 के रूप में इस तरह के अनुमान के साथ):", r, "नामः", exchanges[r].GetName (), " टैगः ", exchanges[r].GetLabel())
exchanges[r].SetDirection("buy")
exchanges[r.Buy (-1, 10, "किडो")
position_cangwei = _C(exchange.GetPosition)
Log(position_cangwei)
Sleep(10000)
रणनीति के अंतिम 5 पंक्तियों को छोड़ना, त्रुटिः विविधता सदस्यता विफल BTC_USDT_Futures_Binance
रणनीति के अंतिम 2-5 पंक्तियों पर टिप्पणी छोड़ें, एक नींद छोड़ें ((10000), या चूकेंः विविधता सदस्यता विफल BTC_USDT_Futures_Binance
इस प्रकार, यदि कोई व्यक्ति अपने ब्लॉग पर टिप्पणी करता है, तो वह अपने ब्लॉग पर टिप्पणी करता है, और यदि कोई व्यक्ति अपने ब्लॉग पर टिप्पणी करता है, तो वह अपने ब्लॉग पर टिप्पणी करता है, और यदि कोई व्यक्ति अपने ब्लॉग पर टिप्पणी करता है, तो वह अपने ब्लॉग पर टिप्पणी करता है।
सीखनाः बहु-व्यापार रणनीतियों के बारे में

'''backtest
start: 2022-11-18 00:00:00
end: 2022-11-18 00:01:00
period: 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("添加的交易所对象索引(第一个为0以此类推):", r, "名称:", exchanges[r].GetName(), "标签:", exchanges[r].GetLabel())
exchanges[r].SetContractType("swap") # 期货要设置合约的
exchanges[r].SetDirection("buy")
exchanges[r].Buy(-1, 10, "开多")
position_cangwei = _C(exchange.GetPosition)
Log(position_cangwei)
Sleep(10000)
期货要设置合约的。
- 1
