-Dortch
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stochastics Using EMA Smoothing
Collapse
X
-
Stochastics Using EMA Smoothing
I am brand new to NT, and would characterize myself as a novice with scripts and indicator programming. I have used numerous charting programs in the past and simply adjusting the coefficients has sufficed. My request is for someone well versed in this arena, to explain in layman's terms how to create a new stochastics indicator using an ema for smoothing. I suspect I cannot be the first to make such a request, so a link may well suffice. Thanks!
-DortchTags: None
-
Hello,
I wont be able to code this indicator for you but I can point you in the right directions with your specific questions to allow you to make the changes.
What you will do in your case for indicator development is copy the default stocastiics by opening it up by going to Control Center->Tools->Edit NinjaScript->Indicator. Then open up the editor for Stochastics then right click on the text and select Save As.
Give it your new indicator name and then replace the following line where the D line is set to what you want. If I understand correctly you want to change this from an SMA to an EMA. To do this change:
FROM:
D.Set(SMA(K, PeriodD)[0]);
TO
D.Set(EMA(K, PeriodD)[0]);
Then make the other modifications for the K line if you need to make these modifications.
Then right click and select compile and test the indicator.
Let me know if I can be of further assistance.
BrettNinjaTrader Product Management
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
659 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
374 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment