NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 03-10-2008, 05:19 PM   #1
Wessel
Member
 
Join Date: Jul 2007
Location: Maarn, Netherlands
Posts: 94
Thanks: 0
Thanked 3 times in 2 posts
Send a message via MSN to Wessel
Talking MACDUpDown Colored MACD up/Down Ticks

Hi,

I've changed the MACD histogram. I've seen this in the book entries and exits from A. Elder in the chapter of Kerry L. I found i very usefull so I implemented it for NT. The histogram turns red when the histogram ticks down and it turns green when the histogram ticks up. Ideal for timing the markets. and see in a glimpse a down or uptick of the histogram.

An example:
MACDUpDown.jpg


Enjoy!

Wessel de Roode
Attached Files
File Type: zip MACDUpDown.zip (2.3 KB, 177 views)
File Type: zip MACDUpDown_v1.1.zip (2.2 KB, 270 views)
Last edited by Wessel; 03-11-2008 at 02:49 PM. Reason: Updated indicator with more clear colors and thicker bars
Wessel is offline  
Reply With Quote
Old 03-10-2008, 07:16 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Thanks for sharing!
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-11-2008, 06:14 PM   #3
pttsusa
Junior Member
 
Join Date: Oct 2007
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default what is the difference

Hello Wessel what is the difference between v1.1 and V 1.0, looks none?

Thanks

pttsus
pttsusa is offline  
Reply With Quote
Old 03-12-2008, 10:57 AM   #4
Wessel
Member
 
Join Date: Jul 2007
Location: Maarn, Netherlands
Posts: 94
Thanks: 0
Thanked 3 times in 2 posts
Send a message via MSN to Wessel
Default

pttsus,

The difference is minor. I cleaned up the source and changed the color of the green historgram from lime into green color which is more visible on a white background and on also still visible on a black background

Wessel
Wessel is offline  
Reply With Quote
Old 04-02-2008, 11:54 AM   #5
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

I really love this indicator, and use it instead of the standard one. Many thanks to the creators

I was thinking it would be really cool to also have the MACD line change colors as well, i.e. when the MACD is above the avg line its blue, and if it is below the line its red...

To take this a step further, if the MACD is above its avg AND above the zero line, the color could change to a stronger blue indicating a strong up trend/buy signal and vice-versa for the sell signals...

Does this sound useful to anybody else?
Last edited by Elliott Wave; 04-02-2008 at 11:58 AM.
Elliott Wave is offline  
Reply With Quote
Old 04-02-2008, 02:14 PM   #6
Wessel
Member
 
Join Date: Jul 2007
Location: Maarn, Netherlands
Posts: 94
Thanks: 0
Thanked 3 times in 2 posts
Send a message via MSN to Wessel
Default

Hi Elliott Wave,

Thanks for your comments :-) good to hear you appreaciate it drop me some Kudo's . I've saw this indicator in entries&exits of Elder and I decided to build it as I'm a very visual oriented I like to see the details in this way.
When a bullish deversion appears I sell or buy on the first color change of the bar. That is quite early but works nice.

About your request, I am nog quite clear what you exactly mean. Let me summarize if I understand it correctly:
example.png
I've done a manual job on this one.
I cound't find a line above the avg line and a macd histogram below zero. But that would mean thin line and for the downswing ditto.

Is this what you mean?

I might give that a try one of these day's I think it's a nice addition, however on first sight it loks like that it hardly ever happens the thin line.

Wessel


Quote:
Originally Posted by Elliott Wave View Post
I really love this indicator, and use it instead of the standard one. Many thanks to the creators

I was thinking it would be really cool to also have the MACD line change colors as well, i.e. when the MACD is above the avg line its blue, and if it is below the line its red...

To take this a step further, if the MACD is above its avg AND above the zero line, the color could change to a stronger blue indicating a strong up trend/buy signal and vice-versa for the sell signals...

Does this sound useful to anybody else?
Last edited by Wessel; 04-02-2008 at 02:17 PM.
Wessel is offline  
Reply With Quote
Old 04-02-2008, 04:50 PM   #7
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by Wessel View Post
About your request, I am nog quite clear what you exactly mean. Let me summarize if I understand it correctly:
Attachment 2114
I've done a manual job on this one.
I cound't find a line above the avg line and a macd histogram below zero. But that would mean thin line and for the downswing ditto.

Is this what you mean?

Wessel
You've got it!

The second part was just an additional idea to have the shade of the red or blue change depending on whether the signal is above or below the center line. This could indicate different things depending on the settings of the MACD.

Here is a crude picture to help illustrate the point:
http://shup.com/Shup/33800/macd3.jpg
Elliott Wave is offline  
Reply With Quote
Old 04-03-2008, 01:51 AM   #8
Wessel
Member
 
Join Date: Jul 2007
Location: Maarn, Netherlands
Posts: 94
Thanks: 0
Thanked 3 times in 2 posts
Send a message via MSN to Wessel
Default

Ah I get your point. Sounds like an interesting Idea. I'll have a look at it.

Wessel

Quote:
Originally Posted by Elliott Wave View Post
You've got it!

The second part was just an additional idea to have the shade of the red or blue change depending on whether the signal is above or below the center line. This could indicate different things depending on the settings of the MACD.

Here is a crude picture to help illustrate the point:
http://shup.com/Shup/33800/macd3.jpg
Wessel is offline  
Reply With Quote
Old 04-28-2008, 07:01 AM   #9
steveg
Member
 
Join Date: Aug 2007
Posts: 31
Thanks: 0
Thanked 0 times in 0 posts
Default MACD lines

Is there an indicator available that would color the MACD lines red when sloping downward, blue when sloping upward and yellow when flat? I use the DoubleMA indicator to color EMA lines this way, but it doesn't seem to work on the MACD lines. The modified MACD histogram is also useful, thank you.
steveg is offline  
Reply With Quote
Old 04-29-2008, 01:58 AM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

It is possible to code such an indicator with NinjaScript, but I am unsure if one is already released.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-18-2008, 05:51 PM   #11
dwalls
Senior Member
 
Join Date: Jul 2007
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi there,
Good work on this indicator.
I was wondering if it would be possible to also plot a black line to follow along with the histogram bars too, kinda like the CCI line and bars?
If so, How?
Maybe you could make a change to this one or someone could post some code for how to do it...Thanks.
Also, along the lines of Elliot Wave's idea...maybe you could plot the color changes right to the zeroline. Just a thought.

Thanks
dwalls is offline  
Reply With Quote
Old 10-19-2008, 02:10 AM   #12
Elmi
Member
 
Join Date: Nov 2006
Location: , ,
Posts: 51
Thanks: 0
Thanked 1 time in 1 post
Default Go even further...

Ok .. What if someone can make this MACD a next bar (range bars) projector as it is on Woodies CCI.
Elmi is offline  
Reply With Quote
Old 10-19-2008, 11:30 PM   #13
max-td
Senior Member
 
Join Date: Feb 2008
Posts: 177
Thanks: 0
Thanked 0 times in 0 posts
Default

hi dwalls,
a really easy way i do this (ploting a line on a bar-/histogramm-style-plot) is to insert a second time the same indicator in the same panel in "line-style" - well - not the smartest way but this does the thing - fast and without having to change every needed indicator-code.

max-td
Last edited by max-td; 10-19-2008 at 11:34 PM.
max-td is offline  
Reply With Quote
Old 12-06-2008, 07:50 AM   #14
sandygray66
Junior Member
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by steveg View Post
Is there an indicator available that would color the MACD lines red when sloping downward, blue when sloping upward and yellow when flat? I use the DoubleMA indicator to color EMA lines this way, but it doesn't seem to work on the MACD lines. The modified MACD histogram is also useful, thank you.
Did anyone figure out how to do this? I programmed this in Tradestation EasyLanguage, and I'm converting over to NT, but I am unfamiliar with programming indicators in NT.
sandygray66 is offline  
Reply With Quote
Old 12-17-2008, 05:25 PM   #15
price777999
Senior Member
 
Join Date: Nov 2008
Posts: 194
Thanks: 4
Thanked 2 times in 2 posts
Default

hi this is great but what do i do with the zip file ,how do i get it into ninja iv never done this before.

thanks
price777999 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Colored Support and Resistance Zones CarlosAlberto Indicator Development 20 01-28-2009 07:33 AM
Double EMA Multi Colored Rollins NinjaScript File Sharing Discussion 14 01-13-2009 07:18 AM
Indicator: Multi-Colored Plots NinjaTrader_Josh Reference Samples 0 09-06-2007 01:28 PM
Multi Colored plots. higler General Programming 6 05-10-2007 12:05 PM
Bad Ticks nicko9 Miscellaneous Support 1 01-24-2007 12:29 AM


All times are GMT -6. The time now is 02:53 AM.