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)
@inno14 Sir, These Script has a notification from TV..would you like to fix it? Thanks mate
Here it Is :
The function 'ta.valuewhen' should be called on each calculation for consistency. It is recommended to extract the call from the ternary operator or from the scope
inno14
⋅
@ukmpits, If it not working, I will fix it. Now, it still work.
ukmpits
⋅
@inno14 Sir,Please add more feature on this Superb one... Thanks mate
decentMeerkat007
⋅
looks very good. do you use this with stocks or SPY ? any insights on the settings etc many thanks
Here it Is :
The function 'ta.valuewhen' should be called on each calculation for consistency. It is recommended to extract the call from the ternary operator or from the scope