Pre-Calculated, Redis-Cached
Indicator values are computed server-side on every new candle. Your app queries the result — no TA library, no candle history needed.
Get MACD main line, signal line, and histogram in real time — three values, one endpoint each. No candle math. No TA libraries. Just the numbers your strategy needs.
MACD (Moving Average Convergence Divergence) tracks the relationship between two EMAs to identify trend direction and momentum shifts. The histogram quantifies the gap between the main line and signal line — when MACD crosses above the signal line, it signals potential bullish momentum. TickAtlas pre-calculates all three values (MACD_main, MACD_signal, MACD_hist) from our live data so your bot gets the answer, not raw candles to process.
Indicator values are computed server-side on every new candle. Your app queries the result — no TA library, no candle history needed.
M1, M5, M15, M30, H1, H4, D1 — the same endpoint serves scalpers and position traders alike.
EURUSD, GBPUSD, XAUUSD, BTCUSD, USDJPY — data available for every symbol in our data.
curl -X GET \
"https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=MACD_main&timeframe=H1" \
-H "X-API-Key: YOUR_API_KEY" {
"success": true,
"data": {
"symbol": "EURUSD",
"timeframe": "H1",
"indicator": "MACD_main",
"value": 0.00142,
"bid": 1.08401,
"ask": 1.08414,
"updated_at": 1711548000,
"server_time": "2024-03-27T14:00:00+00:00"
}
} import requests
API_KEY = "YOUR_API_KEY"
BASE = "https://tickatlas.com/v1/indicator"
HEADERS = {"X-API-Key": API_KEY}
def get_macd(symbol, timeframe="H1"):
lines = {}
for indicator in ["MACD_main", "MACD_signal", "MACD_hist"]:
r = requests.get(BASE, headers=HEADERS, params={
"symbol": symbol,
"indicator": indicator,
"timeframe": timeframe
})
data = r.json()["data"]
lines[indicator] = data["value"]
return lines
macd = get_macd("EURUSD")
print(f"MACD main: {macd['MACD_main']:.5f}")
print(f"MACD signal: {macd['MACD_signal']:.5f}")
print(f"MACD hist: {macd['MACD_hist']:.5f}")
# Crossover detection
if macd['MACD_main'] > macd['MACD_signal']:
print("Bullish crossover — MACD above signal line")
else:
print("Bearish crossover — MACD below signal line") curl -H "X-API-Key: YOUR_KEY" "https://tickatlas.com/v1/indicators?symbol=EURUSD&timeframe=H1&category=trend"import requests
r = requests.get(
"https://tickatlas.com/v1/indicators",
headers={"X-API-Key": "YOUR_KEY"},
params={"symbol": "EURUSD", "timeframe": "H1", "category": "trend"},
)
d = r.json()["data"]["indicators"] # flat map of bare floats
# Crossover detection
if d["MACD_main"] > d["MACD_signal"] and d["MACD_hist"] > 0:
signal = "BULLISH_CROSS"
elif d["MACD_main"] < d["MACD_signal"] and d["MACD_hist"] < 0:
signal = "BEARISH_CROSS"
else:
signal = "NO_CROSS"
print(signal){
"success": true,
"data": {
"symbol": "EURUSD",
"timeframe": "H1",
"indicators": {
"MACD_main": 0.00042, "MACD_signal": 0.00031, "MACD_hist": 0.00011,
"...": "20 more trend keys"
},
"count": 23,
"updated_at": 1711548000
}
}Available MACD indicators
Plug into any stack
Every new account starts with $2.50 of pay-as-you-go credit and no card. Monthly plans add a flat monthly price, WebSocket streaming and support.
Landing pages convert; documentation closes the loop. These are the routes a developer usually needs next.
Start from the developer portal and map the API families your product needs.
Open docsMake the first authenticated request and validate the setup end to end.
Read quickstartRequest and response contracts for quote, indicator, summary and calendar.
Browse referenceHow the API drops into ChatGPT, Claude, Discord, n8n, Zapier and Sheets.
See integrationsStraight answers on limits, coverage and how the endpoint behaves in production.
The standard 12/26/9 configuration: fast EMA of 12 periods, slow EMA of 26 periods, and a 9-period signal line EMA. This matches the default across most trading platforms.
Yes — MACD_main, MACD_signal, and MACD_hist are each available as separate indicator names on the same endpoint. A crossover detection strategy typically queries all three once per candle close.
The API returns raw values — divergence detection logic runs in your code. You query MACD_main and MACD_hist over time using the /v1/indicator/history endpoint and apply your own divergence algorithm.
MACD is most reliable on H1, H4, and D1 for swing and position trading. M5/M15 can be used for intraday setups but generate more noise. All 7 timeframes (M1, M5, M15, M30, H1, H4, D1) are supported.
Sign up, grab your API key, make your first request.
Every new account starts with $2.50 of pay-as-you-go credit. No card required.