NinjaTrader Support Forum  

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 08-29-2007, 08:43 PM   #1
prostyle
Junior Member
 
Join Date: Aug 2007
Posts: 29
Thanks: 0
Thanked 0 times in 0 posts
Default Hull Moving Average

Hi,

Is it possible to make the hull moving average color coded for up/ down
ie: blue for up and red for down

Also offset it.

If this is possible let me know - thanks

~Colin
prostyle is offline  
Reply With Quote
Old 08-30-2007, 01:34 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

Hi prostyle,

It is possible to get two colors and it is also possible to do the offset.

To achieve the two colors please check out the concepts presented in this tutorial (http://www.ninjatrader-support.com/H...ml?Overview25). Basically what it does is create two plots instead of one. When the HMA is up, add the value to your blue plot. When the HMA is down, add the value to your red plot.

To offset the indicator there is an option in the Indicator dialog that is called "Displacement". You can set this parameter when you are adding the HMA and you will also be able to modify its value at a later date.

Hope that helps.
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
Double Exponential Moving Average Kevin21 Charting 22 08-05-2010 01:16 AM
Moving average of Pivot points nightowl Charting 3 07-01-2008 02:19 PM
Price parameter in Moving Average bmaltz Indicator Development 10 06-09-2007 12:16 PM
Double moving average ,double time frame Mauro60 Indicator Development 3 01-23-2007 02:11 AM
Triangular Moving Average Indicator (Download) Version 5 Only NinjaTrader_Ray Indicator Development 1 04-07-2006 01:29 AM


All times are GMT -6. The time now is 04:41 AM.