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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 01-22-2008, 06:10 AM   #1
zq655
Member
 
Join Date: Dec 2007
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default macd based on (H+L+O+C)/4

Can I base my macd on macd based on (H+L+O+C)/4 rather than just C
many thanks
zq655 is offline  
Reply With Quote
Old 01-22-2008, 06:44 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

You could by custom coding a variation of the standard MACD in NinjaScript.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-26-2008, 08:43 AM   #3
thrunner
Member
 
Join Date: May 2007
Posts: 71
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by zq655 View Post
Can I base my macd on macd based on (H+L+O+C)/4 rather than just C many thanks
Newbie NT coder here. But it looks like you can just replace Input[0] with
Quote:
Input[0] .... with
(Open[0] + High[0] + Low[0] + Close[0]) / 4)
Attached Images
File Type: png NT Macd 2008-01-26_102804.png (37.3 KB, 50 views)
Attached Files
File Type: ntns MACDohlc.ntns (2.1 KB, 17 views)
thrunner is offline  
Reply With Quote
Old 02-03-2008, 10:35 PM   #4
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Wink

THRUNNER


Nice. Less noise.
ct 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 Of Macd redrum28 Indicator Development 12 08-02-2010 08:29 AM
G#macd cattus NinjaScript File Sharing Discussion 9 01-26-2008 10:00 AM
Macd ale la juve ale Indicator Development 5 12-13-2007 12:13 AM
MACD Histogram Rollins Indicator Development 3 10-08-2007 02:32 PM
Using MACD.avg vs. MACD Jim-Boulder Strategy Development 1 05-23-2007 07:41 AM


All times are GMT -6. The time now is 03:36 AM.