OPEN-SOURCE SCRIPT
Actualizado Jasper Working OB Strategy

Price-action based Order Block strategy that identifies institutional-style supply and demand zones formed after displacement moves and uses them as potential reversal areas. It generates entries when price revisits these zones, confirms interaction, and then shows momentum-based continuation or reversal through simple breakout behavior.
Notas de prensa
This strategy identifies bullish and bearish order blocks using displacement, confirmation candles, and FVG-based filtering, then waits for price to leave the zone before allowing a valid return into it. A trade is only triggered when price re-enters the validated zone and breaks the previous candle’s high (buy) or low (sell), with entries using a structure-based 1:1 risk-to-reward target.Notas de prensa
We added a “double wick” detection system that flags when price wicks both above and below the previous candle, then temporarily blocks entries using invalidWick and skipNextBar so no trade is taken during that indecision. We also fixed the logic timing so the block lasts for the next full candle before resetting, and we applied it directly into your entry conditions so signals are only allowed after clean price behavior returns.Notas de prensa
The strategy includes a built-in New York pre-session filter that restricts order block creation and trade signals to the 7:30 AM–9:30 AM New York window, since that is where the system performs best due to stronger liquidity movement and cleaner displacement. If you want to remove the filter, you can delete the tradeWindow condition from both the validBullOB / validBearOB logic and the bullEntry / bearEntry conditions, though it is not recommended because allowing trades outside the pre-session window can significantly increase low-quality setups and market noise.Notas de prensa
New update: the script builds bullish and bearish order blocks during the pre–New York session, and it only takes a single confirmed entry when price returns to and reacts off those pre-built zones, and after a TP is hit it locks the system and stops all further signals for the rest of the session. (7:00 AM - 9:30 AM UTC-4)Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.