Example Of How To Code Triple EMA’s - Colors Based On Trend!!!

FX:AUDUSD   Australian Dollar / U.S. Dollar
3882 30 48
Example of Triple EMA Changing Color To Show Trend.Currently You Can Only Have 2 Plots That Change Colors and have Fills Between The Plots.So I Created 2 Separate Indicators with Same RulesRules:If Slow EMA is Less Than Medium EMA , AND Medium EMA is Less Than Fast EMAColor = Red Showing Down TrendIf Slow EMA is Greater Than Medium EMA , AND Medium EMA is Greater Than Fast EMAColor = Green Showing Up TrendIf Both of the Above Rules are False then:Color = Yellow Showing No Trend. Consolidation Area.Lower StudyUses the Same Rules as the Upper Studies With the 3 EMA’sPlots Red in Down Trend, Green in Up Trend, Yellow = No TrendHistogram Shows The Difference Between the Short and Long EMA's*****Code is pasted below...Sometimes When I Copy and Paste the Code For Some Reason It Doesn't Come Through Correctly. *****You Can Click On The White Arrow At The Top Right Of The Chart And Then You Have Access To The Chart. On The Indicators Click On The Brackets To The Left Of the X And You Will See The Source Code. Just Re Name It If you Want and Click Save And The Indicator Will Be In Your Indicators List Under "Custom Scripts"Let Me Know If You Have Any Requests For Any Indicators.....I Enjoy Coding...
Any idea why all of a sudden the "Fill" argument in the script is not displaying anymore?
+2 Reply
ChrisMoody onemanatatime
Genius might be a overstatement but I do appreciate it. Just make sure you saw the post right above yours from me with updated code...Instead of getting the code from the chart...
Awesome indicator, TY
Version 2 of Code Released:

With update to Pine Script now the Upper Indicator just needs to be 1 Indicator instead of two.

Here is a Link to the New Code:

New Video Showing How To Install Code From Link Above:
Video Titled: Importing Custom Indicators In TradingView Charts

Link To New Video:
Chris, This is awesome. Thanks for sharing your code.
Thanks...Have a lot more coming...if you haven't seen them I've posted several other codes...
Kautilya ChrisMoody
Thanks Chris.. I got greedy :-) went through all your code and have saved charts as ChrisMoody - CCI, ChrisMoody-moon phases, etc.
Chris, I could not reach Ross, what is wrong with the number, I try to call many times.

Fcha...I'm not sure what number you called b/c he only has email on his Web site. We need to talk...I have a feeling TV will be releasing the Private Chat feature Soon...We will talk then
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out