1
Follow
0
Followers
import datetime
def main() :
exchange.IO("trade_margin")
minStocks=0.0001
t=0
costprice=0
baseprice=0
上面是我的策略代码的开头部分,
在开头加了一句 exchange.IO("trade_margin"),但进行回测的时候,下单并无加杠杆的迹象
回测测的是币安交易所,交易对是BIC_USTD,下单函数用的是 exchange.Buy(Price, Amount)
想问下各位,是不是回测无法用加杠杆测试?只有实盘才能加杠杆?
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engine
Comment
All comments (5)
谢谢梦总回复。想问下, 文档说明里提到,输入exchange.IO("trade_margin")可以切换为杠杆账户模式,进入到杠杆账户模式后,是不是可以用币安交易所的API接口进行杠杆交易?
4 years ago
【切换之后就是现货杠杆账户,下单是下现货杠杆的订单。】-----------------------如果是进行回测测试的话,是不是无法在切换成现货杠杆账户后,仿真现货杠杆的订单?
4 years ago
- 1
