OPEN-SOURCE SCRIPT

buy sell ultra system

107
What it is
EMA-POC Momentum System Ultra combines a proven trend stack (EMA 20/50/238), a price-of-control layer (POC via Bar-POC or VWAP alternative), and a momentum trigger (RSI) to surface higher-quality entries only when multiple, independent conditions align. This is not a cosmetic mashup; each component gates the others.

How components work together

Trend (EMA 20/50/238): Defines short/medium/long bias and filters counter-trend signals.

POC (Bar-POC or Alt-POC/VWAP): Locates the most-traded/weighted price area; a neutral band around POC helps avoid chop.

Control background: Above POC → buyers likely in control; below → sellers.

Momentum (RSI): Entry arrows print only when RSI confirms with trend and price location vs POC; optional “cross 50” requirement reduces noise.

Optional HTF trend: Confluence with a higher-timeframe EMA stack for stricter filtering.

Why it’s original/useful
Signals require confluence of (1) EMA trend stack, (2) POC location and neutral-zone filtering, (3) momentum confirmation, (4) optional slope and distance-to-POC checks, and (5) optional HTF trend. This reduces false positives compared with using any layer in isolation.

How to use

Markets/TFs: Built for XAUUSD (Gold) and US30. Works 1m–1h for intraday; 2h–4h for swing.

Entries:

Long: EMA stack bullish, price above POC, not in neutral band, RSI condition true → “Buy” arrow.

Short: Opposite conditions → “Sell” arrow.

Stops/Targets (suggested):

Initial stop beyond POC/neutral band or recent swing.

First target around 1R; trail with EMA20/50 or structure breaks.

Settings to tune:

POC Mode: Bar-POC (highest-volume bar’s close over lookback) or Alt-POC (VWAP).

Neutral Band %: 0.10–0.35 typical intraday.

Min distance from POC: 0.10–0.50% helps avoid low-RR entries right at POC.

RSI: Choose “cross 50” for stricter triggers or simple >/< 50 for more signals.

HTF trend: Turn on for extra confluence.

Alerts:

Buy Signal and Sell Signal (separate), or one Combined Buy/Sell alert.

Set to “Once per bar close” if you want only confirmed arrows.

Repainting / limitations
Shapes can move until bar close (standard Pine behavior) when using intrabar conditions; final confirmation at close. No system guarantees profitability—forward test and adapt to your market/instrument.

Clean chart
The published chart contains only this script so outputs are easy to identify.

Versions / updates
Use Publish → Update for minor changes; do not create new publications for small tweaks. If you fork to preserve older behavior, explain why and how your fork differs.

Changelog

v1.1 – Tuning for Gold/US30, neutral-band & distance filters, optional HTF trend, combined alert.

v1.0 – Initial public release (EMA stack + POC modes + RSI + alerts).

License & credits
Open-source for learning and improvement. Please credit on forks and explain modifications in your description.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.