Beginner variables math OHLCV

Language Basics

Learn the fundamentals: variables, math operations, OHLCV data access, and basic indicators.

View Example
Intermediate indicator ta.sma ta.rsi chart.plot

SMA Trend + RSI Indicator

A simple indicator-mode script that overlays fast and slow SMA on the price chart and renders an RSI oscillator in a separate pane. No trading logic — purely visual / analytical.

View Example
Advanced strategy backtest ta.sma ta.rsi trade.buy

SMA Trend Pullback Backtest

Backtests a trend-following strategy on XAUUSD 1-hour candles. A 50-period SMA defines the trend direction, RSI(14) identifies pullback entries, and ATR-based stop loss and take profit provide risk management.

View Example
Intermediate strategy paper ta.sma ta.rsi candle.isLive

SMA Crossover + RSI Filter — Paper Trading

Forward-test a trend-following strategy with simulated broker execution. SMA(10)/SMA(20) crossover defines trend direction, RSI(14) filters entries. Same runtime as live mode, but no real orders are placed.

View Example
Advanced strategy live ta.bbands event.onNewCandle grid trading

Mean Reversion Grid System — EURUSD Live

A symmetric grid of price levels around a Bollinger Band midline. Grid spacing adapts to EURUSD's low-volatility 1-minute action. Buys at grid dips, sells at mean reversion targets, with stop-loss protection.

View Example