NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-21-2008, 06:51 AM   #1
monti1a
Member
 
Join Date: Apr 2008
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Default EMA and MA Crossover Histogram

Hi-

Would anyone have an indicator that plots a Histogram of an Exponential Moving Average minus a Simple Moving Average in which the lengths of the moving averages are based on user defined lengths. Ideally, the Histogram would be a different color when it is positive than when it is negative. Any help would be greatly appreciated.
Last edited by monti1a; 06-21-2008 at 09:47 AM.
monti1a is offline  
Reply With Quote
Old 06-21-2008, 11:24 AM   #2
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

I don't think this was made before, but you can definitely custom code it. For different color plots please take a look at this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=3227

In your case instead of making the plots lines you want to use PlotStyle.Bar.
NinjaTrader_Josh 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
MACD Crossover nybangali General Programming 25 10-29-2010 02:11 PM
EMA Crossover Rollins NinjaScript File Sharing Discussion 24 07-15-2009 10:58 AM
M A crossover alerts lehidave@yahoo.com Suggestions And Feedback 1 06-06-2008 12:16 PM
MA Crossover joecgoodman Indicator Development 3 06-03-2008 02:08 PM
Multi TF MACD crossover jhooper Strategy Analyzer 4 04-26-2008 01:17 AM


All times are GMT -6. The time now is 01:16 AM.