This is the default thinkorswim MovAvgTwoLines indicator modified. The two lines can now be different average types. Additional features include a cloud, vertical lines and arrows; all with on/off switches in the input parameters. Cloud color can be changed in the Globlals option. For now the moving average types are the ones I use, EMA, SMA & WMA; might add more to the list later on.
This is Gaussian Filter, as described by John F. Ehlers in his publication "Gaussian and other Low Lag Filters". The number of poles can be selected between 1 and 4.
The chart shows that the 1 pole filter (yellow) gives a better approximation for price, while the 4 pole filter (blue) offers superior smoothing.
Update October 1, 2012: Small bug removed. Indicator will now correctly display when a period of 1 is selected.
Indicator will only run on NT 7.0.1000.4 or later.
The VisualEMA is a MTF (multi-timeframe) version of the Exponential Moving Average. It will plot on any chart and allows to calculate the moving average
- from minute bars
- from second bars
- from tick bars
- from range bars
- from volume bars
For example you can display an hourly EMA on a 277 tick chart, or display a 12-period EMA calculated from a 100 tick chart on a 5 range chart.
The indicator has three modes to display the moving average:
StrategicMode: The first bar series collects the values from the secondary series without any lag on historical data, but a 1-tick lag on real-time data. This mode does not repaint, but shows the values originally recovered from the secondary bar series. On the chart the indicator in Strategy Mode is plotted yellow.
FirstTickMode: To avoid the lag for similar bars with identical time stamps, the indicator repaints the indicator value for the prior bar, after the first tick of the current bar has been registered. The one-tick repainting reduces the lag. On the chart the FirstTick Mode is shown in red.
Visual Mode: To make it easier to use the indicator visually, the indicator interpolates the distance between two consecutive bars of the secondary bar series. The interpolation algorithm works in real-time and simulates the CalculateOnBarClose = false mode for the indicator relative to the secondary bar series. It repaints the current leg of the indicator back to the prior bar of the secondary series. The interpolation adapts itself to equidistant or non-equidistant charts. The Visual Mode is shown in aqua.
This indicator comes as a protected assembly, so you cannot directly access the code.
Update August 30, 2011: 1-Tick Repainting for VisualMode and FirstTickMode was only enabled for fixed period bars. It is now also available for other bar types.
Update September 6, 2011: Bug fixed. VisualMode interpolation could be a few ticks off on real-time data.
Update November 9, 2011: Indicator entirely recoded, robustness and speed improved, lag reduced.
Update November 23, 2011: Indicator was lagging with CalculateOnBarClose = true setting. Lag is eliminated.
Update January 5, 2012: Option added to select color according to the slope of the VisualEMA. Paintbars added as a trendfilter.
Update August 15, 2012: Code updated to allow for displacement of indicator.
Update September 29, 2012: Renko option removed. Indicator could not always be called from a strategy, bug removed.
Please remove prior versions of the indicator, before installing the new release:
(1) Remove old assembly via File -> Utilities -> Remove NinjaScript Assembly.
(2) Shut down NinjaTrader and restart it.
(3) Install new file via File -> Utilities -> Import NinjaScript.
Indicator will only run on NT 7.0.1000.4 or later.
The VisualSMA is a MTF (multi-timeframe) version of the Simple Moving Average. It will plot on any chart and allows to calculate the moving average
- from minute bars
- from second bars
- from tick bars
- from range bars
- from volume bars
For example you can display an hourly SMA on a 235 tick chart, or display a 11-period SMA calculated from a 500 tick chart on a 7 range chart.
The indicator has three modes to display the moving average:
StrategicMode: The first bar series collects the values from the secondary series without any lag on historical data, but a 1-tick lag on real-time data. This mode does not repaint, but shows the values originally recovered from the secondary bar series. On the chart the indicator in Strategy Mode is plotted yellow.
FirstTickMode: To avoid the lag for similar bars with identical time stamps, the indicator repaints the indicator value for the prior bar, after the first tick of the current bar has been registered. The one-tick repainting reduces the lag. On the chart the FirstTick Mode is shown in red.
Visual Mode: To make it easier to use the indicator visually, the indicator interpolates the distance between two consecutive bars of the secondary bar series. The interpolation algorithm works in real-time and simulates the CalculateOnBarClose = false mode for the indicator relative to the secondary bar series. It repaints the current leg of the indicator back to the prior bar of the secondary series. The interpolation adapts itself to equidistant or non-equidistant charts. The Visual Mode is shown in aqua.
This indicator comes as a protected assembly, so you cannot directly access the code.
Update August 30, 2011: 1-Tick Repainting for VisualMode and FirstTickMode was only enabled for fixed period bars. It is now also available for other bar types.
Update September 6, 2011: Bug fixed. VisualMode interpolation could be a few ticks off on real-time data.
Update November 9, 2011: Indicator entirely recoded, robustness and speed improved, lag reduced.
Update November 23, 2011: Indicator was lagging with CalculateOnBarClose = true setting. Lag is eliminated.
Update January 5, 2012: Option added to select color according to the slope of the VisualSMA. Paintbars added as a trendfilter.
Update August 15, 2012: Code updated to allow for displacement of indicator.
Update September 29, 2012: Renko option removed. Indicator could not always be called from a strategy, bug removed.
Please remove prior versions of the indicator, before installing the new release:
(1) Remove old assembly via File -> Utilities -> Remove NinjaScript Assembly.
(2) Shut down NinjaTrader and restart it.
(3) Install new file via File -> Utilities -> Import NinjaScript.
Attached is a collection of 7 NonLinear Moving Averages and their functions for easy use in backtesting. Every indicator also contains an option to color the line to signal up and downtrends, and the user can specify these colors.
This pack include the following moving averages:
KAMA (Kaufman Adaptive Moving Average),
VIDYA (Variable Index Dynamic Average),
MAMA (MESA Adaptive Moving Average),
Ehlers Filter,
Median-MA Difference Filter,
FRAMA (Fractal Adaptive Moving Average),
NonLinear Laguerre Filter.
If you want to import a specific indicator, uncheck the other ones while importing them in MultiCharts.
The example screenshot just shows one nonlinear moving average to give an idea.
Source: John Ehler's presentation 'Building Trading Systems on NonLinear Filters' at the TradeStationWorld 2005 Expo.
This is a generalized EMA, which allows you to use it with fractional periods. The minimum period required is 1.0.
This generalization is possible, as the integer period of an EMA is an artificial construct, which was adapted following the work of Jack K. Hutson, who compared simple and exponential moving averages. The generalized formula for an EMA is
EMA[0] = (1 - k) * EMA[1] + k * Price[0] , where 0 < k <= 1
The period n translates into k = 2/(n+1), so that n >= 1 is required not to violate the allowed range for k. Fractional values for n are possible.
The chart shows a fast EMA with a period of 12.7 and a slow EMA with a period of 38.3. The indicator which can be downloaded here, does not shade the region, a dual MA indicator will be released later.
These are the 2 pole and 3 pole Super Smoother Filters, which were described by John F. Ehlers in his book "Cybernetic Analysis for Stocks and Futures". Ported from Easy Language to NinjaTrader.
The chart shows that the 2 pole super smoother filter (yellow) gives a better approximation for price while the 3 pole filter (spring green) offers superior smoothing.
These are the 2 pole and 3 pole Butterworth Filters, which were described by John F. Ehlers in his book "Cybernetic Analysis for Stocks and Futures". Ported from Easy Language to NinjaTrader.
The chart shows that the 2 pole filter (red) gives a better approximation for price, while the 3 pole filter (blue) offers superior smoothing.
This is an improved version of the momentum indicator.
The n-period momentum is the difference between the close of the last bar and the close n bars ago. When a large bar n periods ago drops out of the momentum calculation, this can create a significant distortion, as it will show as a change in momentum, even if there was no or little price change for the last bar.
To eliminate this problem, the input value n bars ago was replaced with the triangular moving average SMA(SMA(Input, n+1), n+1)[0]. This modification does not change the usability of the momentum indicator, but simply eliminates the distortion.
October 25th, 2016 04:16 PM hobbys11 thx very much.
September 9th, 2015 04:48 PM anup Thx fat Tail. That is a great Indicator. Very thoughtful of you. Thx again.
July 21st, 2015 03:50 PM pepbosch great idea from a great brain! Thanks
December 27th, 2013 04:42 AM Maxie in welchem TF benutzt Du den Indi am Meisten? I can see the "alpha Auction bars"in the screen, sind die auch von Dir? Wü
rde ich gern ausproboieren, kannst Du mir sagen, wo ich die finde?
November 22nd, 2014 11:44 AM bearman12 Great for giving confirmation of the crossover of a moving average. Say you 20 sma, clearer picture of when to enter.:be