Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/p/y/PyTradeLib-HEAD/testcases/returns_analyzer_test.py   PyTradeLib(Download)
        strat = strategy_test.TestStrategy(bar_feed, initialCash)
 
        strat.addPosEntry(strategy_test.datetime_from_date(2001, 1, 12), strat.enter_long, ReturnsTestCase.TestInstrument, 1) # 33.06
        strat.addPosExit(strategy_test.datetime_from_date(2001, 11, 27), strat.exit_position) # 14.32