OPEN-SOURCE SCRIPT
ที่อัปเดต: 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.
Release Note
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.Release Note
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.Release Note
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.Release Note
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)สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน