OPEN-SOURCE SCRIPT
מעודכן Candle Color Flip

Candle Color Flip highlights potential short-term reversals caused by back-to-back candles closing in opposite colors.
The script:
Watches for a green candle that closes after a red candle without making a lower low, and for a red candle that closes after a green candle without making a higher high.
Plots compact markers on qualifying bars (green triangles below for red→green flips, red triangles above for green→red flips).
Offers alert conditions for both directions, so you can set notifications that fire only when a confirmed bar meets the flip rules.
Can also be used to determine exit points on trades by confirming reversals.
Use it to quickly spot where buyers or sellers may be stepping in while the prior candle’s extremes still hold. You can enable “Any alert() function call” for real-time notifications, or stick with bar-close alerts for confirmation.
The script:
Watches for a green candle that closes after a red candle without making a lower low, and for a red candle that closes after a green candle without making a higher high.
Plots compact markers on qualifying bars (green triangles below for red→green flips, red triangles above for green→red flips).
Offers alert conditions for both directions, so you can set notifications that fire only when a confirmed bar meets the flip rules.
Can also be used to determine exit points on trades by confirming reversals.
Use it to quickly spot where buyers or sellers may be stepping in while the prior candle’s extremes still hold. You can enable “Any alert() function call” for real-time notifications, or stick with bar-close alerts for confirmation.
הערות שחרור
Updated logic for alert conditions.סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.