Please How do I call  BuyingPowerModel = SecurityMarginModel(3.3) in a universe selection model like this
def Initc(self):
self.UniverseSettings.Resolution = Resolution.Daily
self.symDataDict = { }
#self.UniverseTickers = ["BTCUSDT"]
self.UniverseTickers = ["SOLUSDT", "BNBUSDT", "ADAUSDT", "BTCUSDT"]
universeSymbols = []
for symbol in self.UniverseTickers:
universeSymbols.append(Symbol.Create(symbol, SecurityType.Crypto, Market.Binance))
self.SetUniverseSelection(ManualUniverseSelectionModel(universeSymbols))
Symbl.BuyingPowerModel = SecurityMarginModel(3.3) ??
Fred Painchaud
Hi,
It seems like you want to set a 3.3x leverage.
You can do it on your universe settings like this:
self.UniverseSettings.Leverage = 3.3
If you want to use SecurityMarginModel, you'll need to set it on Security objects, like so:
Fred
Chibuike Azubuike
Worked! Thank you Fred
Â
Chibuike Azubuike
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!