Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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?
Can you help answer these questions from other members on NexusFi?
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!
maybe this one will work. it has options for coloring the bars, drawing arrows and sound alerts. the signals are all generated when the histogram crosses the zero line.
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
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.
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?