Market OHLC Bars Data

Market Bars Data retrieves historical price bars (candles) for a trading symbol and timeframe.

Market OHLC Bars Data is the core data source for chart analysis, indicators, patterns, and strategy logic.

Each bar includes:

  • Time
  • Open price
  • High price
  • Low price
  • Close price
  • Volume

When to Use Market Bars Data

Use Market Bars Data when you want to:

  • Analyze price structure and trend
  • Detect support and resistance
  • Identify chart patterns (breakouts, reversals, ranges)
  • Confirm entries using candle closes
  • Backtest or validate strategies
  • Scan watchlists for setups
  • Combine price action with drawings

If ticks answer “what happened moment-by-moment”, bars answer “what actually mattered”.


How the Agent Uses Bar Data

When you request bar data, the agent:

  1. Loads the selected symbol
  2. Applies the requested timeframe
  3. Retrieves the most recent completed candles
  4. Analyzes structure, momentum, volatility, and volume
  5. Uses this context to guide entries, exits, or scans

Always evaluate Bars before placing trades.


Key Parameters

Symbol

The market you want to analyze Examples: EURUSD, BTCUSD, XAUUSD

Timeframe

How long each candle represents Examples:

  • M1 → 1-minute candles
  • M15 → 15-minute candles
  • H1 → 1-hour candles
  • D1 → Daily candles

Count

How many past candles to analyze Example:

Get last 50 BTCUSD bars, Timeframe H1

Common Use Cases

1. Trend Analysis

Analyze the last 100 H1 candles to determine the trend.

The agent looks at:

  • Higher highs / lower lows
  • Candle closes
  • Momentum consistency

2. Support & Resistance Detection

Get the last 50 H4 candles and find key support and resistance levels.

The agent uses:

  • Repeated highs/lows
  • Rejection wicks
  • Volume clusters

3. Entry Confirmation (Candle Close)

Enter buy only if the next H1 candle closes above resistance.

This avoids false breakouts caused by intrabar spikes.

4. Exit Logic

Exit the trade if a full candle closes below my trendline.

Bar closes are treated as confirmed decisions, not noise.

5. Pattern Recognition

Check recent candles for bullish engulfing or rejection patterns.

The agent evaluates:

  • Candle body vs wick
  • Close location
  • Relative size to previous bars

Using Bars with Drawings

Your chart drawings provide context. Bars provide confirmation.

Examples

Analyze my trendline and confirm if candles respect it.
Enter sell only if a candle closes below my support line.
Ignore wick breaks — use candle close only.

Using Bars with Watchlists

Bars power multi-symbol scanning.

Example

Scan my Forex Majors watchlist on H1 and rank the strongest bullish structures.

For each symbol, the agent:

  1. Loads bar data
  2. Analyzes trend and momentum
  3. Scores setups
  4. Returns ranked results

Only top-quality setups are considered for trading.


Risk-Aware Bar Analysis

Bars are always filtered through safety rules.

Examples:

No trades during extreme volatility candles
Reduce size if recent candle range expands sharply
Block trades if bar structure conflicts with account risk

Example Use Cases Prompts

1. Simple

Get the last 50 H1 candles for EURUSD.

2. Analysis

Analyze recent H4 candles and identify trend direction.

3. Entry Logic

Enter buy if the next candle closes above resistance.

4. Exit Logic

Close the position if a bearish candle closes below support.

5. Scan

Scan my Indices watchlist on H1 using candle structure.

6. Advanced

Use H4 candles for bias and M15 candles for entry confirmation.

How Bars Fit Into the Full Decision Flow

Bars are never used alone.

The agent always follows:

  1. Account safety
  2. Risk rules
  3. Watchlist eligibility
  4. Bar structure analysis
  5. (Optional) Tick-level execution

OHLC Bar-Based Entry & Exit Templates

Market Bars Data answers a different question than ticks:

“What is the market structure and context over time?”

Bars and Ticks are designed to work together. Bars define structure and bias and Ticks define execution timing.

1. Breakout Entry (Bar Close Confirmation)

When to use

  • Support / resistance breaks
  • Range expansion
  • Higher timeframe confirmation

Entry Rule

Enter BUY if:
A candle closes above resistance
The close is above the previous bar’s high
Volume is higher than recent average

Exit Rule

Exit if:
A candle closes back inside the range Or a strong rejection wick appears

Why it works

  • Filters fake intrabar spikes
  • Confirms real acceptance, not noise

2. Trend Continuation Entry (Pullback Candle)

When to use

  • Trending markets
  • Entries after corrections

Entry Rule

Enter BUY when:
Trend is already established
One or more pullback candles form
A bullish continuation candle closes

Exit Rule

Exit if:
A full candle closes against the trend
Or market forms a lower high

Why it works

  • Trades with structure
  • Avoids chasing extended moves

3. Reversal Entry (Exhaustion Candle)

When to use

  • Major highs/lows
  • Overextended moves

Entry Rule

Enter SELL if:
A strong rejection candle appears
Upper wick is larger than body
Close is near the candle low

Exit Rule

Exit if:
Follow-up candle confirms reversal
Or momentum stalls

Why it works

  • Uses candle anatomy
  • Captures turning points early

4. Inside Bar Break Strategy

When to use

  • Consolidation
  • Volatility compression

Entry Rule

Enter BUY if:
Price breaks above inside-bar high
Break candle closes outside the range

Exit Rule

Exit if:
Break fails and closes back inside

Why it works

  • Exploits stored energy
  • Clear invalidation

5. Volume-Confirmed Entry

When to use

  • Breakouts
  • Trend continuation

Entry Rule

Enter only if:
Current candle volume > previous [N] candles average
Directional candle closes strong

Exit Rule

Exit if:
Volume collapses
Or divergence appears

Why it works

  • Confirms participation
  • Filters low-quality moves

6. Bar-Based Stop Placement (Structure-Aware)

Examples

Place stop loss:
Below last swing low (for buys)
Above last swing high (for sells)

Dynamic Update

Trail stop if:
New higher low forms
Trend structure remains intact

Why it works

  • Stops align with market logic, not random pips

7. Time-Based Exit (Bar Count)

When to use

  • Mean-reversion
  • Intraday strategies

Rule

Exit trade if:
Position remains open for [X] candles And target has not been reached

Why it works

  • Prevents capital stagnation
  • Controls opportunity cost

8. Bar-Based Risk Filters

Examples

Do not enter if:
Last candle range is abnormally large
Market is in low-volume chop
Reduce position size if:
Volatility increases sharply

9. Drawings + OHLC Integration (Core Concept)

Your drawings define context. Bars confirm validity.

Example

Enter buy only if a candle closes above my resistance line.
Reject sell if candle closes back above my trendline.

Rule

  • Drawings = Where
  • Bars = What
  • Ticks = When

10. Watchlist + Bar Scan Workflow

End-to-End Example

Scan my *Forex Majors* watchlist on H1
Identify bullish structures
Rank by volume strength
Trade only top setup

11. Bar-Only vs Bar + Tick

PurposeUse
Market biasOHLC bars
Trend & structureOHLC bars
Execution timingTicks
Risk validationAccount + bars
ScalpingBars + ticks

12. Compact Expert Prompts

Analyze last 50 H1 candles and trade breakout.
Enter buy on candle close above resistance.
Exit if next candle closes bearish.
Scan watchlist for bullish engulfing patterns.

Safety Rule

Bars define strategy — they never bypass risk rules.

Before execution, the agent always checks:

  1. Account safety
  2. Risk limits
  3. Watchlist eligibility
  4. Bar structure
  5. Tick confirmation (if needed)

Market bars show real price acceptance over time — they are the backbone of disciplined trading decisions. OHLC bars tell you what the market is doing — ticks tell you when to act.