Search in sources :

Example 1 with MovingAvgMeanReversionBackAllocator

use of suite.trade.backalloc.strategy.MovingAvgMeanReversionBackAllocator in project suite by stupidsing.

the class BackAllocBackTestTest method testBackTestSingle.

@Test
public void testBackTestSingle() {
    Asset asset = cfg.queryCompany("0945.HK");
    BackAllocator backAllocator = new MovingAvgMeanReversionBackAllocator().backAllocator();
    assertGrowth(out(runner.backTest(backAllocator, period, Read.each(asset))));
}
Also used : MovingAvgMeanReversionBackAllocator(suite.trade.backalloc.strategy.MovingAvgMeanReversionBackAllocator) PmamrBackAllocator(suite.trade.backalloc.strategy.PmamrBackAllocator) Asset(suite.trade.Asset) MovingAvgMeanReversionBackAllocator(suite.trade.backalloc.strategy.MovingAvgMeanReversionBackAllocator) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Asset (suite.trade.Asset)1 MovingAvgMeanReversionBackAllocator (suite.trade.backalloc.strategy.MovingAvgMeanReversionBackAllocator)1 PmamrBackAllocator (suite.trade.backalloc.strategy.PmamrBackAllocator)1