The strategy uses 2 moving averages. Fast and slow. SMA or EMA - the user can select. Moving averages are needed to identify the direction of the trend.
Trend If both moving averages are directed upwards, it 's uptrend. If both moving averages are pointing down, it 's downtrend. If the moving averages are directed in different directions, the trend has not changed.
Background Lime color is uptrend. Red color is downtrend. By default, background display is disabled, but you can enable it in script settings.
Trading If uptrend (lime background) - open long position (and close short position) If downtrend (red background) - open short position (and close long position) Reverse trading, no stop-loss and take-profit Short positions can be removed and only long positions can be traded.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.