Autotrend With History & Signaling (Autotrendh)

This is a demonstration strategy for my modified version of the AutoTrend indicator (AutoTrendH).

Added options to enable trend line View History,TrendPrice,TrendDirection and ChartMarking (dots on trendline) to show which bar trend detected on.

Usage:

AutoTrendH(bool: alertOnBreak, bool: showHistory, int: strength).TrendPrice ::returns trendline price at rightmost bar position
AutoTrendH(bool: alertOnBreak, bool: showHistory, int: strength).Signal ::0 = no signal, 1 = Up break of down trend line(buy signal), -1 = Down break of up trend line(sell signal)
AutoTrendH(bool: alertOnBreak, bool: showHistory, int: strength).Direction ::1=direction of last defined trend was up, -1=direction of last defined trend was down

If you have any ideas or further enhancements, let me know. Possible future additions...

* Oscillator for TrendLine angle/slope
* Parallel line for trading channel

NOTE: The Stop parameters in this strategy are non-functional (its just a demo of the AutoTrendH indicator)

For a full featured strategy utilizing this indicator download my NinjaWorkshop strategy in this file download section

Created By derekphelps
NinjaTrader Version 7
File Size 10.8 KB
Create Date 12/12/2012
# of Downloads 5146

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.