Inkedlau

Swing Trend Strategy

This script is a trend following system which uses a long term Moving Average to spot the trend in combination with the Average True Range to filter out Fakeouts, limiting the overall drawdown.

Default Settings and Calculation:

- The trend is detected using the Exponential Moving Average on 200 periods.
- The Average True Range is calculated on 10 periods.

- The Market is considered in an Uptrend when the price closes above the EMA + ATR.
- The Market is considered in a Downtrend when the price closes below the EMA - ATR.

- The strategy will open a LONG position when the market is in an Uptrend.
- The strategy will close its LONG positions when the price closes below the EMA.

- The strategy will open a SHORT position when the market is in a Downtrend.
- The strategy will close its SHORT positions when the price closes above the EMA.

This script is best suited for the 4h timeframe, and shows good results on BTC and ETH especially.
The options allow to modify the type of moving average to use, the period of the moving average, the ATR multiplier to add as well as the possibility to open short trades or not.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?