Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Need Help With Color Coded MACD
Collapse
X
-
Hi Max,
I 've checked the code and is ok. As I suspected you refer to the way NT connects multi-color lines. That's why I don't like multi-color lines very much. They are good for studying the market but not for trading.
Anyway, here I attach another version which is the same like the previous one with the only difference that now paints the background according to whether the Macd is going up or down (ie like the multicolored Macd line). The background color is more reliable and you can spot the differences. Hope it helps.
astra
PS. If you like to use the Rising?falling for strategies, I advice you avoid it. It is better to use the conventional way.Last edited by astra; 12-08-2009, 09:59 AM.
Comment
-
Place the second version you've send you and you will spot it!Originally posted by maxreturn View PostSure Mike. Attached is an hourly ES chart which shows two instances where the MACD ticked down but did not change color. Thanks for any help.
Perhaps Mike has another algorithm for joining multicolored lines -there was recently a discussion in a thread, but i don't know the outcome. Bye for now.
Comment
-
Thanks Astra. You've really gone beyond the call of duty. I deeply appreciate your efforts. God Bless.Originally posted by astra View PostPlace the second version you've send you and you will spot it!
Perhaps Mike has another algorithm for joining multicolored lines -there was recently a discussion in a thread, but i don't know the outcome. Bye for now.
Max
Comment
-
My pleasure Max. I am now struggling with three interelated indicators of my own and it is a mind boggling business. I tend to find good excuses to distract myself from the task! God help that we'll be both around for a while in this business and I might make use of your kind offer one day. You are already in my buddy list. Best wishes,Originally posted by maxreturn View PostThanks Astra. You've really gone beyond the call of duty. I deeply appreciate your efforts. God Bless.
Max
astra
Comment
-
You can get around the Ninja limitation by directly drawing the line. This is way above my head, but all the code is in the DoubleMA indicator. I've never noticed any issues with it like the "normal" Ninja method (replacing plot values).
It might be simpler to pass the values to DoubleMA and let it handle the painting, but this would take some doing as well for MACD although I believe it is certainly possible.
Mike
Comment
-
This is my first attempt at NinjaScript. Thanks in advance for any help with this.
Okay, this is what I was able to put together tonight. I know I will have to redo the inputs (forgot to account for the DStochMod inputs(EMAPeriod, Period)).
But, now my question is...how do I get the script to give a SMA of the DSM (DStochMod)?
Any suggestions appreciated.
Regards,
phoenix
Comment
-
the changing background color with rising/falling macd
Hello, this is what i was looking for which is discussed in this post. However, I dont see the indicator so I can download it. Can anyone help? The idea of the background changing on the macd showing rising and falling is great.
Comment
-
Hello winJR. A generous individual with the screen name "astra" coded a MACD for me whose background color changes to green when it ticks up and red when it ticks down. The color of the histogram also changes color BUT it doesn't have the capability of background color changes. If you want this indicator PM me with your email address and I would be happy to send it to you.Originally posted by winJR View PostI would like to plot the macd diff as a line that changes color if its rising and another color if falling. As well as the background changing color. Does someone have the indicator? thanks a million.
Regards
Max
Comment
-
-
Hello. I already uploaded the indicator to the indicator section of the ninja script file sharing forum. The indicator is called MACDcolorbackground which can be found on page 9. Enjoy.Originally posted by svenskcia View PostHi Astra,
I'm trying to do exactly the same thing as maxreturn. From the thread it sounds as if you've posted the solution. Is there anyway I can get it too?
Thanks
Regards
Max
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment