Candlestick Color Indicator Based on Trend Direction (Titan_MA_ColorCandle)

Indicator That Changes Candlestick Colors Based on Trend Conditions
This indicator changes the color of candlesticks according to the market trend conditions, making it easier to visually grasp the strength of the trend.
Just by looking at the color of the candlesticks on the chart, you can intuitively judge whether the current market is in a "strong trend", "slightly weakening", or in a "neutral state". It is a powerful support tool that helps you make smoother trading decisions.
Trend judgment is based on the positional relationship between the closing price and two moving averages (short-term and long-term), and is classified into the following five levels:
| Judgment | Condition | Details |
|---|---|---|
| Strong | Closing price is above both moving averages | Indicates a strong uptrend |
| Slightly Strong | Closing price is above the long-term MA and below the short-term MA | Shows an uptrend, but with slightly weaker momentum |
| Slightly Weak | Closing price is below the long-term MA and above the short-term MA | Possible temporary rebound within a downtrend |
| Weak | Closing price is below both moving averages | Clear downtrend |
| Neutral | Does not meet any of the above conditions | Trend is unclear or at a turning point |
【Example display in case of uptrend】

This indicator works only on the Windows versions of MT5 and MT4 provided by TitanFX.
Indicator Terms of Use
Only those who agree to all the following items may use the indicators distributed on this website (https://research.titanfx.com):
1.The indicators and related descriptions are based on various data believed to be reliable, but their accuracy and completeness are not guaranteed.
2.The data displayed by the indicators do not guarantee your investment results. Also, the displayed content may vary due to market conditions and communication environments.
3.Please make investment decisions using indicators at your own risk. We are not responsible for any disadvantages or damages arising from the use of indicators.
4.Specifications of the indicators are subject to change without notice. Changes will be announced on the indicator description pages, etc.
5.Indicators should only be used by customers who have downloaded them. Transferring or selling the indicators to third parties is prohibited.
Indicator Settings
Items in the "Inputs" tab (for MT5) or the "Parameters" tab (for MT4)
| Variable Name | Description | Default |
|---|---|---|
| Display (Short/Long) | Specifies whether to display the moving averages. | true |
| Period (Short/Long) | Specifies the periods of the two moving averages. | 14, 60 |
| Type (Short/Long) | Specifies the types of the two moving averages. | Exponential |
| Applied Price (Short/Long) | Specifies the price type used for calculating the moving averages. | Close price |
| Line Color (Short/Long) | Specifies the line colors of the two moving averages. | Lawn Green, DarkViolet |
| Bar Color - Strong | Color of the candlestick when the closing price is above both MAs. | Blue |
| Bar Color - Bullish | Color when the closing price is above the long-term MA and below the short-term MA. | Aqua |
| Bar Color - Neutral | Color when the condition is none of Strong, Slightly Strong, Slightly Weak, or Weak. | Yellow |
| Bar Color - Bearish | Color when the closing price is below the long-term MA and above the short-term MA. | Pink |
| Bar Color - Weak | Color when the closing price is below both MAs. | Red |
Items in the "Colors" tab (for MT5) or the "Color Settings" tab (for MT4)
Not used in this indicator.