Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mph-pine

Skill by mphinance

Builds TradingView Pine Script v6 indicators in the mphinance house style. It ports existing engines faithfully and adds a synthwave dashboard, alerts and compile checks before handoff.

  • Score 58
  • 33 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mph-pine

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mphinance/alpha-skills /tmp/alpha-skills && mkdir -p ~/.claude/skills && cp -r /tmp/alpha-skills/skills/mph-pine ~/.claude/skills/mph-pine

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mph-pine in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an AI assistant write TradingView Pine Script v6 indicators that match the mphinance house style. It works from a v6 checklist, grounds on current Pine docs, and ports any named Python scanner or Pine engine field by field before adding new behavior. Scripts follow a set template with a header comment, palette constants, grouped inputs, a synthwave dashboard and a compressed pipe-delimited payload row for screenshot readers.

The skill also includes reusable math such as least squares slope, intercept and r2, context-gated candlestick patterns, and an alert pattern. Before handoff, it scans for em dashes and runs a local pinecheck.sh compiler, treating repaint warnings as errors. The finished file is saved to docs/pine/. It is aimed at traders and developers who write Pine Script indicators in this house style.

Written from the project's SKILL.md and checked against it.

What it can do

  • Faithful engine portsPorts a named Python or Pine engine, matching its field names, constants and thresholds before adding anything new.
  • v6 landmine checklistChecks the finished script against known Pine v6 breaking changes such as bool na values and implicit casts.
  • House-style scaffoldGenerates a header block, synthwave palette constants, grouped inputs and calculations in one template.
  • Synthwave dashboardBuilds a table on the first bar and fills it on the last bar, with color-coded metric rows.
  • AI payload rowAdds a single compressed pipe-delimited row that an OCR or screenshot reader can parse.
  • Alert patternPairs static alertcondition calls with one dynamic alert carrying the full context string on bar close.
  • Least squares snippetProvides a hand-rolled least squares function returning slope, intercept and r2.
  • Context-gated patternsFlags candlestick patterns such as hammers and bullish engulfing only when they print at a key level.
  • Compile checkRuns pinecheck.sh and loops until the script compiles cleanly, treating repaint warnings as errors.
  • Save and ship offerWrites the script to docs/pine/<name>.pine and offers /ship without committing unless asked.

What you need

  • pinecheck.sh compiler at ~/projects/pinewright/scripts/pinecheck.sh
  • TradingView, for pasting and the final visual check in the Pine Editor
  • Pine Script v6 documentation via a context7 or pine-script docs MCP, or tradingview.com/pine-script-docs

Try asking

  • Port this Python signal scanner to a Pine Script v6 indicator
  • Write a tradingview indicator with breakout alerts in house style
  • Add a synthwave dashboard with an AI payload row to my Pine script

Good to know

  • Does not auto-deploy scripts to a chart or publish them.
  • Does not place trades or wire live orders. Indicators are advisory.
  • Only covers the patterns described in the skill. Other requests need to be confirmed first.
  • Compilation depends on the local pinecheck.sh script at the stated path.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/mph-pine/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mph-pine

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

mph-pine: common questions

Which Pine Script version does this skill target?

It targets Pine Script v6 and requires the file to start with //@version=6. It warns against relying on v5 habits.

How does the skill check that a script compiles?

It runs pinecheck.sh on the file. Exit 0 is clean, 1 reports errors with line and column, and 2 means the compiler was unreachable. Repaint warnings CW10003 and CW10004 are treated as errors.

Will the skill publish my indicator to TradingView?

No. The skill says adding a script to a chart and publishing it is the user's call, and it never commits without being asked.

How do I install mph-pine?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mph-pine free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mph-pine safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mph-pine?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

mph-pine Install

Add to stack

Loading.