Skip to content

LLM Reference

Use the button below to copy a complete Rune Script reference to your clipboard. Paste it into any AI assistant (ChatGPT, Claude, Gemini, etc.) to teach it how to write valid Rune Script code.

How to Use

  1. Click Copy Rune Script reference for LLM above
  2. Open your preferred AI assistant
  3. Paste the reference as the first message (or as a system prompt)
  4. Ask the AI to write Rune Script for you

Example Prompts

Once the AI has the reference, try prompts like:

  • "Write a Rune Script indicator that shows Bollinger Bands with RSI divergence signals"
  • "Create a strategy that enters long when price crosses above the 200 EMA and RSI is below 40, with ATR-based stops"
  • "Build an indicator using CW trend functions that shows heat-mapped trail lines with Fibonacci levels"
  • "Write a mean reversion strategy using Bollinger Bands with 2% TP and 1% SL"

What's Included

The reference covers:

  • Script structure — header, parameters, streams, bar section
  • All backtest settings — capital, commission, sizing, pyramiding, TP/SL
  • All 60+ built-in functions — moving averages, indicators, anchored period data, crossovers, HTF, math, and Crodl trend helpers
  • All 12 draw types — line, ticks, step line, area, histogram, columns, band, bar, shape, label, hline, vline with full parameters
  • Color system — literals, semantic keys, color params, heat mapping
  • Trade rules — enter/exit, stop/take, edge triggering
  • Two complete examples — an indicator and a strategy

The reference is optimized to be concise while covering everything an AI needs to generate valid Rune Script. It's about 3,000 tokens — small enough to fit alongside your prompts in any AI model.