TradingView
ajkreamer
26 janv. 2022 19:28

4-Way EMA Trend 

Bitcoin / United States DollarCoinbase

Description

4 separate EMAs that are used to determine trend, colored appropriately to reflect the trend to make it easy to tell what the trend is. All 4 EMAs are not needed, you can turn each one on and off individually and the indicator will adjust itself accordingly. Having a single EMA will use the closing price to determine the trend. There are 2 different types of trend detection; EMA Flip and EMA Confluence. EMA Flip is dependent on all active EMAs rising or falling in the correct hierarchical order. The EMA Confluence option is if all EMAs are moving in the same direction. I've found that this second option, EMA Confluence, is more accurate in getting in early before strong movements because the EMAs will more often move in the same direction before they "flip".

Notes de version

Added monitor to top-right of the chart

Notes de version

Added input to toggle top-right monitor
Commentaires
ghwq76
Thanks for sharing, please

I want to modify the (long) (short) (close) conditions of this strategy. According to (EMA 50) green line (long position), yellow line (close position), red line (short position). How to modify the code like this, thank you for sharing.

EMA 50
yellow line (close position)
green line (long position)
red line (short position)
Plus