OPEN-SOURCE SCRIPT
VWAP Trend Position + Predictive Line

This script (VWAP Trend Position + Predictive Line) plots the VWAP (Volume-Weighted Average Price) and uses recent highs/lows adjusted by ATR (volatility) to figure out the current market trend. If the price breaks above the high threshold, it considers the trend bullish; if it drops below the low threshold, it considers the trend bearish. Candles are colored to reflect this: lavender for uptrends, coral for downtrends, and yellow when there's no clear direction. It also draws a teal line to visualize the active trend level and marks trend reversals with a small triangle below the candle.
On top of that, the script includes a basic predictive line that projects future price based on the current slope of price over a chosen lookback period. It extends that slope into the future by a set number of bars and draws a dashed gray line to show where price might go if the current pace continues. It doesn’t guarantee accuracy — it’s just a straight-line guess based on recent price movement.
This Script is highly inspired by scripts such as, Future Chart Channel by Chartprime; As well as Auto Trendline by DojiEmoji. While I did not copy any script, I would like to show where i got the ideas to make this indicator.
NOTES:
1. you can turn on of off any or all trend lines in the settings
2. you can change the color of the candlesticks to your liking in the settings
3. I would recommend using some sort of stop loss for this indicator, and while it is very accurate, it can be wrong some times
Thank you for reading and using this script!
-saltwater_is_epic
On top of that, the script includes a basic predictive line that projects future price based on the current slope of price over a chosen lookback period. It extends that slope into the future by a set number of bars and draws a dashed gray line to show where price might go if the current pace continues. It doesn’t guarantee accuracy — it’s just a straight-line guess based on recent price movement.
This Script is highly inspired by scripts such as, Future Chart Channel by Chartprime; As well as Auto Trendline by DojiEmoji. While I did not copy any script, I would like to show where i got the ideas to make this indicator.
NOTES:
1. you can turn on of off any or all trend lines in the settings
2. you can change the color of the candlesticks to your liking in the settings
3. I would recommend using some sort of stop loss for this indicator, and while it is very accurate, it can be wrong some times
Thank you for reading and using this script!
-saltwater_is_epic
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.