This is a modified version of the exponential moving average indicator to change color based on trend (red/bearish if price has closed below EMA , green/bullish if price has closed above EMA ).
Jun 14
Release Notes: Made color change only after previous candle closed above/below EMA instead of current candle (looks better).
Jun 14
Release Notes: Minor improvements :)
Feb 16
Release Notes: Minor improvements
Remove from Favorite Scripts Add to Favorite Scripts
Follow @TradeWisdom on Twitter for Daily inspiration from the best trading wizards, psychologists and philosophers.

Go to http://www.zenandtheartoftrading.com for articles on forex trading, trading psychology, trading resources, Pine Script lessons and more!
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out