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)
Does anyone know how customize the color of a price bar based on lower indicators (e.g. If the MACD is above the zero line and the signal then paint the price bar green).
Can you help answer these questions from other members on NexusFi?
It is done using "AssignPriceColor". Here is an example:
I turn it on or off using this input: input PaintBars = No;
Then for the MACD this example changes color based on the histogram: assignPriceColor (if !PaintBars then Color.CURRENT else if Diff >= 0 then if Diff > Diff[1] then Diff.color("Positive and Up") else Diff.color("Positive and Down") else if Diff < Diff[1] then Diff.color("Negative and Down") else Diff.color("Negative and Up"));
I must confess that I am astounded by the technical aspect of questions such as these.
<< If the MACD is above the zero line and the signal then paint the price bar green >>
The question - which I freely admit that I do not understand in the least - delves into
a degree of intricacy which I have to question. Does knowing all this minutiae really
give you any edge at all over establishing your position based on a perceived trend,
placing a protective stop and then hoping things go as you though they would? I am
new to the T or S platform and so far I love it just for the robust order set they give
you. It's hard to find any online broker that gives you the same order set. But I have
to look at the technical analyses with a jaundiced eye and I have to wonder whether
all these studies and indicators are worth the time.
It's just an easier way to visualize when the MACD is above the zero line and the signal line on the upper chart. That's it. It's not used solely for an entry or exit strategy. For me this minutiae is very important because it allows me to make decisions faster which is critical for my trading style. I hope this helps you to understand the technical aspect of questions such as these.
It's subtle jabs like this that discourage newer people from posting to forums like this. Thanks a lot for the warm welcome guys! I'm sure Big Mike would be proud!
This is what I am really looking for, but for ThinkOrSwim instead of Ninja Trader. If i phrased something wrong when I started the thread this should hopefully clear it up.
Thanks for clarifying that but I have to tell you that I am dubious as to the value of all this stuff. It would seem to me that you need a Ph.D. in math to utilize it successfully and even then I'm not sure that it makes a significant difference.
If I understood right the first part of the quote :
This is the addition to the end of the stock MACD study:
input PaintBars = Yes;
assignPriceColor (if !PaintBars then Color.CURRENT else if Value >= 0 and Value > Avg[1] then color.Green else if Value <=0 and Value < Avg[1] then color.Red else color.White);
Value is the MACD line, so if the value is above zero, and the value is above the avg then green; and the inverse for red, else white.