List of programs

Author: Mark Fric

May 7th, 2015

Rating:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Loader

responsible for loading of reports/historical or backtesting data.

Methods:

loadFile
parameter: path to file
return: SQResultsGroup

loads report and returns it as SQResultsGroup


preloadFile

parameter: path to file
return: none

pre-loads report, so that it is possible to get the report settings and symbols table. Report will be returned only after finishLoad is called.

getAdvancedLoadSettings
parameter: none
return: AdvancedLoadSettings

returns settings used during this load. User can alter the settings to change the behavior of the load process when the report is processed later in finishLoad call.


finishLoad

parameter: none
return: SQResultsGroup

finishes load of report started by preloadFile and returns it as SQResultsGroup

getSymbolsTable
parameter: none
return: SymbolsTable

returns symbols table recognized for file preloaded by preloadFile

 

Example of use:

SQResultsGroup strategyResults = (SQResultsGroup) Program.get("Loader").call("loadFile", "./tests/data/loaders/test_statement.csv");

Leave a Reply

Please Login to comment