BACK TO CLAUDE SKILLS
◈
sr_indicator_pine
Pine ScriptPineS&R
INSTALLATION
$python -c "exec(open('sr_indicator_pine.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
A Pine Script v5 indicator that automatically draws support and resistance lines using TradingView's native `ta.pivothigh` and `ta.pivotlow` functions. The lookback period `n` is exposed as an input, allowing the trader to adjust sensitivity without editing the code. Lines are drawn with color-coded styling: red for resistance, green for support.
Once published to your TradingView account, this indicator runs natively in the browser and updates automatically as new bars form — no Python session required. The lines are persistent objects that appear on the chart alongside any other indicators, making it an ideal companion to the Claude MCP analysis pipeline for visual confirmation.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryPine Script
ComplexityAdvanced
LanguagePython 3.10+
TagsPine, S&R
[ ASK CLAUDE ]
Ask AI about this skill before installing it.
[ RELATED SKILLS ]