تم تحديثه

Omega Automatic Pattern Recognition Forcaster

احصل على هذا المؤشر وغيره من المؤشرات الحصرية في Quant Suite

هذا المؤشر جزء من المساحة المدفوعة الخاصة بـ OmegaTools. اشترك مقابل $69.00 شهريًا لاستخدامها على الرسوم البيانية إلى جانب المؤشرات الحصرية الأخرى للمؤلف. ادفع مباشرةً على TradingView واحصل على إمكانية الوصول فورًا.

استكشف Quant Suite
OMEGA AUTOMATIC PATTERN RECOGNITION FORCASTER
A self-learning state forecaster: up to six market conditions become one market state, and the record of what followed that state decides between Long, Short and Neutral.

Overview
Ω APRF is a statistical forecaster inspired by discrete-state Markov models. It reduces up to six conditions, chosen from a library of 15, to a three-way reading and combines them into a single market state. For every state it keeps a running count of what followed over the next bars: a rise, a flat outcome or a fall. When the current state recurs, the forecaster reads that record and shows the dominant outcome, but only when its share clears the Win Rate Filter. It forecasts direction over a chosen horizon, not a price target, and it scores its own forecasts out of sample so you can judge them on your market and timeframe.

Role in the Omega system
Every OmegaTools indicator fills one or more of four roles in a setup: Bias (which way), Location (where), Trigger (when) and Filter (whether). Ω APRF is primarily a Bias tool:
  • Bias: the forecast sets the expected direction over the Forecast Period.
  • Trigger: optional arrows, and alerts on every new forecast, mark when a Long or Short reading is active.
  • Filter: forecast agreement. Take a setup from another tool only when Ω APRF points the same way, and stand aside while it reads Neutral.


Why these components work together
A single condition, such as a breakout or a turn in RSI, carries little information on its own, because what follows it depends on the context it appears in. Ω APRF does not weigh conditions with fixed rules. It treats each combination of readings as a distinct state and lets the chart's own history show how that combination has resolved. Combining the conditions is what makes this possible: a breakout inside a rising short-term structure on high volume is recorded apart from a breakout inside a falling structure on low volume. The confidence filter, the optional FXD confirmation and the out-of-sample backtest then separate states with a one-sided record from states whose record is mixed or thin.

How it works

1. Condition encoding
Each input reads one condition and reduces it to one of three values. Directional conditions read bullish, neutral or bearish; Volume and Volatility read high, normal or low; Session reads Asia, Europe or America. The library:
  • Breakout and Manipulation: a close beyond the prior 20-bar range, or a wick beyond it that closes back inside, read as a failed break against its direction.
  • Reversal Points: abnormal volume, range and distance from the mean on the same bar, read as exhaustion.
  • ZScore, RSI, Phase and WPR: statistical stretch from the mean, the direction of RSI, the last overbought or oversold RSI phase, and the position of price within its recent range.
  • MACD, ADX and RVWAP: momentum, directional strength, and a short rolling volume-weighted price against a long one.
  • Structure Short and Structure Long: the direction of the midpoint of the 20-bar and 100-bar range.
  • Volume, Volatility and Session: volume against its own bands, the percentile rank of the recent range, and the trading session of the bar.

Each input has its own lag, so it can read its condition up to 20 bars back, and each pair of inputs can be read from another symbol for cross-market context.

2. States and memory
The six readings form one of 729 possible states. Once the Forecast Period has passed, the outcome is attached to the state that preceded it. In Returns mode the outcome is whether price closed higher, lower or unchanged. In Complex Returns mode the move must exceed a threshold derived from the average absolute move over that period, and smaller moves count as flat. Every bar adds one completed observation to a frequency table of states and outcomes, so the table only ever holds outcomes that are already known. The Learning Length sets how many bars of observations the table remembers: each observation is removed exactly when it leaves that window, so the record follows the current regime. The Learning Rate can thin the updates to every second, third or later bar.

3. Forecast and confidence
On each bar the current state is looked up in the table. The outcome with the highest count is the candidate forecast, and its share of all observations of that state is the confidence. A Long or Short forecast is shown only when the confidence exceeds the Win Rate Filter and one outcome leads outright. A tie, an empty record or a dominant flat outcome reads Neutral. With FXD ticked on an input, the forecast is kept only while that input currently reads in the same direction; with several FXD inputs, all of them must agree.

4. Higher-timeframe mode
The model can learn and forecast on a timeframe above the chart's. It then reads the last closed bar of that timeframe, so the forecast updates once per higher-timeframe bar and does not change while that bar is still forming.

5. Out-of-sample backtest
Each Long or Short forecast is scored once its Forecast Period has passed, against an outcome that was not yet known when the forecast was made. Over the most recent forecasts (the Backtest Length), the indicator reports:
  • Win rate: the share of forecasts whose outcome matched their direction.
  • Size advantage: the average winning move against the average losing move.
  • Alpha: the sum of winning moves against the sum of losing moves, in percent above or below break-even (0%).


Dashboard
The timeframe and horizon, the current forecast with the direction of recent forecasts, the confidence, and the sample behind it (the dominant count out of all observations of the current state). A status line explains every reading: Active, Below filter, Tie, Neutral dominant, FXD veto or No history yet. An inputs line shows the live reading of each active input (▲ bullish or high, ▼ bearish or low, • neutral; for Session, ▼ Asia, • Europe, ▲ America), followed by the backtest Alpha. Full Table adds the win rate, the size advantage and the number of forecasts tested.

How to use it
  • Start with two or three inputs, and set the Forecast Period to your holding time in bars.
  • Begin with the Win Rate Filter at 50 and raise it gradually: fewer forecasts, with more agreement behind each one.
  • Check the Alpha, the out-of-sample win rate and the number of forecasts tested before relying on a forecast.
  • Use the forecast as bias or as a filter, and take stops and targets from your location tool.
  • When the status reads No history yet, load more history or use fewer inputs: every extra input triples the number of states and thins the record of each one.


Settings
  • Timeframe: the timeframe the model learns and forecasts on; empty uses the chart.
  • Forecast Period, Learning Length and Learning Rate: the horizon in bars, the memory of the table, and how often it is updated.
  • Win Rate Filter: the minimum confidence for a Long or Short forecast.
  • Output: Returns or Complex Returns.
  • Denoise Data: ZScore, RSI, WPR, MACD, RVWAP and the other conditions built on price read a smoothed price instead of the raw close; Breakout and Manipulation always use the raw close.
  • Inputs 1–6: condition, lag and FXD for each slot, plus an optional custom symbol for each pair.
  • Visual: trend candles, arrows, alpha labels (confidence minus 50), background, colors and the full table.
  • Backtest and Dashboard: the number of forecasts tested; show, position and text size of the dashboard.


Alerts
  • Long forecast
  • Short forecast
  • Forecast neutral
  • Forecast changed


Notes
  • The model learns from the chart's own history. It starts recording after the first 200 bars, and rare states may stay Neutral until they have been observed enough times. More inputs need more history.
  • Confidence is the past share of one outcome in a given state. It describes the record of that state, not the chance of the next outcome.
  • The backtest compares closes one Forecast Period apart, without spread, commissions or slippage. Its figures change as new forecasts enter the window and old ones leave it.
  • On the chart timeframe, the forecast uses the current bar and can change until the bar closes. Set alerts to trigger once per bar close.
  • Custom symbols should trade during the same hours as the chart; while one has no new bar, its last reading is carried forward.
  • Reversal Points, RVWAP and Volume need real volume data; on symbols with tick volume only, read them with care.
  • A change in market regime can make a past record less relevant until the learning window has rolled forward.


This indicator is a decision-support tool. Its forecasts are statistical readings of past behavior, not predictions, and the past record of any state or backtest does not guarantee future results. Always apply your own risk management.
ملاحظات الأخبار
Fixed learning window; higher-timeframe forecasts no longer repaint; FXD on multiple inputs.
Dashboard with forecast, confidence, sample and status; alerts added.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.