Searching the internet i fount that there is one indicator with these characteristics, but is for metatrader.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
71 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
Comment