Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Standard deviation
Collapse
X
-
Hello U0000999,
The standard deviation indicator takes other indicators as input, for example:
Code:double value = StdDev(EMA(12), 20)[0];
https://ninjatrader.com/support/help...ighlightsub=st d
-
Hello U0000999,
Below is a link to a forum post with helpful resources on getting started with C# and NinjaScript and includes links to training videos.
Where are you trying to use this value?
Have you created a custom indicator and are setting this as the plot value?
I'm trying to expose my variables to the strategy builder so everyone can have better use of the WaveTrend indicator (it has a lot of code). Explain this to me like I am 5 because this isnt the first time I've tried to figure it out and hit a wall. What is Series? I know its like an array that stores bars. Why not just call it
If so, the code would be placed in OnBarUpdate().
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello U0000999,
While the chatgpt tool can general valid C# code in some cases it is not currently able to generate 100% accurate code, learning C# is the correct approach here because we cannot debug generated chatgpt code that you may create. You would still need to be able to figure out any problems or write the code yourself to make sure it both works and does what you ask of the code. At this time it is counter productive to try and use that tool for NinjaScript.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
630 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
566 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
. Where I should place it?
Comment