Skip to content
TradequixDocsOpen the terminal
OverviewStart here, search, progress
  • Introduction
  • Quickstart
  • How a script runs
  • Types and qualifiers
  • Operators, conditionals and loops
  • Functions and methods
  • Objects and enums
  • Arrays, matrices and maps
  • Strings and colours
  • Time and sessions
  • Bar states
  • Plotting
  • Inputs
  • Technical analysis
  • Drawings and tables
  • Multiple timeframes
  • Strategies
  • Alerts in scripts
  • Repainting
  • The Pine editor
  • Indicator settings
  • Coming from TradingView
  • The data
  • Publish and sell
  • Catalogue and community
  • Your dashboard and earnings
  • Errors and debugging
  • Limits
  • Coverage
  • Built-in catalogue
  • Cookbook
  • Write Pine with AI
  • FAQ
  • Glossary
  • Cheat sheet
  • Function reference
  • Will it run here?
  • Error index

Reference

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.

View as MarkdownOpen in ClaudeOpen in ChatGPT

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#

ScriptWhat it shows
Simple Moving AverageThe unweighted mean of the last N closes. The baseline every other average is a reaction to.
Exponential Moving AverageWeights recent bars more heavily, so it turns sooner than an SMA of the same length and whipsaws more.
Weighted Moving AverageLinear weighting: the oldest bar in the window counts once, the newest counts N times.
Smoothed Moving AverageAn EMA with a 1/N smoothing factor , slower than either, and the average underneath Wilder's RSI and ATR.
Double Exponential Moving Average2*EMA minus the EMA of that EMA, which cancels most of the lag an EMA carries at the cost of overshoot.
Triple Exponential Moving AverageThe same lag cancellation applied a third time. Faster than DEMA and correspondingly noisier.
Hull Moving AverageWeighted averages combined so the result is both fast and smooth , the usual answer to 'lag or noise, pick one'.
Volume Weighted Moving AverageAn SMA weighted by volume, so bars nobody traded move it less than bars everybody did.
Arnaud Legoux Moving AverageA Gaussian window whose peak can be shifted toward the recent end, trading smoothness against responsiveness explicitly.
Moving Average RibbonSix averages at increasing lengths. Spacing shows trend strength; crossing order shows it turning.
Moving Average CrossA fast and a slow average with their crossings marked , the oldest trend-following signal there is.
Relative Strength IndexAverage gain against average loss over N bars, scaled 0-100. Above 70 and below 30 are the conventional extremes.
MACDThe gap between a fast and a slow EMA, its own average, and the difference between them as a histogram.
StochasticWhere the close sits inside the recent high-low range, smoothed. %K crossing %D is the usual trigger.
Stochastic RSIA stochastic computed over RSI rather than price. Far more sensitive than either, and reaches its extremes often.
Commodity Channel IndexDistance of the typical price from its average, in units of mean deviation. Unbounded, unlike RSI.
Williams %RThe stochastic inverted and scaled -100 to 0: where the close sits in the range, measured from the top.
Awesome OscillatorA 5-period against a 34-period average of the bar midpoint. Colour is the direction of the change, not the sign.
MomentumToday's close minus the close N bars ago. The simplest possible rate-of-change, and still a useful one.
Rate of ChangeMomentum as a percentage, which makes it comparable across instruments at different price levels.
Money Flow IndexAn RSI weighted by volume, so a move nobody traded moves it less than a move everybody did.
Chande Momentum OscillatorGains minus losses over their sum, scaled -100 to 100. Unsmoothed, so it is faster and noisier than RSI.
True Strength IndexDouble-smoothed momentum over double-smoothed absolute momentum. Much slower than RSI and much cleaner.
TRIXThe rate of change of a triple-smoothed EMA. The smoothing strips most noise, so a zero cross means something.
Ultimate OscillatorBuying pressure measured over three timeframes at once and weighted, which blunts the false divergences a single-period oscillator shows.
Bollinger BandsA 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 BandWidthThe spread between the bands as a fraction of the basis. Lows mark the squeezes that often precede a move.
Bollinger %BWhere price sits between the bands: 0 is the lower band, 1 the upper. Outside that range price has left them.
Keltner ChannelsBands set by ATR rather than standard deviation, so they track the range a market actually travels instead of the dispersion of its closes.
Donchian ChannelsThe 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 RangeThe average bar range, counting gaps. A volatility unit rather than a signal: most stop and sizing rules are denominated in it.
EnvelopeBands at a fixed percentage above and below a moving average. Unlike Bollinger or Keltner, the width never adapts.
Historical VolatilityThe annualised standard deviation of log returns , volatility as an options desk means it, not as a band width.
Chandelier ExitA trailing stop hung N ATRs below the running high, and above the running low. Ratchets one way and never loosens.
Average Directional IndexTrend strength regardless of direction, with the two directional lines that produce it. Above 25 is the conventional threshold for 'trending'.
SupertrendAn 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 SARA stop that accelerates toward price the longer a trend runs, and flips when touched. Excellent in a trend, punishing in a range.
Ichimoku CloudFive 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.
AroonHow 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 IndicatorUpward and downward movement measured against true range. The crossing of the two lines is the signal, not their level.
Linear Regression ChannelThe least-squares line through the last N closes, with bands at a multiple of the residual deviation.
Choppiness IndexHow much ground price covered against how far it actually went. High means ranging, low means trending , it says nothing about direction.
Detrended Price OscillatorPrice minus a displaced moving average, which removes the trend to leave the cycle. Shifted back, so it is not a real-time signal.
VolumeActivity per bar, coloured by whether the bar closed up or down, with its own moving average.
On Balance VolumeA 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/DistributionLike OBV, but weights each bar by where it closed within its range rather than counting the whole bar one way.
Chaikin Money FlowAccumulation/Distribution normalised by volume over N bars, so it oscillates around zero instead of drifting.
Price Volume TrendA 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 PriceThe average price every unit of volume actually paid. The reference most execution is measured against.
Ease of MovementHow far price moved per unit of volume. High readings mean price travelled on little participation, which rarely holds.
Elder's Force IndexThe size of a move multiplied by the volume behind it, smoothed. Combines direction, extent and participation in one number.
Net VolumeVolume signed by the bar's direction, bar by bar rather than cumulatively. The per-bar form of what OBV totals.

Strategies#

ScriptWhat it shows
Moving Average Cross StrategyLong 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 StrategyBuys 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 StrategyFollows 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 StrategyEnters on a new N-bar extreme and exits on the opposite shorter one , the classic turtle structure, stripped to its two rules.

Profiles#

ScriptWhat it shows
Pivot Points StandardThe classic floor-trader levels computed from the previous session's range: a central pivot with three supports and three resistances.
Price Range ProfileWhere the current price sits inside the session range, as a percentage, with the range boundaries drawn.
Relative VolumeThis bar's volume against the recent average. Above 1 means more participation than usual, which is what makes a move worth trusting.

Patterns#

ScriptWhat it shows
Pivot Points High LowMarks bars whose high (or low) exceeds N bars either side. Confirmed only: a pivot appears N bars after it happened.
Williams FractalThe five-bar reversal shape: a high with two lower highs on each side. The same confirmation lag as any pivot.
ZigZagConnects 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.
PreviousCoverageNext Cookbook

On this page

  • Indicators
  • Strategies
  • Profiles
  • Patterns

Use with AI

View as MarkdownOpen in ClaudeOpen in ChatGPT