PROTECTED SOURCE SCRIPT
PrecisionGateKeeper v2.3

================================================================
PrecisionGateKeeper v2.3 — TradingView Description
================================================================
"Knowing when to trade and when to sit out, may keep you safe."
GateKeeper is a chart label overlay and is best paired with one of your favorite indicators. It can be moved to the upper or lower pane. In the main image I have it paired with Combo and you can view it below center of the chart. This is where I prefer to keep it.
PrecisionGateKeeper is a real-time trade gating system that evaluates market conditions across four pillars — Flow, Structure, Trend, and Readiness — and outputs a single Pressure Score (0–100) that tells you whether conditions support taking a trade right now.
Here's a reworked version:
"You can have the best entry signal in the world and still lose money if the environment is working against you. Chop grinds you down, volatility shakes you out, and fading momentum leaves you holding a dead position. PrecisionGateKeeper sits between you and those conditions. It evaluates whether the market is actually set up to let your trade work — and if it isn't, the gate stays locked. No signal, no matter how clean, is worth taking into a broken tape."
HOW IT WORKS
PrecisionGateKeeper builds a composite Pressure Score from four independent pillars, each measuring a different dimension of trade quality:
Flow Pillar (0–30 points) — Estimates buying and selling pressure by analyzing where price closes within each bar's range relative to volume. This is a widely-used approximation method based on the relationship between close position within the high-low range and bar volume. It is not true order flow data — actual order flow requires Level 2 or DOM data not available in standard charting platforms. The pillar also detects absorption patterns where volume is high but price movement is suppressed.
Structure Pillar (0–25 points) — Evaluates VWAP position, EMA alignment (9/21/34), body strength relative to bar range, and compression signatures where average range contracts below its 50-bar moving average. Higher scores indicate the market is structurally organized, not random.
Trend Pillar (0–20 points) — Measures directional conviction through VWAP slope strength relative to ATR, full EMA stack alignment, and price position relative to both VWAP and the fast EMA. This pillar scores in the direction matching your selected trading bias (Long Only or Short Only).
Ready Pillar (0–25 points) — Detects whether the market is coiled and prepared to move. Evaluates proximity to the 20-bar high (for longs) or 20-bar low (for shorts) while trend is confirmed, tight range compression, volatility squeeze, and volume increasing above its 20-bar average.
The four pillar scores combine into the total Pressure Score. The score drives the state engine.
THE STATE ENGINE
PrecisionGateKeeper classifies market conditions into five states:
NO-TRADE (gray) — The gate is locked. Pressure Score is below 50 or chop has been detected. Do not trade. This is the most important state — it keeps you out of conditions that destroy edge.
BUILDING (yellow) — The gate is opening. Pressure Score is between 50 and 69. Conditions are improving but not yet confirmed. Watch and prepare, but do not commit.
READY (light green) — The gate is cracked open. Pressure Score is 70 or above. All four pillars are contributing. Conditions support taking a trade in your selected direction. Prepare for entry.
BREAKOUT / BREAKDOWN (bright green) — The gate is fully open. Price has broken the 20-bar high (long) or low (short) with confirmed flow dominance and trend alignment. This is the highest-conviction state.
EXHAUSTED (red) — Take profits. The Pressure Score was previously strong but has dropped below 45 while falling below its moving average. Momentum is fading.
MARKET MODE DETECTION
In addition to the state engine, PrecisionGateKeeper classifies the overall market environment:
TRENDING — ATR is within normal range and no chop is detected. Conditions support directional strategies.
CHOP — Alternating price direction detected over the last 5 bars with minimal net progress and flat VWAP slope. The NO-TRADE state is automatically enforced during chop — this override is hardcoded and cannot be disabled.
VOLATILE — ATR is elevated relative to its 50-bar average. Subdivided into LOW, NORMAL, and HIGH tiers. High volatility means wider stops and more whipsaw risk.
AUTO-SENSITIVITY
PrecisionGateKeeper automatically detects market capitalization using shares outstanding data and adjusts all internal thresholds accordingly. No manual configuration is required.
Micro Cap (under 300M) and Small Cap (300M–2B) use high sensitivity — thresholds are loosened to account for naturally wider spreads and more erratic price action.
Mid Cap (2B–10B) uses standard sensitivity.
Large Cap (above 10B) uses low sensitivity — thresholds are tightened because price action is smoother and signals should be more precise.
The detected cap tier is displayed on the status bar.
SETTINGS
Trading Bias — Select Long Only or Short Only. This determines which direction the Trend and Ready pillars score toward, and whether the breakout state triggers on highs or lows. Choose the direction that matches your trading plan for the session.
Label Position — Choose where the status bar appears on your chart.
Label Font Size — Adjust the status bar text size to your preference.
HOW TO USE IT
PrecisionGateKeeper is designed as a context filter, not a signal generator. Use it alongside your preferred entry method to validate whether the current environment supports your trade.
Set your bias at the start of each session based on your market read. Then let the state engine do the work — trade only when the gate opens, and respect the NO-TRADE state when it locks.
The status bar displays your bias, current state, Pressure Score, market mode, and cap tier in a single line for quick reference.
EXAMPLE: ONDS 5-Minute (Long Only)
The following sequence shows PrecisionGateKeeper tracking Ondas Inc (ONDS) through a morning session on Long Only bias. A separate price chart indicator is loaded above for visual context.

State: EXHAUSTED | 41/100 | MODE: TRENDING
Early in the session, ONDS made a small push but momentum is already fading. The Pressure Score sits at 41 with the EXHAUSTED state active — the gate was briefly open but has now closed. Price on the chart confirms the stall. GateKeeper is telling you the follow-through is not there. Stay out and wait for conditions to reset.

State: NO-TRADE | 25/100 | MODE: VOLATILE (HIGH)
Conditions have deteriorated. Score collapsed to 25 and the market mode has shifted to VOLATILE (HIGH). Price is chopping around with no direction. The gate is firmly locked. This is exactly the environment that creates false signals and stop-outs.

State: BUILDING | 66/100 | MODE: TRENDING
An hour later, conditions have transformed. The mode has returned to TRENDING and the Pressure Score has climbed to 66. BUILDING state means the gate is opening — flow, structure, trend, and readiness are all improving. You can see on the price chart that momentum is returning. Prepare for entry but wait for the gate to fully open.

State: BREAKOUT | 59/100 | MODE: TRENDING
The gate is open. ONDS has broken through the 20-bar high with confirmed flow dominance and trend alignment. The price chart confirms the move. This is the highest-conviction state — conditions support taking the long trade.
EXAMPLE: MNTS 5-Minute (Short Only)
The same system works in reverse. Here PrecisionGateKeeper tracks Momentus Inc (MNTS) on Short Only bias, showing how it filters conditions on the sell side. A separate price chart indicator is loaded above for visual context.

State: NO-TRADE | 25/100 | MODE: CHOP
MNTS has gapped up aggressively but GateKeeper reads CHOP with a score of 25. Despite the strong move, the price action is alternating and directionless from a short perspective. The gate is locked — this is not a shorting environment yet.

State: NO-TRADE | 23/100 | MODE: VOLATILE (HIGH)
Still locked out. Mode has shifted to VOLATILE (HIGH) and the score remains at 23. The price chart shows sell signals appearing, but GateKeeper says conditions are too volatile for clean entries. Patience.

State: BUILDING | 60/100 | MODE: TRENDING
Now the conditions are aligning. MNTS has rolled over and the mode has shifted to TRENDING. Score is 60 with BUILDING state active — the gate is opening for shorts. The price chart confirms bearish momentum developing. The setup is building toward a clean short entry.
DISCLAIMER
PrecisionGateKeeper is a technical analysis tool designed to assist with evaluating market conditions. It does not constitute financial advice and should not be relied upon as the sole basis for any trading decision. Trading involves substantial risk of loss. Past performance is not indicative of future results. The Flow Score component estimates buying/selling pressure using price position within the bar range — this is a widely-used approximation, not true order flow. Always do your own research and consult a licensed financial advisor before making trading decisions.
For questions, message me directly here on TradingView. Please provide feedback to both myself and the community, as it may help improve the internal scoring system of the indicator to provide clearer signals.
PrecisionGateKeeper v2.3 — TradingView Description
================================================================
"Knowing when to trade and when to sit out, may keep you safe."
GateKeeper is a chart label overlay and is best paired with one of your favorite indicators. It can be moved to the upper or lower pane. In the main image I have it paired with Combo and you can view it below center of the chart. This is where I prefer to keep it.
PrecisionGateKeeper is a real-time trade gating system that evaluates market conditions across four pillars — Flow, Structure, Trend, and Readiness — and outputs a single Pressure Score (0–100) that tells you whether conditions support taking a trade right now.
Here's a reworked version:
"You can have the best entry signal in the world and still lose money if the environment is working against you. Chop grinds you down, volatility shakes you out, and fading momentum leaves you holding a dead position. PrecisionGateKeeper sits between you and those conditions. It evaluates whether the market is actually set up to let your trade work — and if it isn't, the gate stays locked. No signal, no matter how clean, is worth taking into a broken tape."
HOW IT WORKS
PrecisionGateKeeper builds a composite Pressure Score from four independent pillars, each measuring a different dimension of trade quality:
Flow Pillar (0–30 points) — Estimates buying and selling pressure by analyzing where price closes within each bar's range relative to volume. This is a widely-used approximation method based on the relationship between close position within the high-low range and bar volume. It is not true order flow data — actual order flow requires Level 2 or DOM data not available in standard charting platforms. The pillar also detects absorption patterns where volume is high but price movement is suppressed.
Structure Pillar (0–25 points) — Evaluates VWAP position, EMA alignment (9/21/34), body strength relative to bar range, and compression signatures where average range contracts below its 50-bar moving average. Higher scores indicate the market is structurally organized, not random.
Trend Pillar (0–20 points) — Measures directional conviction through VWAP slope strength relative to ATR, full EMA stack alignment, and price position relative to both VWAP and the fast EMA. This pillar scores in the direction matching your selected trading bias (Long Only or Short Only).
Ready Pillar (0–25 points) — Detects whether the market is coiled and prepared to move. Evaluates proximity to the 20-bar high (for longs) or 20-bar low (for shorts) while trend is confirmed, tight range compression, volatility squeeze, and volume increasing above its 20-bar average.
The four pillar scores combine into the total Pressure Score. The score drives the state engine.
THE STATE ENGINE
PrecisionGateKeeper classifies market conditions into five states:
NO-TRADE (gray) — The gate is locked. Pressure Score is below 50 or chop has been detected. Do not trade. This is the most important state — it keeps you out of conditions that destroy edge.
BUILDING (yellow) — The gate is opening. Pressure Score is between 50 and 69. Conditions are improving but not yet confirmed. Watch and prepare, but do not commit.
READY (light green) — The gate is cracked open. Pressure Score is 70 or above. All four pillars are contributing. Conditions support taking a trade in your selected direction. Prepare for entry.
BREAKOUT / BREAKDOWN (bright green) — The gate is fully open. Price has broken the 20-bar high (long) or low (short) with confirmed flow dominance and trend alignment. This is the highest-conviction state.
EXHAUSTED (red) — Take profits. The Pressure Score was previously strong but has dropped below 45 while falling below its moving average. Momentum is fading.
MARKET MODE DETECTION
In addition to the state engine, PrecisionGateKeeper classifies the overall market environment:
TRENDING — ATR is within normal range and no chop is detected. Conditions support directional strategies.
CHOP — Alternating price direction detected over the last 5 bars with minimal net progress and flat VWAP slope. The NO-TRADE state is automatically enforced during chop — this override is hardcoded and cannot be disabled.
VOLATILE — ATR is elevated relative to its 50-bar average. Subdivided into LOW, NORMAL, and HIGH tiers. High volatility means wider stops and more whipsaw risk.
AUTO-SENSITIVITY
PrecisionGateKeeper automatically detects market capitalization using shares outstanding data and adjusts all internal thresholds accordingly. No manual configuration is required.
Micro Cap (under 300M) and Small Cap (300M–2B) use high sensitivity — thresholds are loosened to account for naturally wider spreads and more erratic price action.
Mid Cap (2B–10B) uses standard sensitivity.
Large Cap (above 10B) uses low sensitivity — thresholds are tightened because price action is smoother and signals should be more precise.
The detected cap tier is displayed on the status bar.
SETTINGS
Trading Bias — Select Long Only or Short Only. This determines which direction the Trend and Ready pillars score toward, and whether the breakout state triggers on highs or lows. Choose the direction that matches your trading plan for the session.
Label Position — Choose where the status bar appears on your chart.
Label Font Size — Adjust the status bar text size to your preference.
HOW TO USE IT
PrecisionGateKeeper is designed as a context filter, not a signal generator. Use it alongside your preferred entry method to validate whether the current environment supports your trade.
Set your bias at the start of each session based on your market read. Then let the state engine do the work — trade only when the gate opens, and respect the NO-TRADE state when it locks.
The status bar displays your bias, current state, Pressure Score, market mode, and cap tier in a single line for quick reference.
EXAMPLE: ONDS 5-Minute (Long Only)
The following sequence shows PrecisionGateKeeper tracking Ondas Inc (ONDS) through a morning session on Long Only bias. A separate price chart indicator is loaded above for visual context.
State: EXHAUSTED | 41/100 | MODE: TRENDING
Early in the session, ONDS made a small push but momentum is already fading. The Pressure Score sits at 41 with the EXHAUSTED state active — the gate was briefly open but has now closed. Price on the chart confirms the stall. GateKeeper is telling you the follow-through is not there. Stay out and wait for conditions to reset.
State: NO-TRADE | 25/100 | MODE: VOLATILE (HIGH)
Conditions have deteriorated. Score collapsed to 25 and the market mode has shifted to VOLATILE (HIGH). Price is chopping around with no direction. The gate is firmly locked. This is exactly the environment that creates false signals and stop-outs.
State: BUILDING | 66/100 | MODE: TRENDING
An hour later, conditions have transformed. The mode has returned to TRENDING and the Pressure Score has climbed to 66. BUILDING state means the gate is opening — flow, structure, trend, and readiness are all improving. You can see on the price chart that momentum is returning. Prepare for entry but wait for the gate to fully open.
State: BREAKOUT | 59/100 | MODE: TRENDING
The gate is open. ONDS has broken through the 20-bar high with confirmed flow dominance and trend alignment. The price chart confirms the move. This is the highest-conviction state — conditions support taking the long trade.
EXAMPLE: MNTS 5-Minute (Short Only)
The same system works in reverse. Here PrecisionGateKeeper tracks Momentus Inc (MNTS) on Short Only bias, showing how it filters conditions on the sell side. A separate price chart indicator is loaded above for visual context.
State: NO-TRADE | 25/100 | MODE: CHOP
MNTS has gapped up aggressively but GateKeeper reads CHOP with a score of 25. Despite the strong move, the price action is alternating and directionless from a short perspective. The gate is locked — this is not a shorting environment yet.
State: NO-TRADE | 23/100 | MODE: VOLATILE (HIGH)
Still locked out. Mode has shifted to VOLATILE (HIGH) and the score remains at 23. The price chart shows sell signals appearing, but GateKeeper says conditions are too volatile for clean entries. Patience.
State: BUILDING | 60/100 | MODE: TRENDING
Now the conditions are aligning. MNTS has rolled over and the mode has shifted to TRENDING. Score is 60 with BUILDING state active — the gate is opening for shorts. The price chart confirms bearish momentum developing. The setup is building toward a clean short entry.
DISCLAIMER
PrecisionGateKeeper is a technical analysis tool designed to assist with evaluating market conditions. It does not constitute financial advice and should not be relied upon as the sole basis for any trading decision. Trading involves substantial risk of loss. Past performance is not indicative of future results. The Flow Score component estimates buying/selling pressure using price position within the bar range — this is a widely-used approximation, not true order flow. Always do your own research and consult a licensed financial advisor before making trading decisions.
For questions, message me directly here on TradingView. Please provide feedback to both myself and the community, as it may help improve the internal scoring system of the indicator to provide clearer signals.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.