Hi,
I have a strategy trading multiple instruments with different base currencies. I would like to deposit money before paper trading. However, the result of following codes:
Code:
protected override void OnStrategyStart()
{
if (StrategyManager.Mode == StrategyMode.Paper)
{
Portfolio.Account.Deposit(Clock.DateTime, AllocationPerInstrument, CurrencyId.USD, "Initial allocation");
Portfolio.Account.Deposit(Clock.DateTime, AllocationPerInstrument, CurrencyId.CNY, "Initial allocation");
Portfolio.Account.Deposit(Clock.DateTime, AllocationPerInstrument, CurrencyId.CNH, "Initial allocation");
}
I got 3x USD money in my portfolio and USD only.