This simple script base on function of ATR Trailing Stop (aka SuperTrend) to plot Trading Setup on chart with detail as below: 1. Type of Average True Range (ATR) + The function calculate ATR may base on 1 of 3 type of Average: RMA, SMA, EMA 2. Trading Setup 2.1 Long setup + SuperTrend is upTrend + Entry Long at (or below) last value ATR Trailing Stop of Previous Trend (DownTrend) + Stop loss at first value ATR Trailing Stop of now Trend (upTrend) + Take profit at first value ATR Trailing Stop of Previous Trend (downTrend) + Move stop loss follow ATR Trailing Stop (green dot) 2.1 Short setup + SuperTrend is downTrend + Entry Short at (or above) last value ATR Trailing Stop of Previous Trend (upTrend) + Stop loss at first value ATR Trailing Stop of now Trend (downTrend) + Take profit at first value ATR Trailing Stop of Previous Trend (upTrend) + Move stop loss follow ATR Trailing Stop (red dot)