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.False
indexstrIndex column name to use with data, by default "date".dateFalse
targetstrTarget column name, by default "close".closeFalse
show_allboolShow 1 - 13. If set to False, show 6 - 9TrueFalse
asintboolIf True, fill NAs with 0 and change type to int, by default True.TrueFalse
offsetintHow many periods to offset the result0False

Returns​

OBBject
results : List[Data]
The calculated data.