BACK TO CLAUDE SKILLS
◈
scan_macd_crossover
Market ScannerScannerMACD
INSTALLATION
$python -c "exec(open('scan_macd_crossover.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Detects coins where the MACD line crossed above (bullish) or below (bearish) the signal line on the most recent bar by comparing the current bar's relative position to the prior bar's. The direction parameter controls which cross type to scan for, making the function reusable for both long and short signal generation.
MACD crossovers are lagging signals — they confirm a momentum shift that has already occurred rather than predicting it. They are most reliable when the crossover happens near the zero line (indicating a trend shift rather than a short-term oscillation) and when the histogram has been steadily declining for several bars before the cross.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryMarket Scanner
ComplexityIntermediate
LanguagePython 3.10+
TagsScanner, MACD
[ ASK CLAUDE ]
Ask AI about this skill before installing it.