AGProLabsBack to product

Full settings reference

Market Confirmation Engine [AGPro Series]
Full settings reference

Understand each input before changing your chart. The values below are the source-declared defaults; verified preset overrides and editability conditions are shown separately where available.

Use your browser’s Find (Ctrl+F / ⌘F) to locate a setting. Open its row for the full explanation and limits. Source-check time is a verification timestamp, not a script publication date.

Market Confirmation Engine [AGPro Series] actual TradingView interface on BINANCE:ETHUSDT (1h)
TradingView workspace example of Market Confirmation Engine on ETHUSDT (1h), showing chart-context disagreement and the closed confirmation state. The displayed states are illustrative analytical references. Actual historical interface capture associated with the source verified for this reference. Screenshot inputs may differ from source defaults; shown outcomes are not a performance promise.

General & Display

10 inputs
Show PanelboolDefault: true
Input type
bool
Source default
true
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Toggle the on-chart confirmation dashboard. Enabled by default.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Toggle the on-chart confirmation dashboard. Enabled by default.

Panel ThemestringDefault: "Dark"
Input type
string
Source default
"Dark"
Available options
["Dark", "Light"]
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Visual theme for the panel background and text.

Effect on the script

This changes presentation and legibility of the relevant chart element, rather than the underlying analytical model.

When to adjust it

Change it when the chart background, screen size or other overlays make the current presentation difficult to read.

Interpretation and limits

A visual preference does not strengthen the measured setup or alter its uncertainty.

Original input tooltip

Visual theme for the panel background and text.

Panel LocationstringDefault: "Top Right"
Input type
string
Source default
"Top Right"
Available options
["Top Right", "Top Left", "Bottom Right", "Bottom Left", "Middle Right"]
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Move the compact dashboard without changing the analytical model.

Effect on the script

This changes presentation and legibility of the relevant chart element, rather than the underlying analytical model.

When to adjust it

Change it when the chart background, screen size or other overlays make the current presentation difficult to read.

Interpretation and limits

A visual preference does not strengthen the measured setup or alter its uncertainty.

Original input tooltip

Move the compact dashboard without changing the analytical model.

Panel PagestringDefault: "Overview"
Input type
string
Source default
"Overview"
Available options
["Overview", "Drivers", "References", "Evidence"]
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Select a compact page. Overview separates committed context from the current chart preview. Drivers reports source health. Evidence describes non-overlapping fixed-horizon observations, not trades.

Effect on the script

This selects which part of the existing analytical readout is visible in the dashboard. It does not create a different event engine.

When to adjust it

Use a compact or overview page for routine reading and the detailed pages when inspecting assumptions, observations or exclusions.

Interpretation and limits

Information hidden by a page choice can still matter. Check the evidence and model assumptions before relying on a headline score.

Original input tooltip

Select a compact page. Overview separates committed context from the current chart preview. Drivers reports source health. Evidence describes non-overlapping fixed-horizon observations, not trades.

Panel Font SizestringDefault: "Normal"
Input type
string
Source default
"Normal"
Available options
["Small", "Normal", "Large"]
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Dashboard text size. Normal is the readable default; use pages to limit panel width.

Effect on the script

This changes presentation and legibility of the relevant chart element, rather than the underlying analytical model.

When to adjust it

Change it when the chart background, screen size or other overlays make the current presentation difficult to read.

Interpretation and limits

A visual preference does not strengthen the measured setup or alter its uncertainty.

Original input tooltip

Dashboard text size. Normal is the readable default; use pages to limit panel width.

Label Font SizestringDefault: "Normal"
Input type
string
Source default
"Normal"
Available options
["Small", "Normal", "Large"]
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Applies to historical markers, the centered zone badge and reference tags. Marker clearance adapts to the selected size.

Effect on the script

This changes presentation and legibility of the relevant chart element, rather than the underlying analytical model.

When to adjust it

Change it when the chart background, screen size or other overlays make the current presentation difficult to read.

Interpretation and limits

A visual preference does not strengthen the measured setup or alter its uncertainty.

Original input tooltip

Applies to historical markers, the centered zone badge and reference tags. Marker clearance adapts to the selected size.

Show Trend RibbonboolDefault: true
Input type
bool
Source default
true
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Fill the zone between the fast and slow EMA, colored by the current-chart trend.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Fill the zone between the fast and slow EMA, colored by the current-chart trend.

Show Confirmation ZoneboolDefault: true
Input type
bool
Source default
true
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Draw the projected confirmation band with a centered score label while a bias is confirmed.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Draw the projected confirmation band with a centered score label while a bias is confirmed.

Show Confirmation MarkersboolDefault: true
Input type
bool
Source default
true
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Mark each new confirmation and the bar a confirmed bias is lost.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Mark each new confirmation and the bar a confirmed bias is lost.

Show Bias InvalidationboolDefault: true
Input type
bool
Source default
true
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Draw the level where the confirmed bias would be invalidated.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Draw the level where the confirmed bias would be invalidated.

Trend Module

4 inputs
Fast EMA LengthintDefault: 20
Input type
int
Source default
20
Available options
Not specified in source
Minimum
2
Maximum
Not specified in source
Step
Not specified in source

What it controls

Short-term trend reference, used on the chart, the higher timeframe and the driver asset.

Effect on the script

This changes the observation window or sensitivity of the named calculation feeding the workflow.

When to adjust it

Match the calculation horizon to the analytical question and keep it recorded when comparing results.

Interpretation and limits

Changing the window changes the historical context and can alter warm-up, states and observations. It does not validate a future edge.

Original input tooltip

Short-term trend reference, used on the chart, the higher timeframe and the driver asset.

Slow EMA LengthintDefault: 50
Input type
int
Source default
50
Available options
Not specified in source
Minimum
3
Maximum
Not specified in source
Step
Not specified in source

What it controls

Dominant trend reference.

Effect on the script

This changes the observation window or sensitivity of the named calculation feeding the workflow.

When to adjust it

Match the calculation horizon to the analytical question and keep it recorded when comparing results.

Interpretation and limits

Changing the window changes the historical context and can alter warm-up, states and observations. It does not validate a future edge.

Original input tooltip

Dominant trend reference.

Min Trend Slope %floatDefault: 0.03
Input type
float
Source default
0.03
Available options
Not specified in source
Minimum
0.0
Maximum
5.0
Step
0.01

What it controls

Minimum slow-EMA slope for a valid current-chart trend. Filters flat markets.

Effect on the script

This changes the observation window or sensitivity of the named calculation feeding the workflow.

When to adjust it

Match the calculation horizon to the analytical question and keep it recorded when comparing results.

Interpretation and limits

Changing the window changes the historical context and can alter warm-up, states and observations. It does not validate a future edge.

Original input tooltip

Minimum slow-EMA slope for a valid current-chart trend. Filters flat markets.

Slope WindowintDefault: 10
Input type
int
Source default
10
Available options
Not specified in source
Minimum
2
Maximum
Not specified in source
Step
Not specified in source

What it controls

Completed-bar lookback for percentage change in the local slow EMA. Longer windows smooth the local trend filter.

Effect on the script

This changes the observation window or sensitivity of the named calculation feeding the workflow.

When to adjust it

Match the calculation horizon to the analytical question and keep it recorded when comparing results.

Interpretation and limits

Changing the window changes the historical context and can alter warm-up, states and observations. It does not validate a future edge.

Original input tooltip

Completed-bar lookback for percentage change in the local slow EMA. Longer windows smooth the local trend filter.

Confirmation Module

11 inputs
Higher Timeframe (auto if blank)timeframeDefault: "" (empty string)
Input type
timeframe
Source default
"" (empty string)
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Leave blank for automatic step-up. The selected timeframe must be strictly higher than the chart. Standard time-based charts only; invalid configuration blocks confirmation.

Effect on the script

This selects the timeframe for the documented wider-context series or enables that factor in the confluence checklist.

When to adjust it

Choose the higher-timeframe horizon deliberately and keep it consistent with the chart review.

Interpretation and limits

Context must satisfy the source-data and timeframe gates. A wider timeframe is not a forecast, and its confirmation timing matters.

Original input tooltip

Leave blank for automatic step-up. The selected timeframe must be strictly higher than the chart. Standard time-based charts only; invalid configuration blocks confirmation.

Reference / Driver AssetsymbolDefault: "BINANCE:BTCUSDT"
Input type
symbol
Source default
"BINANCE:BTCUSDT"
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Choose an external context asset, e.g. BTC for altcoins. The previous closed driver candle is used, introducing one driver-bar delay. Missing or stale data blocks confirmation. Choosing the chart itself is rejected as self-confirmation.

Effect on the script

This selects the external reference series used by the documented contextual comparison.

When to adjust it

Choose a reference with a defensible relationship to the active chart, matching the question and units of the study.

Interpretation and limits

Missing, stale or unsuitable reference data can invalidate a comparison. Present relative behavior does not guarantee future correlation or outperformance.

Original input tooltip

Choose an external context asset, e.g. BTC for altcoins. The previous closed driver candle is used, introducing one driver-bar delay. Missing or stale data blocks confirmation. Choosing the chart itself is rejected as self-confirmation.

Invert ReferenceboolDefault: false
Input type
bool
Source default
false
Available options
Not specified in source
Minimum
Not specified in source
Maximum
Not specified in source
Step
Not specified in source

What it controls

Invert the driver direction. Enable for inverse drivers such as DXY versus risk assets.

Effect on the script

This reverses the reference direction used by the contextual alignment check.

When to adjust it

Enable it only when an inverse relationship is part of your defined market thesis.

Interpretation and limits

Inverting a disagreeing reference merely to obtain agreement changes the thesis; it does not confirm it.

Original input tooltip

Invert the driver direction. Enable for inverse drivers such as DXY versus risk assets.

Momentum RSI LengthintDefault: 14
Input type
int
Source default
14
Available options
Not specified in source
Minimum
2
Maximum
Not specified in source
Step
Not specified in source

What it controls

RSI length used for the chart and driver momentum agreement.

Effect on the script

This changes the observation window or sensitivity of the named calculation feeding the workflow.

When to adjust it

Match the calculation horizon to the analytical question and keep it recorded when comparing results.

Interpretation and limits

Changing the window changes the historical context and can alter warm-up, states and observations. It does not validate a future edge.

Original input tooltip

RSI length used for the chart and driver momentum agreement.

Confirmation ThresholdintDefault: 70
Input type
int
Source default
70
Available options
Not specified in source
Minimum
50
Maximum
100
Step
Not specified in source

What it controls

Minimum heuristic score for a new aligned context. It is not a probability. Must exceed Watch Threshold.

Effect on the script

This changes the boundary for the named score classification or qualification gate.

When to adjust it

Specify how strict that classification should be before reviewing the resulting states and samples.

Interpretation and limits

Changing a threshold changes what qualifies. It does not improve the underlying market conditions or establish a success probability.

Original input tooltip

Minimum heuristic score for a new aligned context. It is not a probability. Must exceed Watch Threshold.

Watch ThresholdintDefault: 45
Input type
int
Source default
45
Available options
Not specified in source
Minimum
0
Maximum
99
Step
Not specified in source

What it controls

Score above which the panel score reads as building rather than weak.

Effect on the script

This changes the boundary for the named score classification or qualification gate.

When to adjust it

Specify how strict that classification should be before reviewing the resulting states and samples.

Interpretation and limits

Changing a threshold changes what qualifies. It does not improve the underlying market conditions or establish a success probability.

Original input tooltip

Score above which the panel score reads as building rather than weak.

Bias-Loss Tolerance (Bars)intDefault: 3
Input type
int
Source default
3
Available options
Not specified in source
Minimum
1
Maximum
50
Step
Not specified in source

What it controls

Bars of lost alignment tolerated before a confirmed bias is declared lost. Filters brief flicker.

Effect on the script

This controls the documented persistence, spacing or re-arming requirement for an analytical state or event.

When to adjust it

Choose the stability or spacing requirement before assessing repeated events.

Interpretation and limits

Greater persistence or spacing can delay or suppress events. It does not remove uncertainty or make a retained state permanently valid.

Original input tooltip

Bars of lost alignment tolerated before a confirmed bias is declared lost. Filters brief flicker.

Confirmation Cooldown (Bars)intDefault: 5
Input type
int
Source default
5
Available options
Not specified in source
Minimum
0
Maximum
100
Step
Not specified in source

What it controls

Bars to wait after a bias is lost before a new confirmation can register. Keeps the chart clean.

Effect on the script

This controls the documented persistence, spacing or re-arming requirement for an analytical state or event.

When to adjust it

Choose the stability or spacing requirement before assessing repeated events.

Interpretation and limits

Greater persistence or spacing can delay or suppress events. It does not remove uncertainty or make a retained state permanently valid.

Original input tooltip

Bars to wait after a bias is lost before a new confirmation can register. Keeps the chart clean.

Maximum Context AgeintDefault: 160
Input type
int
Source default
160
Available options
Not specified in source
Minimum
10
Maximum
1000
Step
Not specified in source

What it controls

Expire a confirmed context after this many completed chart bars. A later confirmation receives a new event ID and obeys cooldown.

Effect on the script

This sets the documented age, waiting period or forward observation deadline used by the event lifecycle.

When to adjust it

Match the review horizon to the question being studied and keep the deadline explicit in historical comparisons.

Interpretation and limits

Changing a deadline changes which observations resolve, expire or remain eligible. A timed model observation is not a broker trade.

Original input tooltip

Expire a confirmed context after this many completed chart bars. A later confirmation receives a new event ID and obeys cooldown.

Driver Maximum Age (Chart Bars)intDefault: 2
Input type
int
Source default
2
Available options
Not specified in source
Minimum
0
Maximum
20
Step
Not specified in source

What it controls

Maximum elapsed time between the last closed driver candle and the current chart candle open, in chart-period units. Closed driver data is deliberately delayed by one driver candle. Stale or missing data blocks confirmation and closes an active context.

Effect on the script

This sets the documented age, waiting period or forward observation deadline used by the event lifecycle.

When to adjust it

Match the review horizon to the question being studied and keep the deadline explicit in historical comparisons.

Interpretation and limits

Changing a deadline changes which observations resolve, expire or remain eligible. A timed model observation is not a broker trade.

Original input tooltip

Maximum elapsed time between the last closed driver candle and the current chart candle open, in chart-period units. Closed driver data is deliberately delayed by one driver candle. Stale or missing data blocks confirmation and closes an active context.

Forward Edge Horizon (Bars)intDefault: 10
Input type
int
Source default
10
Available options
Not specified in source
Minimum
3
Maximum
200
Step
Not specified in source

What it controls

Completed chart bars from a sampled confirmation close to its fixed-horizon close. Only one observation is pending at a time; overlapping confirmations are counted separately and skipped. A bias loss does not end the fixed-horizon observation.

Effect on the script

This sets the documented age, waiting period or forward observation deadline used by the event lifecycle.

When to adjust it

Match the review horizon to the question being studied and keep the deadline explicit in historical comparisons.

Interpretation and limits

Changing a deadline changes which observations resolve, expire or remain eligible. A timed model observation is not a broker trade.

Original input tooltip

Completed chart bars from a sampled confirmation close to its fixed-horizon close. Only one observation is pending at a time; overlapping confirmations are counted separately and skipped. A bias loss does not end the fixed-horizon observation.

Risk / Invalidation

2 inputs
ATR LengthintDefault: 14
Input type
int
Source default
14
Available options
Not specified in source
Minimum
1
Maximum
Not specified in source
Step
Not specified in source

What it controls

ATR window used for the confirmation band and label clearance. It does not set a position size or stop order.

Effect on the script

This changes the documented volatility, risk-distance or location reference used by the analytical workflow.

When to adjust it

Set the relevant risk or distance assumption as part of a coherent plan, then inspect the resulting geometry.

Interpretation and limits

A chart reference is not an account-risk limit, a live stop or a guarantee of execution. Gaps and changing volatility can exceed the reference.

Original input tooltip

ATR window used for the confirmation band and label clearance. It does not set a position size or stop order.

Invalidation Swing LookbackintDefault: 10
Input type
int
Source default
10
Available options
Not specified in source
Minimum
2
Maximum
Not specified in source
Step
Not specified in source

What it controls

Recent swing window used to place the bias-invalidation level.

Effect on the script

This changes the swing or structural reference used by the documented detection or risk-reference calculation.

When to adjust it

Match the swing scale to the structure you intend to inspect, then review the resulting anchors and confirmation timing.

Interpretation and limits

Confirmed pivots require subsequent bars. Different settings create different structure and can change later events and observations.

Original input tooltip

Recent swing window used to place the bias-invalidation level.

Labels

4 inputs
Label Offset (ATR)floatDefault: 0.9
Input type
float
Source default
0.9
Available options
Not specified in source
Minimum
0.0
Maximum
5.0
Step
0.1

What it controls

Requested marker clearance in ATR units, with a minimum of 1.5 ATR and font-aware collision lanes. Labels preserve event bars but are not exact price markers.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Requested marker clearance in ATR units, with a minimum of 1.5 ATR and font-aware collision lanes. Labels preserve event bars but are not exact price markers.

Level Forward BarsintDefault: 32
Input type
int
Source default
32
Available options
Not specified in source
Minimum
16
Maximum
120
Step
Not specified in source

What it controls

Bounded projection width for the centered confirmation band and solid risk guide.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Bounded projection width for the centered confirmation band and solid risk guide.

Max MarkersintDefault: 12
Input type
int
Source default
12
Available options
Not specified in source
Minimum
4
Maximum
60
Step
Not specified in source

What it controls

Maximum number of recent confirmation markers kept on the chart. Older markers are removed automatically for a clean, premium view.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Maximum number of recent confirmation markers kept on the chart. Older markers are removed automatically for a clean, premium view.

Min Bars Between MarkersintDefault: 8
Input type
int
Source default
8
Available options
Not specified in source
Minimum
0
Maximum
200
Step
Not specified in source

What it controls

Minimum bars between visible confirmation events. Prevents overlapping markers across extended alignment cycles.

Effect on the script

This controls the visibility, placement, extent or retained history of the documented visual element. It is part of the chart presentation layer.

When to adjust it

Change it when the active reference is hard to inspect or when historical annotations compete with current price action.

Interpretation and limits

Reducing visible history or hiding an element does not improve the underlying observations. A visual projection is not a price forecast.

Original input tooltip

Minimum bars between visible confirmation events. Prevents overlapping markers across extended alignment cycles.

Keep the settings in context

Change one analytical assumption at a time and compare the same instrument, timeframe and history. A chart reference, score, observation rate or input default does not establish a trade fill, a forward probability or a guaranteed outcome.

Return to the product overview · View this script on TradingView