Skip to main content

demark

Calculate the Demark sequential indicator.

This indicator offers a strategic way to spot potential reversals in market trends. It's designed to highlight moments when the current trend may be running out of steam, suggesting a possible shift in direction. By focusing on specific patterns in price movements, it provides valuable insights for making informed decisions on future changes and identifies trend exhaustion points with precision.

Example:​

from openbb import obb
stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp")
demark_data = obb.technical.demark(data=stock_data.results, offset=0)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]List of data to be used for the calculation.NoneFalse
indexstrIndex column name to use with data, by default "date".dateTrue
targetstrTarget column name, by default "close".closeTrue
show_allboolShow 1 - 13. If set to False, show 6 - 9TrueTrue
asintboolIf True, fill NAs with 0 and change type to int, by default True.TrueTrue
offsetintHow many periods to offset the result0True

Returns​

The calculated data.