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.
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
|File Size||10.8 KB|
|# of Downloads||4578|
Importing to NinjaTrader 7 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
- Select the downloaded file from your desktop