tradingview-script

tradingview-script is a skill for Claude Code, Codex from Signal-Execution-Labs/forex-trading-ai-agent. It costs 17 tokens per session (1,796 once invoked), scanned A, original, MIT.

A tool that turns plain-language descriptions into Pine Script indicators and strategies for TradingView. Pine Script is TradingView’s programming language for chart studies, alerts, and backtests.

In plain words
What is it for?
It is for generating indicators, entry and exit rules, risk settings, backtesting code, and TradingView alerts from written requirements.
Why use it?
It reduces the coding needed to turn a trading idea into a chart indicator or testable strategy. It can also create alert logic for connected services.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit It is for generating indicators, entry and exit rules, risk settings, backtesting code, and TradingView alerts from written requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Signal-Execution-Labs/forex-trading-ai-agent --skill tradingview-script
Clone the repo
git clone --depth 1 https://github.com/Signal-Execution-Labs/forex-trading-ai-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tradingview-script

README.md
[![agentmods](https://agentmods.dev/badge/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script/github.svg)](https://agentmods.dev/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script)
Your own site
<a href="https://agentmods.dev/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script"><img src="https://agentmods.dev/badge/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tradingview-script

Your own site · 80×15
<a href="https://agentmods.dev/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script"><img src="https://agentmods.dev/badge/skills/signal-execution-labs/forex-trading-ai-agent/tradingview-script.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,796 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01796
Opus 5 $0.00009 $0.00898
Sonnet 5 $0.00003 $0.00359
Haiku 4.5 $0.00002 $0.00180

Measured 9d ago against content hash 1c30c29660f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tradingview-script scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, pine_generator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/tradingview-script/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TradingView Script Generator

Generate professional Pine Script v5 code for TradingView indicators and strategies from simple descriptions.

Overview

  • Natural Language → Pine Script - Describe what you want, get working code
  • Indicator Templates - RSI, MACD, Bollinger, Custom overlays
  • Strategy Templates - Entry/Exit logic, Stop Loss, Take Profit
  • Alert Conditions - Auto-generate webhook alerts
  • Multi-Timeframe - Built-in MTF support

Features

1. Indicator Generation

Generate custom indicators from descriptions:

  • Moving Averages (SMA, EMA, WMA, HMA)
  • Oscillators (RSI, MACD, Stochastic, CCI)
  • Volatility (Bollinger Bands, ATR, Keltner Channels)
  • Volume (OBV, Volume Profile, VWAP)
  • Custom combinations

2. Strategy Generation

Create complete trading strategies with:

  • Entry conditions (long/short)
  • Exit conditions (TP/SL/trailing)
  • Position sizing
  • Risk management
  • Backtesting ready

3. Alert Generation

Auto-generate TradingView alerts for:

  • K.I.T. webhook integration
  • Telegram notifications
  • Discord notifications
  • Custom webhook endpoints

Templates

Basic RSI Strategy

// Auto-generated by K.I.T. TradingView Script Generator
//@version=5
strategy("RSI Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)

// Inputs
rsiLength = input.int(14, "RSI Length")
rsiOverbought = input.int(70, "Overbought Level")
rsiOversold = input.int(30, "Oversold Level")

// Calculations
rsiValue = ta.rsi(close, rsiLength)

// Entry Conditions
longCondition = ta.crossover(rsiValue, rsiOversold)
shortCondition = ta.crossunder(rsiValue, rsiOverbought)

// Execute
if longCondition
    strategy.entry("Long", strategy.long)
if shortCondition
    strategy.close("Long")

// Alerts
alertcondition(longCondition, "RSI Buy Signal", "RSI crossed above oversold")
alertcondition(shortCondition, "RSI Sell Signal", "RSI crossed below overbought")

Moving Average Crossover

//@version=5
strategy("MA Crossover Strategy", overlay=true)

// Inputs
fastLength = input.int(9, "Fast MA Length")
slowLength = input.int(21, "Slow MA Length")
maType = input.string("EMA", "MA Type", options=["SMA", "EMA", "WMA"])

// MA Function
getMA(src, length, type) =>
    switch type
        "SMA" => ta.sma(src, length)
        "EMA" => ta.ema(src, length)
        "WMA" => ta.wma(src, length)

// Calculations
fastMA = getMA(close, fastLength, maType)
slowMA = getMA(close, slowLength, maType)

// Plot
plot(fastMA, "Fast MA", color.green)
plot(slowMA, "Slow MA", color.red)

// Signals
longSignal = ta.crossover(fastMA, slowMA)
shortSignal = ta.crossunder(fastMA, slowMA)

// Execute
if longSignal
    strategy.entry("Long", strategy.long)
if shortSignal
    strategy.entry("Short", strategy.short)

// Alerts for K.I.T. Webhook
alertcondition(longSignal, "Long Signal", '{"action":"buy","symbol":"{{ticker}}","price":"{{close}}"}')
alertcondition(shortSignal, "Short Signal", '{"action":"sell","symbol":"{{ticker}}","price":"{{close}}"}')

Read the full file on GitHub · 255 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 255 lines · 17 tokens per session scan A 1c30c29660f3

Subscribe to this mod's changes

tradingview-script is a skill published in the GitHub repository Signal-Execution-Labs/forex-trading-ai-agent (136 stars, last pushed 9d ago), licensed MIT. It adds 17 tokens to every session and 1,796 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.