Financial Time Series
get_timeseries_rolling_directional_changes
This function performs a rolling analysis on your data to identify if a directional change is forecasted for the final period within each window. This is ideal for backtesting or observing how trends evolve over time.
Parameter | Type | Required | Description |
---|---|---|---|
data_input | object | True | The financial time series data to be analysed. This can be a file path (e.g., ‘folder/ohlc_data.csv’) or a pandas DataFrame. Supported file formats include CSV, TSV, Parquet, Excel, JSON, and HTML. |
interval | int | True | The frequency of the time series data. Use in conjunction with interval_unit . |
interval_unit | string | True | The unit of time for the interval. Accepts one of the following values: ‘seconds’, ‘minutes’ and ‘days’. |
reasoning_mode | string | True | The reasoning strategy the architecture uses to make decisions: ‘proactive’ acts early with minimal information while ‘reactive’ waits for sufficient evidence before acting. |
output_file | string | True | The name of the file where the output will be saved. The output is a CSV file. For example, ‘saved_output’ will create saved_output.csv. |