aFastHero

Crossover Strategy w/Take Profit + Trailing Stop - Study

aFastHero Updated   
This script is a result of hours of trail, error and research. If something is not functioning as anticipated, please notify me with a description and possible screen shot of the issue.

The strategy is a basic crossover strategy. When MA1 crosses above MA2, it will trigger a long entry. When MA1 crosses below MA2, it will trigger a short entry.

When using the Take Profit function, the trailing stop will automatically activate at the defined TP3 level.

Also, when TP1 is hit a stop loss is set at 0.3% (this can be adjusted in settings) above/below the current entry. When TP2 is achieved, the stop will move up to the TP1 level.

If the trailing stop locks in LESS profit than the TP2 level, the stop will trigger at the TP2 level. This will continue until the trailing stop has moved to a level more advantageous than TP2.

There is a companion Alerts script for use with AutoView.

***AutoView syntax IS NOT provided***
Release Notes:
Updated titles in the "Moving Averages" section.
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact aFastHero for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.