# Built-in catalogue

> All 62 scripts that ship with Tradequix, by group. Each opens its own page, with the full open source to read or copy.

Tradequix ships 62 ready-made scripts. Add any of them from the **Indicators** dialog in the terminal, or open its page below to read the source. Every one is written in ordinary Pine v6 and is tested to run and draw, so they double as examples: when you want to know how something is done, find the built-in that does it and read it.

> [!TIP]
> In the terminal, the **{}** button on an indicator opens its code. Copy it into a new script and change it; that is often the fastest way to start.

## Indicators

| Script | What it shows |
| --- | --- |
| [Simple Moving Average](/scripts/sma) | The unweighted mean of the last N closes. The baseline every other average is a reaction to. |
| [Exponential Moving Average](/scripts/ema) | Weights recent bars more heavily, so it turns sooner than an SMA of the same length and whipsaws more. |
| [Weighted Moving Average](/scripts/wma) | Linear weighting: the oldest bar in the window counts once, the newest counts N times. |
| [Smoothed Moving Average](/scripts/smma) | An EMA with a 1/N smoothing factor , slower than either, and the average underneath Wilder's RSI and ATR. |
| [Double Exponential Moving Average](/scripts/dema) | 2*EMA minus the EMA of that EMA, which cancels most of the lag an EMA carries at the cost of overshoot. |
| [Triple Exponential Moving Average](/scripts/tema) | The same lag cancellation applied a third time. Faster than DEMA and correspondingly noisier. |
| [Hull Moving Average](/scripts/hma) | Weighted averages combined so the result is both fast and smooth , the usual answer to 'lag or noise, pick one'. |
| [Volume Weighted Moving Average](/scripts/vwma) | An SMA weighted by volume, so bars nobody traded move it less than bars everybody did. |
| [Arnaud Legoux Moving Average](/scripts/alma) | A Gaussian window whose peak can be shifted toward the recent end, trading smoothness against responsiveness explicitly. |
| [Moving Average Ribbon](/scripts/ma-ribbon) | Six averages at increasing lengths. Spacing shows trend strength; crossing order shows it turning. |
| [Moving Average Cross](/scripts/ma-cross) | A fast and a slow average with their crossings marked , the oldest trend-following signal there is. |
| [Relative Strength Index](/scripts/rsi) | Average gain against average loss over N bars, scaled 0-100. Above 70 and below 30 are the conventional extremes. |
| [MACD](/scripts/macd) | The gap between a fast and a slow EMA, its own average, and the difference between them as a histogram. |
| [Stochastic](/scripts/stochastic) | Where the close sits inside the recent high-low range, smoothed. %K crossing %D is the usual trigger. |
| [Stochastic RSI](/scripts/stochastic-rsi) | A stochastic computed over RSI rather than price. Far more sensitive than either, and reaches its extremes often. |
| [Commodity Channel Index](/scripts/cci) | Distance of the typical price from its average, in units of mean deviation. Unbounded, unlike RSI. |
| [Williams %R](/scripts/williams-r) | The stochastic inverted and scaled -100 to 0: where the close sits in the range, measured from the top. |
| [Awesome Oscillator](/scripts/awesome-oscillator) | A 5-period against a 34-period average of the bar midpoint. Colour is the direction of the change, not the sign. |
| [Momentum](/scripts/momentum) | Today's close minus the close N bars ago. The simplest possible rate-of-change, and still a useful one. |
| [Rate of Change](/scripts/roc) | Momentum as a percentage, which makes it comparable across instruments at different price levels. |
| [Money Flow Index](/scripts/mfi) | An RSI weighted by volume, so a move nobody traded moves it less than a move everybody did. |
| [Chande Momentum Oscillator](/scripts/cmo) | Gains minus losses over their sum, scaled -100 to 100. Unsmoothed, so it is faster and noisier than RSI. |
| [True Strength Index](/scripts/tsi) | Double-smoothed momentum over double-smoothed absolute momentum. Much slower than RSI and much cleaner. |
| [TRIX](/scripts/trix) | The rate of change of a triple-smoothed EMA. The smoothing strips most noise, so a zero cross means something. |
| [Ultimate Oscillator](/scripts/ultimate-oscillator) | Buying pressure measured over three timeframes at once and weighted, which blunts the false divergences a single-period oscillator shows. |
| [Bollinger Bands](/scripts/bollinger-bands) | A moving average with bands at N standard deviations. The bands widen as the market gets noisier, so distance from them is relative rather than absolute. |
| [Bollinger BandWidth](/scripts/bollinger-bandwidth) | The spread between the bands as a fraction of the basis. Lows mark the squeezes that often precede a move. |
| [Bollinger %B](/scripts/bollinger-percent-b) | Where price sits between the bands: 0 is the lower band, 1 the upper. Outside that range price has left them. |
| [Keltner Channels](/scripts/keltner-channels) | Bands set by ATR rather than standard deviation, so they track the range a market actually travels instead of the dispersion of its closes. |
| [Donchian Channels](/scripts/donchian-channels) | The highest high and lowest low of the last N bars. No smoothing at all, which is why breakout systems are built on it. |
| [Average True Range](/scripts/atr) | The average bar range, counting gaps. A volatility unit rather than a signal: most stop and sizing rules are denominated in it. |
| [Envelope](/scripts/envelope) | Bands at a fixed percentage above and below a moving average. Unlike Bollinger or Keltner, the width never adapts. |
| [Historical Volatility](/scripts/historical-volatility) | The annualised standard deviation of log returns , volatility as an options desk means it, not as a band width. |
| [Chandelier Exit](/scripts/chandelier-exit) | A trailing stop hung N ATRs below the running high, and above the running low. Ratchets one way and never loosens. |
| [Average Directional Index](/scripts/adx) | Trend strength regardless of direction, with the two directional lines that produce it. Above 25 is the conventional threshold for 'trending'. |
| [Supertrend](/scripts/supertrend) | An ATR band that flips sides when price closes through it. Binary by construction: there is always a direction, and it is always a stop level. |
| [Parabolic SAR](/scripts/parabolic-sar) | A stop that accelerates toward price the longer a trend runs, and flips when touched. Excellent in a trend, punishing in a range. |
| [Ichimoku Cloud](/scripts/ichimoku-cloud) | Five lines giving support, resistance, momentum and a projected band in one view. The cloud is drawn forward, so it is a forecast rather than a reading. |
| [Aroon](/scripts/aroon) | How recently the highest high and lowest low occurred, as a percentage of the lookback. Measures how fresh a trend is rather than how large. |
| [Vortex Indicator](/scripts/vortex) | Upward and downward movement measured against true range. The crossing of the two lines is the signal, not their level. |
| [Linear Regression Channel](/scripts/linear-regression) | The least-squares line through the last N closes, with bands at a multiple of the residual deviation. |
| [Choppiness Index](/scripts/choppiness-index) | How much ground price covered against how far it actually went. High means ranging, low means trending , it says nothing about direction. |
| [Detrended Price Oscillator](/scripts/dpo) | Price minus a displaced moving average, which removes the trend to leave the cycle. Shifted back, so it is not a real-time signal. |
| [Volume](/scripts/volume) | Activity per bar, coloured by whether the bar closed up or down, with its own moving average. |
| [On Balance Volume](/scripts/obv) | A running total that adds the bar's volume on an up close and subtracts it on a down one. The level is arbitrary; the slope is the reading. |
| [Accumulation/Distribution](/scripts/accumulation-distribution) | Like OBV, but weights each bar by where it closed within its range rather than counting the whole bar one way. |
| [Chaikin Money Flow](/scripts/chaikin-money-flow) | Accumulation/Distribution normalised by volume over N bars, so it oscillates around zero instead of drifting. |
| [Price Volume Trend](/scripts/price-volume-trend) | A cumulative total weighted by the size of each percentage move, not just its sign , so a large move counts for more than a small one. |
| [Volume Weighted Average Price](/scripts/vwap) | The average price every unit of volume actually paid. The reference most execution is measured against. |
| [Ease of Movement](/scripts/ease-of-movement) | How far price moved per unit of volume. High readings mean price travelled on little participation, which rarely holds. |
| [Elder's Force Index](/scripts/force-index) | The size of a move multiplied by the volume behind it, smoothed. Combines direction, extent and participation in one number. |
| [Net Volume](/scripts/net-volume) | Volume signed by the bar's direction, bar by bar rather than cumulatively. The per-bar form of what OBV totals. |

## Strategies

| Script | What it shows |
| --- | --- |
| [Moving Average Cross Strategy](/scripts/ma-cross-strategy) | Long when the fast average crosses above the slow one, flat or short when it crosses back. A demonstration of the mechanism, not a system to trade. |
| [RSI Mean Reversion Strategy](/scripts/rsi-reversion-strategy) | Buys oversold readings and exits on the return to the midline. Mean reversion works until it does not; this has no stop, which is the lesson. |
| [Supertrend Strategy](/scripts/supertrend-strategy) | Follows the Supertrend flip in both directions. Trend following: a low hit rate carried by the size of the winners, which a short backtest will not show. |
| [Donchian Breakout Strategy](/scripts/donchian-breakout-strategy) | Enters on a new N-bar extreme and exits on the opposite shorter one , the classic turtle structure, stripped to its two rules. |

## Profiles

| Script | What it shows |
| --- | --- |
| [Pivot Points Standard](/scripts/pivot-points-standard) | The classic floor-trader levels computed from the previous session's range: a central pivot with three supports and three resistances. |
| [Price Range Profile](/scripts/price-range-profile) | Where the current price sits inside the session range, as a percentage, with the range boundaries drawn. |
| [Relative Volume](/scripts/relative-volume) | This bar's volume against the recent average. Above 1 means more participation than usual, which is what makes a move worth trusting. |

## Patterns

| Script | What it shows |
| --- | --- |
| [Pivot Points High Low](/scripts/pivot-points-high-low) | Marks bars whose high (or low) exceeds N bars either side. Confirmed only: a pivot appears N bars after it happened. |
| [Williams Fractal](/scripts/williams-fractal) | The five-bar reversal shape: a high with two lower highs on each side. The same confirmation lag as any pivot. |
| [ZigZag](/scripts/zigzag) | Connects confirmed swing highs and lows, hiding moves below a threshold. A description of structure, never a signal , the last leg repaints until it is confirmed. |
