mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
Portfolio. CreateSimulator method added.
This commit is contained in:
1 parent
1d9e2f33f1
commit
fc6fda63a3
7 files changed
+25
-30
No files matched your search
@@ -107,11 +107,7 @@ namespace SampleHistoryTestingParallel
|
||||
.TryAdd(Level1Fields.MarginSell, 10000m);
|
||||
|
||||
// test portfolio
|
||||
var portfolio = new Portfolio
|
||||
{
|
||||
Name = "test account",
|
||||
BeginValue = 1000000,
|
||||
};
|
||||
var portfolio = Portfolio.CreateSimulator();
|
||||
|
||||
// create backtesting connector
|
||||
var batchEmulation = new BatchEmulation(new[] { security }, new[] { portfolio }, storageRegistry)
|
||||
|
||||
Reference in new issue
Block a user