Strategy Skeleton
Backtesting skeleton
Backtesting using SharkSigma
Backtesting from Orca module directly requires additional setup.
First, you will need to import the Orca module with the import statement. Next, invoke a strategy class and inherit the properties of BaseIntradayStrategy class. setup_strategy and process_candle are methods that will have to be used in the strategy class.
Finally, a dictionary user_input_dict containing user inputs such as the instruments on which backtesting has to be done along with other parameters have to be passed.
User input dictionary parameters:
instrument_list:
table_name:
start_date
end_date
interval
initial_capital
market_hours
data_input_type
user_file_name
path_type
Last updated
Was this helpful?