Changing the type of MA in the MACD - NinjaTrader | futures io social day trading
futures io futures trading


Changing the type of MA in the MACD
Updated: Views / Replies:1,003 / 8
Created: by Azrael Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Changing the type of MA in the MACD

  #1 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received

Changing the type of MA in the MACD

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?

Reply With Quote
 
  #2 (permalink)
Elite Member
Germany
 
Futures Experience: Intermediate
Platform: FlatTrader
Broker/Data: GFT and Interactive Brokers
Favorite Futures: ES, DAX
 
Posts: 531 since Aug 2010
Thanks: 2,121 given, 719 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
 
  #3 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 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)?


Last edited by Azrael; April 2nd, 2013 at 12:15 PM.
Reply With Quote
 
  #4 (permalink)
Elite Member
Germany
 
Futures Experience: Intermediate
Platform: FlatTrader
Broker/Data: GFT and Interactive Brokers
Favorite Futures: ES, DAX
 
Posts: 531 since Aug 2010
Thanks: 2,121 given, 719 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
 
  #5 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 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.

Reply With Quote
 
  #6 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary

-import this MACDplus
https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-683.html#post275164

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:
 
  #7 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received


cory View Post
-import this MACDplus
https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-683.html#post275164

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!

Reply With Quote
 
  #8 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,316 received
Forum Reputation: Legendary

@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:
 
  #9 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 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.

Reply With Quote

Reply



futures io > > > > Changing the type of MA in the MACD

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Reference MACD-1 and MACD-2 in the Same Chart a2trader EasyLanguage Programming 3 July 21st, 2013 06:11 PM
Why do YOU keep changing your system? r3algood The Elite Circle 12 September 1st, 2011 10:22 AM
Double MA and Triple MA Script Sadboybh NinjaTrader Programming 8 June 17th, 2011 09:57 AM
Looking for a simple MACD strategy. MACD Xover LONG, go LONG roshareid NinjaTrader Programming 2 April 11th, 2010 09:05 PM
Changing your avatar picture Big Mike Beginners and Introductions 0 June 15th, 2009 02:15 PM


All times are GMT -4. The time now is 03:04 PM.

Copyright © 2017 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
Page generated 2017-12-14 in 0.12 seconds with 19 queries on phoenix via your IP 54.145.16.43