INVITE-ONLY SCRIPT
Updated

[Yorsh] BJN CTF FVG & Trade Helper v1.0

45
1. Executive Summary

The [Yorsh] BJN CTF FVG & Trade Helper v1.0 is an advanced, systematic trading tool designed for precision and objectivity in the futures market. Built on the high-speed PineScript v6, this indicator moves beyond simple FVG plotting by integrating a complete, rules-based trade execution model known as the "iFVG" (inverted Fair Value Gap) setup.

Its core purpose is to identify specific, high-probability trade scenarios, validate their structural integrity, and provide an automated position sizing and risk management visual directly on the chart. The indicator's primary competitive advantage lies in its strict, logical trade validation engine and its unwavering focus on performance, ensuring it can analyze complex market structures in real-time without causing chart lag. It is a complete "trade helper" designed to enforce discipline and automate complex analysis.

2. Core Features Overview

This indicator is built around a proprietary trade logic engine that automates a sophisticated trading model from start to finish (bjnfx.com).

A. Intelligent Fair Value Gap (FVG) Detection

Dynamic Sizing Rules: The indicator doesn't just find FVGs; it qualifies them. It automatically applies different minimum size requirements (in points) for the volatile NY session versus quieter, non-NY hours, filtering out insignificant noise.

Composite FVG Merging: In a unique and advanced feature, the script can identify two small, back-to-back, invalid FVGs and merge them into a single, valid composite FVG. This allows it to find powerful trade setups that other FVG indicators would miss entirely.

Live FVG Hints: An optional feature shows potential FVGs forming on the live, developing candle, giving you a valuable edge in anticipating the next setup.

B. The "iFVG" Trade Logic Engine

This is the heart of the indicator. It's a complete, long/short trading model that operates in distinct states:

Detection: Identifies a valid FVG.

Inversion: Waits for price to decisively close through the FVG, turning it from a potential continuation area into an "inversion" point (iFVG).

Structural Validation: This is the critical step. Before confirming a trade, the engine performs a rigorous, automated scan of the entire price leg to ensure:

The Invalidation Point (IP)—the last protective swing high/low—has not been contaminated.

No opposing "Hazard" FVGs have been touched, which would compromise the setup.

Confirmation: If the structure is clean, the indicator signals a confirmed trade setup with a marker ('L' for Long, 'S' for Short) and highlights the trigger candle.

C. Automated Position Sizing & Risk Management

Upon a confirmed trade signal, the "Trade Helper" instantly activates:

Dynamic Stop Loss Calculation: The SL is not placed arbitrarily. It is intelligently calculated based on the most logical structural point within the trading leg, using other nearby FVGs as potential support/resistance.

Bracketed Sizing: Based on the calculated SL in points, the indicator references a built-in risk matrix to determine the appropriate number of contracts to trade (e.g., a 5-point SL might suggest 10 contracts, while a 10-point SL suggests 5). This enforces consistent risk.

Full Visual Overlay: It draws a clear, color-coded box on your chart showing the precise Entry, Stop Loss (SL), Hard Stop (2x SL), and Take Profit (TP) levels, along with the calculated contract size.

D. Informative Status Panel

A clean, non-intrusive panel at the bottom of the screen keeps you constantly aware of the trade engine's status. It clearly displays whether the Bullish and Bearish engines are "Idle," "Armed" (a setup is developing), "Triggered," or "Invalidated," so you always know what the script is monitoring.

3. The Performance Advantage: Built for Speed and Scalpers

High-frequency logic can cripple a trading platform. This indicator was built from the ground up to prevent that, making it superior for traders who value a responsive, lag-free experience.

Strict Bar Lookback (maxLookbackBars): This is the key performance feature. The user defines a maximum number of historical bars (e.g., 200) for the script to analyze. Any FVG or price structure older than this limit is completely ignored and removed from memory. This prevents the script from bogging down your chart with thousands of irrelevant historical objects.

Timeframe-Specific History Limits: The script automatically applies even stricter history limits on lower timeframes (e.g., 15-second charts only process the last 15 minutes of data), ensuring it remains exceptionally fast for scalping.

Surgical Array Pruning: On every bar, the indicator actively scans its memory for "stale" FVG objects that have fallen outside the lookback window. It then deletes their drawings and removes them from the active array, ensuring the logic engine is only ever processing a small, relevant, and recent dataset.

Efficient State Management: The logic is contained within a highly structured "engine." This prevents redundant calculations and ensures complex structural scans are only performed when a potential trade is actively developing, not on every single price tick.

The result is an institutional-grade algorithmic tool that runs with the speed and lightness of a simple moving average, giving you a decisive edge in execution.

4. Ideal User Profile

This indicator is purpose-built for:

Systematic & Rules-Based Traders: Individuals who want to remove emotion and subjectivity and trade a precise, repeatable model.

Scalpers & Intraday Futures Traders: Particularly those on NQ/MNQ, who require a high-performance tool that can keep up with fast-moving markets.

ICT iFVG Traders: Traders familiar with FVGs/iFVGs, invalidation points, and structural validation will find this tool automates the most tedious and error-prone parts of their analysis.

5. Conclusion

The [Yorsh] BJN CTF FVG & Trade Helper v1.0 is more than just an indicator; it is a semi-automated trading assistant. It provides a clear, objective, and highly-validated trade model designed to enforce discipline. Its defining characteristic is its sophisticated logic engine, combined with a performance-first architecture that sets a new standard for what traders should expect from their analytical tools. For the systematic trader, it offers an unparalleled blend of precision, automation, and speed.
Release Notes
v1.1 - bug fixes

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.