TickAtlas

SMA API — Live Simple Moving Averages

Multiple lookback periods (10, 20, 50, 100, 200) for every symbol and timeframe. Detect golden crosses, death crosses, and trend bias without rolling your own averages.

No credit card. $2.50 PAYG credit on sign up.

XAUUSD D1 — SMA 50 / 200 Golden Cross
Golden Cross SMA200 SMA50
SMA(200) = 2314.55 Golden cross active Updated 2s ago

What is the SMA API?

The Simple Moving Average is the unweighted mean of the last N closing prices. The SMA_200 on the daily chart is one of the most watched levels in all of trading — institutional desks monitor price relative to it continuously. The golden cross (SMA_50 crossing above SMA_200) and death cross (crossing below) are widely followed trend signals. Our API pre-calculates SMA_10, SMA_20, SMA_50, SMA_100, and SMA_200 from live broker data, so your bot always has the number — not a computation task.

One Request. Instant Data.

REQUEST
curl -X GET \
  "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=SMA_50&timeframe=H1" \
  -H "X-API-Key: YOUR_API_KEY"

Why Use TickAtlas?

Pre-Calculated, Sub-100ms

Indicator values are computed server-side on every new candle. Your app queries the result — no TA library, no candle history needed.

7 Timeframes

M1, M5, M15, M30, H1, H4, D1 — the same endpoint serves scalpers and position traders alike.

Forex, Crypto, Commodities

EURUSD, GBPUSD, XAUUSD, BTCUSD, USDJPY — data available for all symbols active on connected broker terminals.

Plug into any stack

  • ChatGPT Custom GPTs
  • Claude Tools
  • Python / pandas
  • Node.js
  • Discord bots
  • Slack webhooks
  • n8n
  • Zapier
  • Google Sheets

Five SMA Periods. One Endpoint Each.

cURL Request
Python Golden cross detection
200 OK Response

Available SMA indicators

  • SMA_10 — 10-period SMA (scalping reference)
  • SMA_20 — 20-period SMA (short-term trend)
  • SMA_50 — 50-period SMA (medium trend)
  • SMA_100 — 100-period SMA (key support level)
  • SMA_200 — 200-period SMA (major trend filter)

Frequently Asked Questions

Does the SMA_200 endpoint work on all timeframes?

Yes — all five SMA periods (10, 20, 50, 100, 200) are available on all seven timeframes (M1, M5, M15, M30, H1, H4, D1). Note that SMA_200 on M1 requires only 200 minutes of data, which is a much shorter time window than SMA_200 on D1.

How do I detect a golden cross or death cross?

Query SMA_50 and SMA_200 for the same symbol and timeframe (D1 is typical). If SMA_50 > SMA_200, a golden cross is active. Compare values on successive poll intervals to detect the crossover moment itself.

Is SMA_20 the same value as BB_middle from the Bollinger Bands endpoint?

Yes — the middle band of Bollinger Bands is the SMA_20 of the same candle series. You can use either indicator name and get the same value.

What happens to SMA_200 at market open when there aren't 200 candles yet?

The API will return the SMA calculated from however many bars are available at that point — typically with a note in the signal field. For D1, SMA_200 data is only accurate once 200 trading days are in the database (which is available on all live symbols).

Start Building in 5 Minutes

Sign up, grab your API key, make your first request.

Every new account gets $2.50 in free PAYG credits. No card required.