KryptoNight

How to consolidate multiple alerts into one

How to consolidate multiple alerts into a single alertcondition().

The solution consists of two parts:
1 - consolidate the alert conditions
2 - consolidate the alert types used in the alert message

Part two is harder to accomplish because the message to display when the alert fires must be const string.
However, we can use numbers.

The structure:
▪ 1 and 0 are used in formatting the message
▪ 111 - Enter Long
▪ 222 - Exit Long
▪ 333 - Enter Short
▪ 444 - Exit Short
Alert Message Example:
- method 2 (1 0111 0222 0333 0444) is equivalent to (enterLong exitLong enterShort exitShort)
- method 3 (1111) (2222) (3333) (4444) is equivalent to (enterLong exitLong enterShort exitShort)

It can help save time managing alerts, and it can also save precious real estate on your UI.

Join the Discord Server for more info about the published tools.
discord.io/CryptoWorld
a Discord bot for Charting (TradingView and Heatmaps) is available

🟣 If you like any of my Invite-Only Tools, let me know

(DM or Discord for inquiries)
สคริปต์โอเพนซอร์ซ

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

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

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

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