Changing the type of MA in the MACD - futures io
futures io futures trading



Changing the type of MA in the MACD


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Azrael with 5 posts (0 thanks)
    2. looks_two Abde with 2 posts (0 thanks)
    3. looks_3 cory with 2 posts (3 thanks)
    4. looks_4 artemiso with 1 posts (0 thanks)
    1. trending_up 1,446 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Changing the type of MA in the MACD

(login for full post details)
  #1 (permalink)
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 8 received

Hi guys,

I was wondering the MACD uses EMAs. I was wondering if is there a way to change the MA used, referencing it to maybe another MA I have, maybe say Simple Moving Average instead?

Any ideas how to script it or something to be imported into NT?

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Reading A set of Trading Signals
EasyLanguage Programming
SimplerOptions
Trading Reviews and Vendors
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
111 thanks
Selling Options on Futures?
109 thanks
Rank your Futures vs Stocks trading priority
37 thanks
Want your NinjaTrader indicator created, free?
26 thanks
Bitcoin storage wallet recommendations
18 thanks
 
(login for full post details)
  #2 (permalink)
Germany
 
Experience: Intermediate
Platform: FlatTrader
Broker: GFT and Interactive Brokers
Trading: ES, DAX
 
Posts: 532 since Aug 2010
Thanks: 2,141 given, 726 received


Azrael View Post
Hi guys,

I was wondering the MACD uses EMAs. I was wondering if is there a way to change the MA used, referencing it to maybe another MA I have, maybe say Simple Moving Average instead?

Any ideas how to script it or something to be imported into NT?

Hi @Azrael,

You can use the MacdMultiMa where you have the choice of 4 MAīs (SMA, EMA, HMA, WMA). Itīs an NT 6.5 indicator but works also in NT 7. Download is here: View Download Details - Big Mike's Trading Forum

Have fun!

Reply With Quote
 
(login for full post details)
  #3 (permalink)
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 8 received



Abde View Post
Hi @Azrael,

You can use the MacdMultiMa where you have the choice of 4 MAīs (SMA, EMA, HMA, WMA). Itīs an NT 6.5 indicator but works also in NT 7. Download is here: View Download Details - Big Mike's Trading Forum

Have fun!

Hi Abde,

Thanks for the link. However, I am actually using a propriety MA, and wanting to integrate into the MACD instead.

From what I know:
MACD line: difference between the 12 and 26 days EMAs
signal: 9 day EMA of the MACD line

So I wanna replace EMA with the propriety MA I subscribed to sort of test an idea =)

Could I edit the NT7 default indicator script with a text editor or something (I think I found a file called @MacD.cs)?

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
Germany
 
Experience: Intermediate
Platform: FlatTrader
Broker: GFT and Interactive Brokers
Trading: ES, DAX
 
Posts: 532 since Aug 2010
Thanks: 2,141 given, 726 received


Azrael View Post
Hi Abde,

Thanks for the link. However, I am actually using a propriety MA, and wanting to integrate into the MACD instead.

From what I know:
MACD line: difference between the 12 and 26 days EMAs
signal: 9 day EMA of the MACD line

So I wanna replace EMA with the propriety MA I subscribed to sort of test an idea =)

Could I edit the NT7 default indicator script with a text editor or something (I think I found a file called @MacD.cs)?

@Azrael,

If the propriety MA already exists in your NT, than I think itīs better to modify and rename an existing MACD. Just replace the EMAīs with your own MA. Good luck!

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 8 received


Abde View Post
@Azrael,

If the propriety MA already exists in your NT, than I think itīs better to modify and rename an existing MACD. Just replace the EMAīs with your own MA. Good luck!

Thanks!

Do I just use notepad or something to edit it?

And could you be so kind to give me an example? I'm not too familiar with the script.

Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received

-import this MACDplus


1) Open NinjaTrader
2) From the Control Center -> Tools -> Edit NinjaScript -> Indicator
3) Select ninja MACDplus indicator and double click on it.
4) A new window will appear and you will need to right click, select save as and give it a name say mynewMACD
5) go to

protected override void OnStartUp()
{
SlowEMA=EMA(Input,Slow);
FastEMA=EMA(Input,Fast);
...........

6) change EMA to the exact name of MA you want to try. Note: the regular EMA takes 1 input value, if you have more than 1 input values this won't work.

7) hit F5 to compile your 'mynewMACD', if it doesn't come back with any error message you get yourself a new MACD.

Reply With Quote
The following 2 users say Thank You to cory for this post:
 
(login for full post details)
  #7 (permalink)
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 8 received


cory View Post
-import this MACDplus


1) Open NinjaTrader
2) From the Control Center -> Tools -> Edit NinjaScript -> Indicator
3) Select ninja MACDplus indicator and double click on it.
4) A new window will appear and you will need to right click, select save as and give it a name say mynewMACD
5) go to

protected override void OnStartUp()
{
SlowEMA=EMA(Input,Slow);
FastEMA=EMA(Input,Fast);
...........

6) change EMA to the exact name of MA you want to try. Note: the regular EMA takes 1 input value, if you have more than 1 input values this won't work.

7) hit F5 to compile your 'mynewMACD', if it doesn't come back with any error message you get yourself a new MACD.

Noted!

Thank you very much!

Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received

@Azrael

for DMI and CCI just open ninja @DMI or @CCI, make a copy and replace their SMA with yours per instruction above.

Reply With Quote
The following user says Thank You to cory for this post:
 
(login for full post details)
  #9 (permalink)
Jurong Singapore
 
Experience: Beginner
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 8 received


cory View Post
@Azrael

for DMI and CCI just open ninja @DMI or @CCI, make a copy and replace their SMA with yours per instruction above.

I just realised Ninjatrader DMI and DM are two different things. What I wanted was the DM, DMI isn't the Directional Index (DMI/ADX).

For the DM, I looked at the script and saw no MA used. However, I remembered +DI and -DI used EMA in their calculations. Where do I find the EMA in them?

Sorry for the ton of questions.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Changing the type of MA in the MACD


Last Updated on April 5, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts