Skip to main content

r/algotrading


[RELEASE] pandas-ta-classic v0.6.52: new SMC Liquidity Sweep indicator + Ichimoku/MACD fixes
[RELEASE] pandas-ta-classic v0.6.52: new SMC Liquidity Sweep indicator + Ichimoku/MACD fixes
Strategy

Hey r/algotrading,

Just merged a batch of changes into pandas-ta-classic (the community-maintained fork of pandas-ta). Here's what dropped since 0.6.20:


🆕 New: Smart Money Concept Liquidity Sweep (smc_sweep)

Detects liquidity sweep candles — the "stop hunt" pattern where price breaks a recent swing high/low, gets rejected, and closes back inside. Returns +1 (bullish sweep), -1 (bearish sweep), 0 (none).

df.ta.smc_sweep(length=15, wick_mult=1.5, append=True)
# → SMC_SWEEP_15_1.5 column: +1 / -1 / 0

length controls the swing lookback, wick_mult tunes how aggressive the wick rejection has to be relative to the candle body.


🔧 Ichimoku overhaul

Multiple bugs fixed in the accessor:

  • Returned a tuple instead of a DataFrame — broke df.ta.ichimoku(append=True) for anyone not unwrapping

  • Span columns had duplicated prefix/suffix in names

  • _mp_worker had a special-case for ichimoku that conflicted with multiprocessing strategy runs

  • New append_span parameter lets you optionally include the forward-projected cloud spans in the output


🔧 MACD Extended (macdext) silent fallback fixed

macdext was silently falling back twice when KAMA/MAMA matypes failed validation — you'd ask for one MA type, get a completely different one, no warning. Now it raises on invalid matype instead of guessing.


🔧 CPR now returns int8 instead of strings

CPR_POSITION and CPR_WIDTH_CLASS used to return string labels ("above_tc" etc.). Now returns int8 — plays nicer with vectorbt, numpy operations, and everything that expects numeric columns.


📦 Total: 193 indicators, 62 native CDL patterns (253 unique)

No TA-Lib required for any CDL pattern. TA-Lib optional for acceleration on 34 core indicators.

Install:

pip install pandas-ta-classic

Feedback welcome, especially on smc_sweep — parameter defaults (length=15, wick_mult=1.5) are reasonable starting points but SMC traders might have opinions.


Community maintained. PRs open.


Advertisement: Some people set an alarm. Futures traders set a limit order.
Some people set an alarm. Futures traders set a limit order.
Some people set an alarm. Futures traders set a limit order.


It’s finally working!
It’s finally working!
Strategy
r/algotrading - It’s finally working!

What is a good algorithmic trading platform for someone who doesn’t understand programming, but has experience with trading?
What is a good algorithmic trading platform for someone who doesn’t understand programming, but has experience with trading?
Infrastructure

I am looking for something that I can set up to automate stock and option trades on rules that I preestablish. Nothing too crazy.

One main issue I have is losing money around the opening bell on options trades. If I could create something that could automate what Charles Schwab would probably call a trailing stop walking limit it would be perfect. I’m looking to begin putting a little more money into strategies I am using, and manually attempting to trade or using some of Charles Schwab Think or Swim features isn’t working.

In the morning certain market makers will place wide and unrealistic bid ask spreads, which will trigger my trailing stop orders. To get around it for selling, I essentially spend hours making conditional normal limit orders that expire at 10:15am and then will have trailing stop limits that come into play at 10:15am. Then for buying I either just stay away or try to manually follow a morning price movement.

I am pretty programming illiterate, so am looking for something a little more user friendly or geared towards beginners. Per another comment I saw, was planning to get “Theta Data” for real time pricing so something that works with that.

Also if there where any good guides or resources people would suggest, would love to hear them.