This script is for custom candles based on an MA calculation with a default period of 14 as well as an SMA of the close price, defaulted to 1 period to only show the current price. The purpose of the custom candles is to try and reduce noise from candles and help identify trends.
Explained: - High, Low and Close are all calculated using an MA calculation based on a user input length/period, defaulted at 14. - Trend line = color black BUY "if candle close above the trend line & SELL "if candle close below the trend line. - Stop loss = for buying stop loss color = red line = for selling stop loss color = green line
- master stop loss = for buying SL - High 14 = for selling SL - low 14
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.