Skip to main content

Available Timeframes

InnovaTrading uses minutes as the standard unit for timeframes:
NameMinutesCode
1 Minute1M1
5 Minutes5M5
15 Minutes15M15
30 Minutes30M30
1 Hour60H1
4 Hours240H4
Daily1440D1
Weekly10080W1

Using Timeframes in API Requests

Getting Bars

# 1-hour bars
GET /api/external/bars/EURUSD/60?limit=500

# 4-hour bars
GET /api/external/bars/EURUSD/240?limit=500

# Daily bars
GET /api/external/bars/EURUSD/1440?limit=500

Submitting Indicators

{
  "symbol": "EURUSD",
  "timeframe": 60,  // H1
  "indicator_name": "My Signals",
  "points": [...]
}

Timeframe Selection

Lower Timeframes (M1-M15)

  • More data points
  • More noise
  • Good for scalping strategies
  • Higher API usage

Higher Timeframes (H1-D1)

  • Cleaner signals
  • Less noise
  • Good for swing trading
  • Lower API usage

Multi-Timeframe Analysis

You can create indicators that analyze multiple timeframes:
# Fetch data from multiple timeframes
h1_bars = get_bars("EURUSD", 60, limit=100)
h4_bars = get_bars("EURUSD", 240, limit=100)
d1_bars = get_bars("EURUSD", 1440, limit=100)

# Find confluence
h1_trend = calculate_trend(h1_bars)
h4_trend = calculate_trend(h4_bars)
d1_trend = calculate_trend(d1_bars)

# Generate signal only when all align
if h1_trend == h4_trend == d1_trend:
    generate_signal(...)
When using multi-timeframe analysis, submit your indicator to the lowest timeframe you analyzed. This ensures signals appear on the most detailed chart.

Bar Time Alignment

Bars are aligned to their opening time in UTC:
TimeframeBar Time Example
M12025-12-12 14:01:00
M52025-12-12 14:05:00
M152025-12-12 14:15:00
H12025-12-12 14:00:00
H42025-12-12 12:00:00
D12025-12-12 00:00:00
Always use the time field from the /bars response when creating indicators. Don’t calculate timestamps manually as they may not align with actual bars.

Rate Limits by Timeframe

Higher timeframes consume fewer API calls:
TimeframeBars per DayRecommended Refresh
M11440Every 1 minute
M5288Every 5 minutes
M1596Every 15 minutes
H124Every hour
H46Every 4 hours
D11Once per day
To optimize API usage, use higher timeframes when possible and batch your indicator submissions.