public static LiveSystem fakeLiveSystem(Parameters parameters, bool runInNativeCurrency) { var liveSystemTemp = new LiveSystem(new Siv("TestSystem1", "daily", "1.0"), new Pv("Slow")); liveSystemTemp.setQClassName(typeof(S).FullName); liveSystemTemp.populateDetailsIfNeeded(runInNativeCurrency); liveSystemTemp.populateTagIfNeeded("QF.Example", false); parameters.insertInto(liveSystemTemp); return(liveSystemTemp); }
static SystemArguments arguments(IEnumerable <Symbol> symbols, LiveSystem liveSystem, RunMode mode, Type type) { O.each(symbols, symbol => MsivTable.MSIVS.insert(symbol.name, liveSystem.siv())); liveSystem.setQClassName(type.FullName); liveSystem.populateDetailsIfNeeded(false); return(new SystemArguments(symbols, new Parameters { { "LeadBars", 5 }, { "systemId", liveSystem.id() }, { "RunMode", (double)mode }, { "lookback", 2 } })); }