M.
Following the demands of many of our beloved customers, MA-Slope Trend Filter was developed with advanced algorithms in the mission to help traders gain more confidence in detecting trending & sideways markets.
As a trader, you know that "a trend is your friend". But how to detect a trend? A simple yet effective way is to rely on the slope of a moving average:
- Uptrend: An uptrend is detected if the moving average is upward steep enough.
- Downtrend: A downtrend is detected if the moving average is downward steep enough.
- Sideways: A sideways period is detected if the moving average is not steep (considerably flat).
MA-Slope Trend Filter measures a moving average's slope in ninZaATR unit, that is: how many ninZaATR the moving average changes per bar (averaging over the lookback period you specify). Because the number is too small, we multiply it by 1000 to derive a final value that is easy to read and configure.
Traders will need to define 4 slope thresholds: uptrend start/end, downtrend start/end - which are used to categorize the market into uptrend, downtrend, sideways phases. Generally, if the slope is large enough, the moving average is steep and we are in a trend.
The indicator comes with 10 moving average types to select, along with 10 moving average methods for smoothing. You will have a whole lot of flexibility to define and fine-tune your favorite moving average. These settings are 100% identical to ones in our Easy Trend indicator; therefore if you already own Easy Trend, you will find it easy to configure the moving average.
MA-Slope Trend Filter comes with an option to enable/disable sideways:
- "No Sideways" is enabled: In this mode, there are only uptrend & downtrend.
- "No Sideways" is disabled: In this mode, there are 3 phases: uptrend, downtrend and sideways.
Besides, MA-Slope Trend Filter generates "Trend Slowdown" and "Trend Resuming" signals which notify traders when the trend slows down and recovers from a pullback/correction, respectively. A trend-slowdown signal is often used for an exit, while a trend-resuming signal is an opportunity for traders to enter the market or add to their existing position.
In this indicator, ninZaATR is used (instead of regular ATR) for better performance. For your information, ninZaATR is ninZa.co's special ATR version that helps improve indicator performance significantly on intraday charts. It is also a standalone FREE indicator for ninZaFamily â https://ninza.co/product/ninzaatr.
Want the full picture before committing to one tool? Start with our catalog of NinjaTrader addons.
Dedicated NinjaScript Signals
- Signal_Trend: 1 = uptrend, -1 = downtrend, 0 = sideways
- Signal_Trade: 1 = uptrend start, -2 = uptrend slowdown, 3 = uptrend resuming, -1 = downtrend start, 2 = downtrend slowdown, -3 = downtrend resuming, 0 = no signals
- Signal_State:
- 2 = slope above "Uptrend Start" threshold
- 1 = slope from zero to "Uptrend Start" threshold
- -1 = slope from zero to "Downtrend Start" threshold
- -2 = slope below "Downtrend Start" threshold
Key Features
- Allow turning sideways on/off
- Allow defining moving average (among 11 popular moving averages )
- Allow smoothing moving average (with 11 popular moving averages )
- Allow applying a plot change filter on the moving average, either before or after smoothing
- Allow configuring lookback period for slope calculation
- Allow smoothing slope
- Allow configuring 4 slope thresholds: uptrend start/end, downtrend start/end
- Colorize plot based on 4 states: positive increase/decrease, negative increase/decrease
- Colorize bars based on trend status: uptrend & downtrend
- Paint background to clearly show uptrend, downtrend & sideways (if enabled)
- Print markers on trend start, slowdown, resuming
- Trigger alerts on trend start, slowdown, resuming
- Be NinjaScript ready for advanced usage, only restricted by your imagination
- Expose dedicated NinjaScript signals
Software Changelog
- 06 Oct 2020:- The indicator was released (built new).
Policies
Software license
Every purchase includes a perpetual software license, granting you the right to use the software indefinitely on the number of computers permitted by your license.
Installation & Onboarding
Every purchase includes guided installation assistance.
Purchases with Premium Services also include white-glove software setup and onboarding, along with personalized trading setup and workflow optimization.
Software updates & upgrades
Software updates & upgrades are provided at no additional cost.Â
For products with a modular structure, this coverage applies to the core product, while optional expansion modules may be offered separately.
Read the full policy
Customer service
Every purchase includes lifetime support via email & chat, delivered by our renowned Customer Care team â widely recognized throughout the trading community for its world-class service.
As your NINZA product collection expands, Premium Path unlocks a growing range of enhanced Customer Care benefits & privileges, available through dedicated channels.
Explore Premium Path
Remote assistance
Every purchase includes up to 3 complimentary remote assistance sessions, available within 30 days of purchase â with each session lasting up to 30 minutes.
Purchases with Premium Services include up to 6 sessions within 60 days of purchase, with priority scheduling and longer session durations.
Product exchange
Customers may request up to 3 product exchanges within 30 days of purchase, at little or no additional cost when exchanging for a comparable product.
Read the full policy
Returns & refunds
Due to the ease with which software products can be stored and copied, no returns will be accepted and no refunds will be issued.
ALL SALES ARE FINAL & NON-REFUNDABLE.








