Hi all, hope you are well.

I can't seem to get a brokerage model set. when working locally with docker.
I have created my own tick bars which I add as follows:

self.SetStartDate(2018, 1, 2) self.SetCash(10_000) self.SetTimeZone(DateTimeZone.Utc) self.SetBrokerageModel(BrokerageName.OandaBrokerage) fx_symbol = Symbol.Create("GBPUSD", SecurityType.Forex, Market.Oanda) self.symbol = self.AddData(TickBars, fx_symbol, None, DateTimeZone.Utc).Symbol

But when I make a StopMarketOrder like, e.g., this:

self.StopMarketOrder(self.symbol, 60499.0, 1.39140)

I get this warning: 'To meet brokerage precision requirements order stop price was rounded to 1.39'. This makes me think the PriceVariationModel is still set to the default. Additionally, I get an order error: id 1, insufficient buying power, which makes me think the MarginModel isn't set correctly.

When working with the provided EURUSD data it does work, which makes me think I need to do something else/more to link my custom data to the BrokerageModel

Is this the correct way to set a BrokerageModel?

Thanks in advance,

Tom