NexusFi: Find Your Edge


Home Menu

 



Categories Help    






 
Regression Channel (amaRegressionChannel) 5 *
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.


Category NinjaTrader 8 Indicators and More 
 
Suggest other entries I might like
Comments/ratings
5 * ZivG May 29th, 2020 03:00 PM
Hey guys,

Trying to use this in a strategy in NT8, but it's not allowing the strategy to be enabled. Here is the error I'm getting:

5/29/2020 11:52:50 AM,Default,Indicator 'amaRegressionChannel': Error on calling 'OnStateChange' method: Attempting to access D2D Factory from non UI thread. Attention NinjaScript Developers: As of 8.0.19 we've found that this causes performance degradation please search 'D2DFactory' in help guide for more information.,

Not able to find much info in the help guides and would love to use it in a strategy. Works great as an indicator.

Thoughts?
5 * KeithL May 16th, 2021 02:43 AM
Thank You!
5 * Shades October 14th, 2021 02:47 PM
No Comment
5 * racecarjw November 25th, 2021 11:35 AM
Thank you for sharing your work.
5 * trade2winandexcel June 27th, 2023 11:45 AM
No Comment
5 * FundedTrader82 November 24th, 2023 06:15 PM
No Comment

 
Sort by

 




© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top