Indicator

Arc Engine
Executive Summary
Arc Engine - is a high-performance, non-repainting quantitative trading script engineered specifically for intraday market structures. The engine is architected to exploit the fractal geometry of financial markets by tracking systematic cycles of expansion and contraction (represented visually as macro structural "arcs").
By mapping the footprints of high-frequency trading (HFT) models and institutional order execution routing, the engine isolates structural exhaustion zones, filters out toxic market noise, and targets explosive breakouts with mechanical precision.
Core System Architecture & Multi-Layer Logic-
The engine structures market data into a clean, hierarchical multi-layered framework designed to eliminate emotional bias and lag:
LAYER 1: THE MACRO BASELINE ANCHOR (200 EMA) |
| Defines the structural environment (Dominant Cycle Slope) |
+------------------------------------------------------------+
│
▼
+------------------------------------------------------------+
| LAYER 2: INSTITUTIONAL RIBBON MATRIX (20 EMA / 50 EMA) |
| Maps short-to-medium term value capture & contraction zones|
+------------------------------------------------------------+
│
▼
+------------------------------------------------------------+
| LAYER 3: CLEAN BREAKOUT FILTER (Execution Trigger) |
| Enforces strict structural clearance rules (No Fake Wicks) |
+------------------------------------------------------------
1. The Macro Baseline Anchor (Layer One)
At the core of the engine sits the 200-period Exponential Moving Average (EMA). Serving as the system's "gravitational center," this line distinguishes between macro expansion and structural mean reversion. In a heavy downward cycle or macro arc formation, this boundary represents the institutional ceiling where short-sellers repeatedly defend liquidity.
2. The Institutional Ribbon Matrix (Layer Two)
The intermediate structural behavior is governed by a smoothed ribbon matrix comprising the 20 EMA (Fast Line) and 50 EMA (Slow Line).
The Squeeze Zone: When these lines compress, flatten, and twist, the engine identifies a low-volatility compression zone (e.g., Wave 2 or Wave B structures).
The Expansion Phase: When the ribbon fans out with a steep slope, it confirms true algorithmic momentum (e.g., Wave 3 or Wave C expansions).
3. The Clean Breakout Filter (Layer Three)
To mitigate the risk of algorithmic "liquidity hunts" (where market makers intentionally trigger retail stops via volatile wicks before reversing price), the engine abandons standard line crossovers.
Execution requires a Clean Candle Breakout:
Long Trigger: The entire body (both the open and the close) of the execution candle must clear completely above the highest boundary of the Ribbon Matrix.
Short Trigger: The entire body of the candle must close completely below the lowest boundary of the Ribbon Matrix.
Algorithmic State Control & Execution Mechanics
Signal Pruning & Noise Reduction
To avoid the mathematical trap of "signal stacking" during high-volatility expansions, the script utilizes a strict persistent state variable architecture (last Signal Direction).
Execution Framework-
The engine is highly optimized for lower timeframes (such as the 1-minute, 2-minute, or 5-minute charts) to capture micro-turns with minimal drawdown.
By implementing the bar state is confirmed runtime condition, the engine evaluates execution rules exclusively at the exact millisecond a bar closes. This mathematically eliminates historical repainting, ensuring back testing performance matches live execution identically.
Indicator

Auto Pattern Detector Targets [MarkitTick]💡 Operates as an advanced geometric mapping engine designed to automatically identify structural equilibrium states and dynamically project precise L-Pool extraction targets. This tool systematically scans raw time-series data to detect complex, multi-node fractal formations, mathematically verifying their symmetry and proportional validity before a kinetic breach occurs. By unifying dimensional pattern recognition with a strict quantitative filtration system, it provides traders with an objective, continuous visual feed of active market structures, fully calculated risk voids, and mathematically derived extraction zones.
● ✨ Originality and Utility
Standard geometrical analysis often falls victim to subjective interpretation and manual drawing errors, rendering statistical backtesting and real-time execution highly inconsistent. This system revolutionizes the approach by abstracting classical chart formations into an Algorithmic Liquidity Matrix. Instead of relying on approximate trendlines, it employs precise Void Node anchoring, measuring the exact percentage tolerances between swing vectors. The utility of this engine lies in its ability to actively discard false-positive structures by running them through a multi-layered verification process that accounts for standard deviation thresholds, volume kinetic spikes, and net-friction Risk:Reward parameters. It does not merely draw shapes; it engineers a complete, actionable mathematical hypothesis for every identified structure, complete with slippage and commission discounting.
● 🔬 Methodology and Concepts
• Algorithmic Void Node Collection
The core detection protocol does not use standard zigzag logic. Instead, it deploys an abstracted lookback and look-forward matrix to isolate Void Anchors. These anchors are stored in persistent memory arrays, allowing the engine to compare historical coordinate points against current price action to find symmetrical congruence.
• Geometric Void Projection
Once the requisite Void Anchors are collected, the system attempts to fit them into predefined topological models (such as bilateral compressions, horizontal equilibria, or multi-crest voids). It calculates the median delta between these anchors. If the variance falls within the user-defined Symmetry Tolerance, the structure is flagged as a "pending" sequence.
• Kinetic Breach Validation
A structure is only formalized when a Kinetic Breach is confirmed. This requires the price action to cleanly sever the boundary vector of the established Void. To prevent mapping noise, this breach can be strictly gated by checking if the moving average of volume has spiked by a specific multiplier, and if the breach distance exceeds an ATR-derived boundary.
• Friction-Adjusted R:R Filtration
To ensure that only mathematically viable structures are presented, the engine calculates the distance from the entry coordinate to the L-Pool Extraction target and the Risk Void. It then subtracts predefined slippage ticks and bidirectional percentage commissions from the gross reward. If this normalized Risk:Reward ratio falls below the minimum threshold, the sequence is silently invalidated and purged from the display.
● 🎨 Visual Guide
• Sliced Geometric Fills
Shaded Polygons: When a structure is detected, the area between the upper and lower boundary vectors is filled with a translucent color, mapping the precise domain of the Void.
Bullish Fills: By default, structures projecting an upward L-Pool extraction are shaded with a specific bullish tone.
Bearish Fills: Structures projecting a downward extraction are shaded with a specific bearish tone.
• Projection Vectors
Entry Line (Yellowish): A dashed boundary indicating the exact price coordinate where the Kinetic Breach was validated.
Target Line (Greenish): A dashed boundary indicating the projected L-Pool extraction zone, calculated via measuring the maximum depth of the active Void.
Stop Line (Reddish): A dashed boundary denoting the Risk Void, typically placed beyond the opposite structural boundary or calculated as a percentage of the target distance.
• The Analytics Dashboard
Pattern Bias: Displays the active geometric trajectory (Bullish or Bearish).
Active Pattern: Outputs the specific topological classification of the current Void sequence.
Vol Spike: A visual bar meter and percentage evaluating the current volume kinetics relative to the moving average, indicating the strength of the breach.
R:R Quality: A dynamic gauge rating the mathematical viability of the projection after accounting for all execution friction.
Pivot Depth: Evaluates the density of the collected Void Anchors feeding the current Algorithmic Liquidity Matrix.
● 📖 How to Use
• Sequence Identification
Allow the engine to operate without manual interference. When a new geometric Void is filled on the chart, visually inspect the projection vectors. The system has already filtered this sequence through the active tolerance parameters.
• Validating the Kinetic Breach
Do not front-run the Entry Line. The structure is mathematically confirmed only when the designated bar closes beyond the boundary (if strict closing is enabled) or pierces it with sufficient ATR momentum.
• Dashboard Confluence
Before executing any logic based on the mapped projection, consult the Analytics Dashboard. A high-quality sequence should ideally present a high Vol Spike percentage, confirming that the Kinetic Breach is supported by active market participation. Furthermore, ensure the R:R Quality gauge reflects a favorable asymmetry for your specific risk parameters.
• Extraction and Risk Management
The Target Line and Stop Line represent strict invalidation and extraction coordinates. If the price returns and breaches the Stop Line, the topological premise of the Void is mathematically nullified.
● ⚙️ Inputs and Settings
• General Tolerances
Symmetry Tolerance (%): The maximum allowed variance between Void Anchors to still be considered part of a uniform structure.
Level Tolerance (%): The strictness applied to horizontal alignment for flat-boundary formations.
Min Pattern Size: Gates out micro-structures by requiring the Void depth to exceed a specific ATR multiplier or raw price percentage.
• Structural Toggles
Allows the user to independently activate or disable the detection of specific topologies (e.g., bilateral compressions vs. horizontal channels).
• Void Anchor Parameters
Lookback Left/Right: The strict bar-count threshold used by the algorithm to confirm an isolated Void Anchor.
Max Pivots to Remember: Controls the depth of the historical array memory, optimizing engine performance.
• Filtration & Execution Costs
Require Candle Close/Body Breakout: Enforces strict logic where only the close or full body of the bar can trigger a Kinetic Breach.
Volume Spike Multiplier: The threshold of volume required relative to the SMA to validate the breach.
Min Risk:Reward Ratio: The baseline mathematical threshold for a valid setup.
Slippage (Ticks) & Commission (%): The raw friction metrics applied dynamically to the R:R calculation to ensure realistic projections.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of this system rests on the hypothesis of structural equilibrium within financial time-series data. Markets continuously cycle between phases of linear displacement and volumetric consolidation. During consolidation, price action forms distinct geometric boundaries driven by the algorithmic rebalancing of supply and demand. By quantifying these boundaries, we can treat the chart not as a random walk, but as a topological map of active liquidity matrices.
The engine utilizes an advanced array-based memory structure to index local extrema (Void Anchors). To prevent the algorithm from fitting noise into false geometries, it applies strict variance thresholds. This is scientifically akin to minimizing the residual sum of squares in regression models; if the coordinate points of the extrema deviate beyond the acceptable Z-Score-inspired boundaries of symmetry, the hypothesis of a coherent structure is rejected.
Upon the occurrence of a Kinetic Breach, the system applies standard deviation modifiers (Average True Range) to validate the momentum. A breach is only considered statistically significant if it occurs outside the normal distribution of localized volatility, essentially confirming a transition from equilibrium back into linear displacement. The volume moving average acts as a secondary confirmation factor, ensuring that the kinetic expansion is supported by a statistically anomalous influx of standard normal distribution participation.
Finally, the target projection relies on the concept of measured topological depth. The maximum amplitude of the consolidated Void is mathematically transposed to the point of the Kinetic Breach. This reflects the theory of energy conservation in market dynamics: the kinetic energy released during a breakout is roughly proportional to the potential energy stored during the preceding consolidation. By actively integrating execution friction (slippage and commission) into the final coordinate calculations, the engine shifts from purely theoretical geometry to applied quantitative modeling, providing a highly realistic framework for continuous market analysis.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Cup & Handle (Zeiierman)█ Overview
Cup & Handle (Zeiierman) is a classic continuation-pattern scanner that detects both bullish Cup+Handle and bearish Inverted Cup+Handle structures using a compact pivot stream. It’s designed to highlight rounded reversals back to a “rim” level, followed by a smaller pullback (“handle”) before a potential continuation move.
⚪ What It Detects
A Cup & Handle (Bull) forms when price makes a rounded decline from a left rim, bottoms, then climbs back to a similar right rim. After returning to the rim, price forms a handle (a smaller pullback) that stays within an allowed retracement range. This pattern often precedes a bullish continuation attempt.
An Inverted Cup & Handle (Bear) is the mirrored version. Price makes a rounded rise to a left rim, tops, then declines back to a similar right rim. After returning to that rim, price forms a handle (a smaller bounce) that stays within the allowed retracement range. This pattern often precedes a bearish continuation attempt.
█ How It Works
⚪ 1) Pivot Extraction (Swing Compression)
The script first converts raw candles into a small set of meaningful swing pivots using ta.pivothigh() and ta.pivotlow() with Pivot span. A pivot is accepted only after it is confirmed by the lookback window, which helps reduce noise.
Key effect:
Higher Pivot span = fewer, stronger pivots (cleaner patterns)
Lower Pivot span = more pivots (more patterns, more noise)
⚪ 2) Pattern Framing (4-Point Structure)
When at least four pivots exist, the script maps them into a fixed sequence:
For a bull Cup+Handle sequence: High → Low → High → Low
These are treated as:
L = left rim pivot
B = cup bottom pivot
R = right rim pivot
H = handle pivot
For a bear inverted Cup+Handle sequence: Low → High → Low → High
Mapped similarly, but inverted.
This “4-pivot” structure is the minimum shape needed to define a cup and a handle without overfitting.
⚪ 3) Rim Similarity Filter (Cup Quality Control)
The script checks if the left rim and right rim are close enough to be considered a proper cup rim:
Rim similarity tolerance (%) controls this.
Lower tolerance = only very clean symmetric rims
Higher tolerance = allows uneven rims (more detections)
⚪ 4) Handle Depth Filter (Reject Weak or Messy Handles)
The handle is validated by measuring how deep it retraces relative to the cup depth:
Handle Retraction = |rim − handle| / |rim − bottom|
The handle must fall between:
Handle retrace min
Handle retrace max
This prevents:
tiny “non-handle” wiggles (too shallow)
deep pullbacks that break the structure (too deep)
█ How to Use
⚪ Interpreting a Bull Cup & Handle
Treat it like a continuation setup built around a key breakout level:
Cup forms
Handle forms
Breakout happens above this level
Once price returns to this breakout zone and the handle stays controlled, the structure may attempt to continue upward.
Common behaviors after a clean signal:
Push above the breakout level
Brief retest/acceptance near the breakout zone
Continuation toward the projected target if momentum holds
⚪ Interpreting a Bear Inverted Cup & Handle
Treat it like a bearish continuation/rollover setup built around the same breakout concept:
Cup forms (inverted)
Handle forms
Breakout happens below this level
Once price returns to this breakout zone and the handle stays controlled, the structure may attempt to continue downward.
Common behaviors after a clean signal:
Drop below the breakout level
Retest from underneath
Continuation toward the projected target if selling pressure persists
█ Settings
Pivot span – pivot sensitivity. Higher = smoother pivots, fewer signals. Lower = more pivots, more signals/noise.
Rim similarity tolerance (%) – rim quality filter. Lower = stricter symmetry, higher = more permissive detection.
Handle retrace min – minimum handle depth (filters weak handles).
Handle retrace max – maximum handle depth (filters messy/deep handles).
Invalidation (handle max retrace %) – “maximum tolerated damage” for handle move before the structure is considered broken.
Require breakout confirmation – only trigger when price closes beyond the rim in the expected direction.
Target multiplier (× cup depth) – scales how far the projection target is. Lower = closer targets; 1.0 = classic depth target.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Indicator

BE-Fib Channel 2 Sided Trading█ Overview:
"BE-Fib Channel 2 Sided Trading" indicator is built with the thought of 2 profound setups named "Cup & Handle (C&H)" and "Fibonacci Channel Trading (FCT)" with the context of "day trading" or with a minimum holding period.
█ Similarities, Day Trading Context & Error Patterns:
While the known fact is that both C&H and FCT provide setups with lesser risk with bigger returns, they both share the similar "Base Pattern".
Note: Inverse of the above Image shall switch the setups between long vs short.
Since the indicator is designed for smaller time-frame candles, there may be instances where the "base pattern" does not visually resemble a Cup & Handle (C&H) pattern. However, patterns are validated using pivot points. The points labeled "A" and "C" can be equal or slightly slanted. Settings of the Indicator allows traders a flexibility to control the angle of these points to spot the strategies according to set conditions. Therefore, understanding the nuances of these patterns is crucial for effective decision-making.
█ 2 Sided Edge: FCT suggests to take trade closer to the yellow line to get better RR ratio. this leaves a small chance of doubt as to; what if price is intended to break the Yellow line thereby activating the C&H.
Wait for the confirmation is a Big FOMO with a compromised RR.
Hence, This indicator is designed to handle both the patterns based on the strength, FIFO and pattern occurring delay.
█ How to Use this Indicator:
Step 1: Enable the Show Sample Sensitivity option to understand the angle of yellow line shown in the sample image. By enabling this option, On the last bar you shall see 4 lines being plotted depicting the max angle which is acceptable for both long and short trades.
Note: Angle can be controlled via setting "Sensitivity".
Higher Sensitivity --> Higher Setup identification --> can lead to failed setups due to 2 sided trading.
Lower Sensitivity --> Lower Setup identification --> can increase the changes of being right.
Step 2: Adjust the look back & look forward periods which shall be used for identifying patterns.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more waiting period thereby compromising on the RR.
Step 3: Adjust the Base Range.
Note: Smaller values can lead to more setups being identified but can hamper the performance of the indicator while increasing the chances of failures. larger values identifies more significant setup but leads to more Risk on play.
Step 4: set the Entry level for FCT & Set the SL for Both FCT & C&H and Target Reward ratio for C&H.
█ Features of Indicator & How it works:
1. Patterns are being identified using Pivot Points method.
2. Tracks & validates both the setups simultaneously on every candle and traded one at a time based on FIFO, New setups found in-between, Defined Entry Levels while on wait for the other pattern to get activated.
3. Alerts added for trade events.
4. FCT setups are generally traded with trailed SL level and increasing Target level on every completed bar. while C&H has the standard SL & TP level with no Trail SL option.
DISCLAIMER: No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. I am not responsible for any losses you may incur. Please invest wisely.
Happy to receive suggestions and feedback in order to improve the performance of the indicator better. Indicator

Half Cup [LuxAlgo]The Half Cup indicator detects and displays patterns with the shape of a Half Cup , initiating a channel. From this channel, breakouts are detected and highlighted with dots.
Users can control the shape of the Half Cup and the channel length through various settings.
Do note that the displayed half cups are displayed retrospectively, making them subject to backpainting.
🔶 USAGE
The idea behind the indicator is derived from the Cup & Handle pattern, which requires waiting for the pattern full completion.
Our Half Cup publication aims to find opportunities when the potential cup is only formed halfway.
In this example, a green dot shows the first breakout of the upper channel extremity. A few bars later, the price went under it, after which it returned above, triggering a second green dot. Both triggers were good opportunities in this case, and the price rose afterward.
The Half Cup pattern can be the start of a potential complete Cup & Handle (As in the example above, a complete Cup pattern (without the Handle ) is shown, manually drawn with dashed lines).
Every green/red dot, whether on a bullish or bearish pattern, points to a breakout respectively above/below the channel.
Besides drawing patterns and the corresponding breakouts, the Half Cup indicator can also provide insights into trends and potential opportunities in the long run.
🔶 DETAILS
🔹 Validation
Several criteria must be fulfilled before a visible pattern on the chart is drawn.
Calculations are done beforehand to know where the Half Cup pattern would be positioned.
The pattern's bottom and top edges are checked for the number of bars whose closing price is outside the half-cup area. When the number of breakouts above/below is equal to or lower than the user-defined settings ( Max % Breaks Top/Bottom ), the pattern is drawn together with a brighter-colored channel next to it.
Dots highlighting the channel's breakout can be drawn from that moment until the end of both channel lines.
🔹 Positioning
Users can adjust the following settings to fit their needs:
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Note that adjusting the position of the pattern will change the validation; the script will be rerun to check if patterns are still valid or if new patterns can be drawn. Some patterns may disappear, while new ones may appear.
Before adjusting the position, the user can set Max % Breaks Top/Bottom at 100%. When the positioning is set, Max % Breaks Top/Bottom can be set as desired.
🔹 Updated Drawings
The Half Cup pattern is always drawn retrospectively (that is it is subject to backpainting), the channel is drawn from the bar from where the pattern is detected. Every breakout of the channel will remain visible as dots.
When a new swing high/low is found while the previous swing low/high remains the same, the pattern is updated to minimize clutter. The dots of earlier drawings will remain visible (to ensure no repainting occurs), but the color becomes faded, as such bright dots are associated with patterns that are visible on the chart, while faded dots are from removed/updated patterns.
🔶 SETTINGS
Swing Length: Period used for the swing detection, with higher values returning longer-term Swing Levels.
🔹 Validation
Max % Breaks Bottom: Allowed maximum amount of bars where the closing price is below the bottom of the Half Cup pattern against the total width of the pattern (bars).
Max % Breaks Top: Allowed maximum amount of bars where the closing price is above the top of the Half Cup pattern against the total width of the pattern (bars).
🔹 Positioning
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Indicator

Indicator

Indicator
