ChartMystic
  • How it works
  • Products
  • Results
  • Pricing
  • FAQ
  • Docs
Log inSign up
  • How it works
  • Products
  • Results
  • Pricing
  • FAQ
  • Docs
  • Log in

Documentation

Getting Started

IntroductionInstallationGet Help

Atlas Pro

OverviewHow Atlas Pro ThinksLive And Confirmed SignalsDashboardAtlas Pro OscillatorSignal ModesKey Zone And Invalidation LineMulti-Timeframe DashboardOrder BlocksFair Value GapsStructure LevelsLiquidity LevelsPremium And Discount ZonesAlertsPine Screener IntegrationFootprint Precision ModeSupported Markets And ChartsSettings ReferenceTroubleshooting

Scribe Studio

OverviewFrom Idea to PineScriptGenerate An IndicatorGenerate A StrategyBacktest In TradingViewImage-To-CodeDebug And Fix Pine ScriptAlerts And WebhooksSaved StrategiesLimits, Reliability, And ReviewTroubleshooting

Resources

FAQBest PracticesGlossary
Documentation/Scribe Studio/From Idea to PineScript

From Idea to PineScript

Write your first useful Scribe Studio prompt with enough context to get clean Pine Script.

Your prompt is the spec. The more concrete it is, the less Scribe has to guess.

A vague prompt produces a vague script — usually a generic moving-average overlay with no inputs and no alerts. A concrete prompt produces a script you can actually paste into TradingView and trust.

Weak vs better prompt

Weak prompt: Make me a profitable strategy.

Better prompt: Create a strategy. Long when the 20 EMA crosses above the 50 EMA and RSI > 50. Exit on the reverse cross. 2 percent stop, 4 percent take profit. Add inputs for EMA lengths and RSI length. Use bar-close confirmation. Add alert conditions for entries and exits. Point out any repainting risks.

The weak version is missing the script type, the timeframe assumption, the risk parameters, the inputs, the alerts, and the safety contract. The better version names them explicitly — and gets a testable strategy back.

Prompt Anatomy

Most strong Scribe prompts cover the same nine components. You do not need every one in every prompt, but the more you supply, the less Scribe improvises.

Goal

What the script should help you see or test, in one sentence.

Script type

Choose whether you are building an indicator for visuals and alerts, or a strategy for entries, exits, and a Strategy Tester report.

Conditions

The exact entry, exit, or signal rules. Use the indicator names you actually want.

Timeframes

Chart timeframe assumptions and any higher-timeframe logic.

Visuals

Plots, colors, labels, arrows, fills, backgrounds, tables.

Inputs

Anything the user should be able to change without editing the code.

Alerts

Alert conditions, alert names, and webhook message format if needed.

Strategy rules

Entries, exits, stops, take profits, position sizing, filters.

Safety requirements

Bar-close confirmation, repainting review, no future-looking logic.

First Prompt Template

Copy this, fill the brackets, and send.

text
Create a Pine Script [indicator or strategy] for TradingView.

Goal:
[Describe what the script should help me see or test.]

Rules:
[List the exact conditions.]

Visuals:
[Describe plots, labels, colors, arrows, fills, or tables.]

Inputs:
[List settings I should be able to change.]

Alerts:
[Describe alert conditions or webhook needs.]

Safety:
Use bar-close confirmation where appropriate and point out any repainting risks.
PreviousOverviewNextGenerate An Indicator

Need help?