Skip to main content
ohlc_forecast Minimum data periods: 5001 (including forecast). This function forecasts the continuation of the current directional change over the selected timeframe, based on the identified emergent shift.

Function Parameters

ParameterTypeRequiredDescription
data_inputobjectTrueThe 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.
intervalintTrueThe frequency of the time series data. Use in conjunction with interval_unit.
interval_unitstringTrueThe unit of time for the interval. Accepts one of the following values: ‘seconds’, ‘minutes’ and ‘days’.
reasoning_modestringTrueThe reasoning strategy the algorithms use to make decisions: ‘proactive’ acts early with minimal information while ‘reactive’ waits for sufficient evidence before acting.

Data Columns

Your input data (file or DataFrame) must contain the following columns:
  • datetime (string): A timestamp for each data point.
  • open (float): The opening price for the interval.
  • high (float): The highest price reached during the interval.
  • low (float): The lowest price reached during the interval.
  • close (float): The closing price for the interval.

Example Data Format for Financial Time Series A placeholder value of 0 is required in the input fields for the forecasted period (e.g. 2025-08-19 at 17:00 in the example below).
#datetimeopenhighlowclose
12025-01-23 09:00:001001109095
22025-01-23 10:00:0095988688
50012025-08-19 17:00:000000

Python Code Example

from sumtyme import EIPClient

# Initialise the EIPClient with the provided API key
client = EIPClient(apikey='your-api-key-here')

forecast = client.ohlc_forecast(
    data_input='folder/ohlc_data.csv', # or can be a pandas dataframe 
    interval=1,
    interval_unit='minutes',
    reasoning_mode='reactive'
)

"""
Returns a single key-value pair dictionary: {datetime_string:chain_detected}
chain_detected values: 1 (positive chain), -1 (negative chain), 0 (no chain detected)
"""