Registry / analytics / smartmoneyconcepts

smartmoneyconcepts

JSON →
library0.0.27pypypi✓ verified 84d ago

A Python library to compute indicators based on Smart Money Concepts (SMC) and ICT (Inner Circle Trader) trading methodologies. Version 0.0.27 provides tools for identifying market structure, order blocks, fair value gaps, and liquidity levels. Rapidly evolving with frequent releases.

pip install smartmoneyconcepts
INSTALL
IMPORT
SIG · SMARTMONEYCONCEPTS
S
smartmoneyconcepts
analyticspythonv0.0.27
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

smc
import smartmoneyconcepts.smc as smc
import smc
The package structure expects a submodule; direct import of 'smc' fails.
indicators
from smartmoneyconcepts import indicators
import indicators
Submodule must be imported from the package.

Computes order blocks from OHLCV data using a simple random dataset.

import pandas as pd import numpy as np import smartmoneyconcepts.smc as smc # Sample OHLC data data = pd.DataFrame({ 'open': np.random.uniform(100, 110, 100), 'high': np.random.uniform(110, 120, 100), 'low': np.random.uniform(90, 100, 100), 'close': np.random.uniform(100, 110, 100), 'volume': np.random.randint(1000, 5000, 100) }) # Compute order blocks order_blocks = smc.order_blocks(data, join_consecutive=True) print(order_blocks.head())
Debug
Known issues
breakingThe library is in early development (v0.x). Breaking API changes occur frequently without deprecation warnings. Always pin your dependency version.
fix
Pin to exact version: smartmoneyconcepts==0.0.27
affects: <1.0.0
gotchaFunction parameters and defaults may change. For example, `join_consecutive` in `order_blocks` was added in v0.0.26; older code without it may produce different results.
fix
Always refer to the official documentation or README for current function signatures.
affects: All
gotchaThe library expects data in a specific OHLCV format with columns: 'open', 'high', 'low', 'close', 'volume'. Missing or misnamed columns cause unhelpful KeyErrors.
fix
Ensure your DataFrame contains exactly those column names and correct data types.
affects: All
Errors
Common errors & fixes
ImportError: cannot import name 'smc' from 'smartmoneyconcepts'
Incorrect import path; the submodule must be imported explicitly.
fix
Use: import smartmoneyconcepts.smc as smc
KeyError: 'high'
DataFrame missing required OHLCV columns or columns have wrong names.
fix
Rename columns to 'open','high','low','close','volume'.
ValueError: Length of values does not match length of index
Typically caused by NaN handling or invalid data; some indicators require non-NaN data.
fix
Clean your data: fill or drop NaNs with df.dropna() before passing to library functions.
Upgrade
Version history
0.0.27latest on PyPI · released Apr 3, 2026
Audit
Dependencies
numpyrequiredNumerical computations
pandasrequiredDataFrame handling
Agent activity
44 hits · last 30 days
node
42
OpenAI (training)
1
Resources
smartmoneyconcepts — pip install smartmoneyconcepts · libregistry