Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm having trouble trying to programmatically change a default color setting to the desired custom setting for the
ElderImpulse indicator as highlighted below. I even tried changing the color in the "Edit Properties" GUI interface
with no luck...
Any help/assistance would be greatly appreciated. Thanks in advance...
# Indicator name: ElderImpulse
input length = 13;
input paintBars = yes;
def EMA = ExpAverage(close, length);
def MACD = ExpAverage(close, 12) - ExpAverage(close, 26);
def MACDHist = MACD - ExpAverage(MACD, 9);
def GreenPrice = EMA > EMA[1] and MACDHist > MACDHist[1];
def RedPrice = EMA < EMA[1] and MACDHist < MACDHist[1];
AssignPriceColor(if !paintBars then Color.CURRENT
else
if GreenPrice then GlobalColor("Bullish")
else
if RedPrice then GlobalColor("Bearish")
else GlobalColor("Neutral"));
Can you help answer these questions from other members on NexusFi?
Thanks for your inquiry, rmejia. The reason why I wanted to change the candles from blue to (204, 204, 0) a/k/a Yellow is because the blue candles were hard to see against the TOS dark blue background...
In any event, I worked it out with a little help from a ThinkScripter. Below are the pertinent old and new code snippets for any/all interested parties to review...
Old code:
New Code:
Hope this helps someone in someway...
Wishing you and the futures.io (formerly BMT)F community a very Healthy, Happy and Prosperous New Year