PROTECTED SOURCE SCRIPT
2-Rule Buy/Sell -Jesse

How it works
Runs (sets) of candles: The script groups contiguous bullish and bearish “sets.” Doji handling is configurable (exclude, join bears, or join bulls).
Rule 1 (swing qualification):
BUY: The last bearish candle before the first bullish must be the lowest of its run and lower than both the previous bullish set’s lows and the previous bearish set’s lows.
SELL (mirror): The last bullish candle before the first bearish must be the highest of its run and higher than both the previous bearish set’s highs and the previous bullish set’s highs.
Rule 2 (BOS confirmation):
BUY: The first bullish candle must not trade below that last bear’s low and must close above a BOS level.
BOS level = previous bullish set’s highest high; override to the last bear’s high if that high is higher than the previous bull highs.
SELL (mirror): The first bearish candle must not trade above that last bull’s high and must close below a BOS level.
BOS level = previous bearish set’s lowest low; override to the last bull’s low if that low is lower than the previous bear lows.
Runs (sets) of candles: The script groups contiguous bullish and bearish “sets.” Doji handling is configurable (exclude, join bears, or join bulls).
Rule 1 (swing qualification):
BUY: The last bearish candle before the first bullish must be the lowest of its run and lower than both the previous bullish set’s lows and the previous bearish set’s lows.
SELL (mirror): The last bullish candle before the first bearish must be the highest of its run and higher than both the previous bearish set’s highs and the previous bullish set’s highs.
Rule 2 (BOS confirmation):
BUY: The first bullish candle must not trade below that last bear’s low and must close above a BOS level.
BOS level = previous bullish set’s highest high; override to the last bear’s high if that high is higher than the previous bull highs.
SELL (mirror): The first bearish candle must not trade above that last bull’s high and must close below a BOS level.
BOS level = previous bearish set’s lowest low; override to the last bull’s low if that low is lower than the previous bear lows.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน