Stash-Magic Indicators Guide

Stash-Magic turns a plain-English description into an indicator on your chart, with no code to write. You can draw lines and histograms, mark specific bars, or paint candles green and red, then save your indicators and use them on any chart.

Quick start

  1. Go to Research → Stash-Magic Indicators and sign in. Building and saving need an account.
  2. Describe your indicator, for example RSI minus its 20-day average, or click an example.
  3. Click Create. You'll see a name, a one-sentence summary and the formula.
  4. Check that it matches what you asked for, because the AI can misread a request. The test chart draws it straight away.
  5. Click the symbol on the test chart to try it on other tickers.
  6. Click Save to My Indicators, Add to my charts, or both.

You can also build from the Build Stash-Magic Indicator bar on the Multi-Chart page. Click Create, check the preview, then click Apply. That bar also sets up layouts, such as 4 charts: NVDA AMD AVGO TSM weekly with RSI.

Writing a good request

What an indicator can draw

TypeWhat you seeBest for
LineA line on the candles, or in its own paneAverages, bands, oscillators, distances
HistogramBars in their own pane: green at or above zero, red belowSpreads and momentum around zero
MarkerA small triangle under each bar where the condition is trueEvents such as crosses and volume spikes
Paint barsCandles turn green where the condition is true and red where it is falseShowing which state the market is in

Crossovers and paint bars: a cross is true for one bar only. So if you ask for paint bars based on a cross, Stash-Magic paints the state after it: crossover(ema(close, 8), ema(close, 21)) becomes ema(close, 8) > ema(close, 21). If you want a mark on the cross itself, ask to mark it.

Paint bars work on candles, bars and Heikin-Ashi, but not on line or area charts. If several paint indicators are on, the most recently added one wins.

Examples

You typeFormulaYou see
RSI minus its 20-day averagersi(close, 14) - sma(rsi(close, 14), 20)Green and red bars in their own pane
Distance from the 20 day average measured in ATRs(close - sma(close, 20)) / atr(14)A line in its own pane
Percent above the 200 day(close / sma(close, 200) - 1) * 100A line in its own pane
20 day high on the charthighest(high, 20)A line on the candles
Upper Bollinger bandsma(close, 20) + 2 * stdev(close, 20)A line on the candles
Mark days with volume over twice normalvolume > 2 * sma(volume, 20)A triangle under each matching bar
Mark the day the 8 EMA crosses above the 21 EMAcrossover(ema(close, 8), ema(close, 21))A triangle on each cross
Mark inside dayshigh < lag(high, 1) and low > lag(low, 1)A triangle under each inside day
Paint bars green when the 8 EMA is above the 21 EMA and red when belowema(close, 8) > ema(close, 21)Candles recolored green and red
Color the candles by whether RSI is above 50rsi(close, 14) > 50Candles recolored green and red

The AI may word a formula differently from these. What matters is that it calculates what you asked for.

My Indicators

Using indicators on charts

Resizing and zooming

To do thisDo this
Make charts tallerDrag the grip on a chart’s bottom edge. Double-click it to return to automatic. Charts also grow on their own as you add panes
Resize one indicator, or the candle areaDrag the line between two panes. Double-click it to reset
Fill the screenClick the expand icon on a chart, or Fullscreen in the toolbar
Zoom in or outUse the zoom icons on the chart, drag the date axis, or pinch. Turn on Wheel zoom to use the mouse wheel
See everything againDouble-click the chart

Sizes are saved with your layout and apply to all of its charts. The height grip isn't available in mixed-size layouts.

Formula reference

You never have to write a formula, but you can edit one on the Stash-Magic page. The chart redraws as soon as the formula is valid.

Series: open high low close volume

Math: + - * / and parentheses.

Conditions: > < >= <= and or not. There is no ==.

FunctionMeaning
sma(series, N)Simple moving average of the last N bars
ema(series, N)Exponential moving average
rsi(series, N)Relative Strength Index, using Wilder smoothing
atr(N)Average True Range. It takes only N
roc(series, N)Percent change over N bars. It is already a percent, so don’t multiply by 100
stdev(series, N)Standard deviation of the last N bars
highest(series, N)Highest value of the last N bars, including this one
lowest(series, N)Lowest value of the last N bars, including this one
sum(series, N)Total of the last N bars
lag(series, N)The value N bars ago
macd(series, fast, slow)MACD line, for example macd(close, 12, 26)
macd_signal(series, fast, slow, signal)MACD signal line, for example macd_signal(close, 12, 26, 9)
abs(series)Absolute value
min(a, b)The smaller of two values on each bar
max(a, b)The larger of two values on each bar
crossover(a, b)True only on the bar where a moves above b
crossunder(a, b)True only on the bar where a moves below b
barssince(condition)How many bars since the condition was last true

What it can't do

Stash-Magic only sees the price and volume of the chart you're on. When a request needs something else, it should say so instead of guessing. It can't use:

Indicators also can't yet be used in alerts or scans, you can only paint in green and red, and you can't rename a saved indicator.

If you see a message

MessageWhat it means
Too many requests. Please wait a minute and try again.You sent more than 5 build requests in a minute. Wait a minute and try again.
Custom indicators are paused for today. Please try again tomorrow.New indicators have reached a site-wide usage limit. Your saved indicators keep working.
Couldn’t turn that into a chart. Try wording it differently.The AI’s answer didn’t pass validation. Name the indicator and period more directly.
Sign in again to use AI layouts.Your login expired. Sign in and try again.
The AI service didn’t answer. Please try again.A temporary connection problem. Try again.

If an indicator looks wrong, read its formula first. The AI sometimes picks a different period or average than you meant. Rewording usually fixes it, or you can edit the formula directly. Still stuck? Contact support.

FAQ

Do I need to know how to code?

No. Describe what you want in plain English. The formula is there if you want to check or edit it, but you never have to write one.

Is this Pine Script?

No. Stash-Magic uses its own small formula language, and Pine scripts can’t be pasted in. It has no loops, strategies or backtests, which keeps it simple but means it can’t do everything Pine can.

How many indicators can I use?

There is no limit on how many you save or add to a chart. A long stack of panes makes each one thinner, so make the chart taller or remove some if they get hard to read.

Are my indicators private?

Saved indicators belong to your account and aren’t published. If you use Share on the chart page, the link includes the indicators on those charts, so anyone with the link can see their formulas.

Do these indicators predict the market or tell me what to trade?

No. An indicator is a calculation on past prices and volume. These haven’t been backtested, and they aren’t trading advice.

Can I get an alert when an indicator fires?

Not yet. Indicators are drawn on charts only, and can’t be used in alerts or the AI Stock Scan Builder.