Values
- ATR = Average True Range value counting with Nbr_Periods as period.
- ATR Range = Multiplier * ATR.
- Medium Price = (High + Low)/2.
- Main Trend Line in Up Trend (Show in Color Lime) = Medium Price - ATR Range.
Tricky Part: And the value will keep the same as the previous one if the current value from the formula is less than the previous one, but it will rise up if the value is larger. - Main Trend Line in Down Trend = Medium Price + ATR Range.
- Main Trend Line
Conditions
- Up Trend: Current close price is larger than the "Main Trend Line in Up Trend"
- Down Trend: Current close price is less than the "Main Trend Line in Down Trend"