Thanks, Steven
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
MACD based on SMA values
Collapse
X
-
Matthew,
I am after a MACD with TEMA. I tried to change your SMA version without any luck. With you being kind enough to change the EMA to SMA for everyone, I was hoping you would do the same for the TEMA version. I know this is above and beyond your normal scope but it would be greatly appreciate. Thank you.
Bob
Comment
-
Hello Ram011558,
Thanks for your post and welcome to the forums.
To change the version created for SMA in post 3, once you have downloaded and installed the MACDSMA, you would need to follow these short steps to make the changes you want:
1) Tools>Edit Ninjascript> Indicators
2) Select MACDSMA
3) In the code of MACSMA, right mouse click, select "save as" and provide a new name, like MACDTEMA
4) In the new file of MACDTEMA, go to like 64 and replace SMA with TEMA. Go to line 65 and replace SMA with TEMA. Your lines 64 and 65 should now look like:
fastSma.Set(TEMA(Input, Fast)[0]);
slowSma.Set(TEMA(Input, Slow)[0]);
5) Right mouse click on the chart and select compile.
6) Once complied, close the file and apply the new indicator to your chart(s)
Comment
-
This indicator does not work in NinjaTrader 8.Originally posted by NinjaTrader_Matthew View PostHello,
Attached is a MACD using a SMA rather than the default EMA.
It says: ''This NinjaScript archive was made from an older, imcompatible version of NinjaTrader.''.
Could you look into this matter, please?
Comment
-
Hello California,
Thanks for your post and welcome to the NinjaTrader forums!
You are correct, this is a NinjaTrader7 indicator posted in the NinjaTrader7 indicator development forum. NinjaTrader7 scripts are not compatible with NinjaTrader8. Please do not try to import NinjaTrader7 (or earlier) scripts into NinjaTrader8.
For your convenience and as this was quick, I have converted this to NT8, please note that we do not routinely provide this service.Attached Files
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
563 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
329 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment