Searching the internet i fount that there is one indicator with these characteristics, but is for metatrader.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
I could use help for building my own
Collapse
X
-
I could use help for building my own
Yes, I could use help for building my own, take into consideration that my programing skills are not even basic.
Searching the internet i fount that there is one indicator with these characteristics, but is for metatrader.
Last edited by Joaqvil; 12-02-2022, 08:38 AM.Tags: None
-
Hello Joaqvil,
I've split your post into a new forum post where we can discuss indicator development.
The original thread is linked below.
HI! I'm looking for an MA indicator that adjust It's envelopes automatically each day. The way I use envelopes is to predict how far the price could deviate from the mean, and to do so the most accurately possible, I would need to take the previous days as reference. In order for this to be achieved. I would need to obtain the
Below I am providing a link to a forum post with helpful information on getting started with C# and NinjaScript.
By 'the max percentage distance from the MA to the price' you are wanting a variable that stores the greater of two values using Math.Max() either the value currently stored by the variable or the Math.Abs() of the MA minus the Close[0] price.
A similar approach is used in this example to store the highest value.
To make this a percent you could multiply by 100.
To make an average you could save the values to a Series<double>.
And use this as the Input series to the SMA.
Or List<double>.
And use list.Average().
Or you could loop through the collections and do custom calculations.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 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
567 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
|
Comment