anodrr2

Fresh Zones

The indicator is named "Fresh Zones"

Bullish Fresh Zone:
- This part looks for a specific pattern in the price movement that indicates a potential bullish (upward) trend.
- It checks if the current bar's low price is higher than the previous bar's opening price.
- It also checks if the previous bar's closing price was higher than its opening price.
- Additionally, it checks if the bar before the previous one had a closing price lower than its opening price.
- If all these conditions are met, it identifies a bullish fresh zone.

Bearish Fresh Zone:
- This part looks for a specific pattern in the price movement that indicates a potential bearish (downward) trend.
- It checks if the current bar's high price is lower than the previous bar's opening price.
- It also checks if the previous bar's closing price was lower than its opening price.
- Additionally, it checks if the bar before the previous one had a closing price higher than its opening price.
- If all these conditions are met, it identifies a bearish fresh zone.

Color Coding:
- When a bullish fresh zone is identified, it colors the candlestick from two bars ago with a specific yellowish color (`color.rgb(240, 243, 33)`).
- When a bearish fresh zone is identified, it colors the candlestick from two bars ago with a specific pink color (`color.rgb(255, 0, 191)`).

Alert:
- The script creates an alert condition.
- If either a bullish or bearish fresh zone pattern appears, it triggers an alert with the message "A Fresh zone has appeared!".
สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?