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-20-2012, 03:00 PM   #1
StevenV
Member
 
Join Date: Oct 2011
Posts: 30
Thanks: 5
Thanked 1 time in 1 post
Default MACD based on SMA values

The MACD indicator that comes with NinjaTrader is based on EMA values. Does anyone have the same indicator but based on SMA values?

Thanks, Steven
StevenV is offline  
Reply With Quote
Old 08-20-2012, 03:04 PM   #2
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

I don't have one personally, but it would be really easy to modify your current MACD to use SMA instead of EMA...just go through and replace instances of 'EMA' with 'SMA'.
Radical is offline  
Reply With Quote
Old 08-20-2012, 03:11 PM   #3
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,770
Thanks: 158
Thanked 562 times in 553 posts
Default

Hello,

Attached is a MACD using a SMA rather than the default EMA.
Attached Files
File Type: zip MACDSMA.zip (3.9 KB, 18 views)
NinjaTrader_Matthew is offline  
Reply With Quote
Old 08-20-2012, 03:30 PM   #4
StevenV
Member
 
Join Date: Oct 2011
Posts: 30
Thanks: 5
Thanked 1 time in 1 post
Default

Thanks for the file...Works great.

Steven
StevenV 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
SMA Macd ? T2020 Indicator Development 8 03-28-2012 08:33 PM
Sma Of Macd redrum28 Indicator Development 12 08-02-2010 08:29 AM
Sma Macd Diff rnr123 Charting 1 12-02-2008 06:57 AM
MACD default EMA or SMA? dandxg Charting 2 08-31-2008 02:26 PM
SMA on MACD draime NinjaScript File Sharing Discussion 2 01-26-2008 10:02 AM


All times are GMT -6. The time now is 01:14 PM.