currentCash = Account.Get(AccountItem.BuyingPower, Currency.UsDollar); currentCash = currentCash - accountMin; // Subtracts accountMin dollars from the accounts value to ensure enough money to cover broker fees. spendingCash = currentCash * (percentPerTrade * 0.01); // Stores X% of currentCash value as spendingCash if (spendingCash > perTradeLimit) spendingCash = perTradeLimit; // If spendingCash is more than perTradeLimit then limit spending to perTradeLimit. sharesToBuy = Convert.ToInt32(Math.Floor(spendingCash / Close[0])); //Calculates how many whole shares it can buy with spendingCash. EnterLong(sharesToBuy, ""); // Buy at Market sharesToBuy
Do they run on separate threads from each other?
I've heard that they simply run when data comes in so can data come in from Kinetick simultaneously across symbols or is it read sequentially?
If any of the strategies can run at the same time do you have any suggestions as to where I should be looking to try and prevent these errors?
Comment