@ Market Tech,
The ways of the Q are mysterious, indeed. From the research platform, we have:
get_backtest?
Type: function
String form: <function get_backtest at 0x7fc29f6542a8>
File: /home/qexec/src/qexec_repo/qexec/research/api.py
Definition: get_backtest(backtest_id)
Docstring: Get a backtest
and
result = get_backtest('536a6d181a4f090716c383b7')
print "Scalars:"
print result.scalars
print ""
print "Frames:"
print result.frames
print ""
print "All Attributes:"
print result.attrs
Scalars:
['benchmark_security', 'capital_base', 'end_date', 'start_date']
Frames:
['cumulative_performance', 'daily_performance', 'orders', 'positions', 'recorded_vars', 'risk', 'transactions']
All Attributes:
['cumulative_performance', 'daily_performance', 'orders', 'positions', 'recorded_vars', 'risk', 'transactions', 'benchmark_security', 'capital_base', 'end_date', 'start_date']
So, then I scratch my head, asking the question "How might I get custom data out of a backtest and into the research platform? Hmm? Looks like recorded_vars is my only option. I can store up to five scalars there. Rock on." And indeed, it works:
result.recorded_vars
which gives me all of the recorded values versus time.
But sadly, we have no means to grab, for example, context.my_interesting_stuff and analyze it in the research platform. Perhaps the memory space gets zapped at the end of a backtest?
Grant