use of suite.trade.backalloc.strategy.PmamrBackAllocator in project suite by stupidsing.
the class BackAllocBackTestTest method testBackTest.
@Test
public void testBackTest() {
BackAllocator backAllocator = new PmamrBackAllocator().backAllocator();
Simulate sim = runner.backTest(backAllocator, period);
SummarizeByStrategy<String> sbs = Summarize.of(cfg, Read.from(sim.trades)).summarize(trade -> trade.symbol);
System.out.println(sbs.log);
assertGrowth(out(sim));
}
Aggregations