This indicator will read values from a .txt file, I've set the location of the file in the root directory, but you can change that to what ever you want.(c:\MyTextFile.txt)
I've set it up to hold 4 values:
EMAMin#12
EMAMax#24
StartTime#21:00
EndTime#09:00
You can add/remove any of the lines, but remember to change the Properties in the C# code.
When you add values you need to make sure the name/values are separatored by a hash (#)
It was written in Ninja7, but I'm sure it will work in Ninja6
This is a variation of Gordos "Better Line Break".
The difference: the "Real Line Break" uses the close of the last bar as open. This gives a more realistic chart and backtesting results.
Install via "Import Ninja Script".
(The code uses "Custom6" as ID. Change the value, if you already have an bar type with this number.)
Version 1.
September 10th, 2011
Size: 297.94 KB
Downloaded: 361 times
984
Fat Tails
I'm happy to share this indicator, that when you select a rectangle you can extend it into the future, whether it's the next day or several days into the future. I hope you find it useful, and here is a short VIDEO so you can see how it is used.
March 16th, 2023
Size: 2.90 KB
Downloaded: 361 times
2620
adonm5
This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed. Works on any period type. I paid to have coded.
DP_limiter = bar period
Endpos = x-axis adjustment
Multistddev = std dev bands
January 17th, 2017
Size: 3.57 KB
Downloaded: 566 times
1799
ericson
Version 1.1 September 9, 2018
The Regression Channel already comes as a NinjaTrader default indicator. However, the NinjaTrader default indicator comes with a few limitations, which are adressed by this indicator:
- The default indicator calculates the regression channel from the last bar loaded by OnBarUpdate(). When the chart scrolled back horizontally, the regression channel remains in its future position until it drops out of the chart.
- The default indicator does not allow for calculating the linear regression channel a few bars ago and then project the channel lines forward until the current bar.
This version of the indicator has the two issues addressed:
- The regression channel is calculated from the last bar shown on the chart and will adapt its position accordingly when you scoll back the chart horizontally.
- You may enter an offset and calculate the regression channel a few bars ago. The regression channel will then be extended until the last bar shown on the chart.
Repainting behavior: All regression channels - whether linear or polynomial - belong to the class of repainting indicators. All regression channels are retrofitted to the selected lookback period. The repainting can be easily observed with this indicator when scrolling horizontally. The indicator comes with an option to display the regression bands. The regression bands show the trace that the regression channel has painted on the chart without repainting any prior bars.
Public DataSeries: The indicator comes with four additional public DataSeries that can be accessed via the strategy builder.
- Normalized slope - This is an output which returns the slope in synthetic degrees. The slope has been normalized by dividing it by the square root of the average true range and then applying the arctangent.
- NormalizedChannelWidth - This series returns the normalized channel width around the regression line and may be used as a measure of non-directional volatility.
- RegressionTrend - The regression trend holds the value + 1 for an upsloping regression line and -1 for a downsloping regression line.
Market Analyzer Columns: The indicator comes with three separately coded market analyer columns which allow for displaying normalized slope, normalized channel width and the regression trend on the market analyzer.
This indicator is an enhanced version of the NinjaTrader Regression Channel Indicator.
The indicator calculates the same values for the linear regression as the default NinjaTrader indicator does, but uses a modified Plot() method.
If you scroll the chart horizontally, this indicator will display the regression channel for the last bar painted on the chart, while the NinjaTrader indicator always displays the regression channel for the last bar of the data base.
To understand how it works, just put both indicators - the NinjaTrader default indicator and this indicator - on your chart and scroll horizontally, and you will notice the difference.
Update July 23, 2011: Indicator updated to work with non-equidistant bar spacing, as used by multi-series charts.
Here is a simple mod to the Fat Tails anaRegressionChannel with slope up/down colors. For more information see the original indicator here.
4/26/12 - Replaced with a version that allows the lines to have the correct colors as the chart is scrolled. Originally it was just a real time indicator.
May 21st, 2014 08:12 AM texastodd Thanks ever so much Harry! This seems to be the bedrock of your presentation many moons ago. I'm trying to catch up an
d appreciate all the contributions you and everyone here pours so generously into this amazing resource called BMTF.
November 16th, 2013 05:22 PM noyss Perfect indicator! The only thing, sometimes when I use Replay Data the indicator dissapear and need to reinstall again,
itīs a minor bug...
Thank you so much
August 19th, 2012 08:37 AM john2000
July 5th, 2012 06:20 PM syxforex Thanks for doing this Danny, great to see so many other people liking it too... thanks again