TradingView
HoanGhetti
2023λ…„ 3μ›” 7일 μ˜€ν›„ 2μ‹œ 41λΆ„

RSI Trendlines with BreakoutsΒ 

GoldOANDA

μ„€λͺ…

β‹…
A pivot-based breakout indicator that attempts to provide traders with a visual aid for finding breakouts on the RSI. Similar to how we use trendlines on our charts, using them on the Relative Strength Index can also give us a sense of direction in the markets.

This script uses its own pivot-based system that checks for real-time swing levels and triggers a new pivot event after every dip and nth bars. The breakout alerts that are given were not designed to be taken as signals since their purpose is to provide an extra bit of confluence. Because of this, I added no other conditions that try to make the alerts "perfect", but instead, print every breakout that is detected. Despite stating this, I did happen to add a condition that checks the difference in RSI and the breakout value, but that's as far as it'll go.

There are alerts built-in to the script, along with adjustable repainting options.

πŸ”³ Settings
  • Lookback Range: Lookback period to trigger a new pivot point when conditions are met.
  • RSI Difference: The difference between the current RSI value and the breakout value. How much higher in value should the current RSI be compared to the breakout value in order to detect a breakout?
  • RSI Settings
  • Styling Options


πŸ”³ Repaint Options
On: Allows repainting
Off - Bar Confirmation: Prevents repainting and generates alerts when the bar closes. (1 candle later)

πŸ”³ How it Works
Before a trendline is drawn, the script retrieves the slope between the previous pivot point and the current. Then it adds or subtracts the slope x amount of times (based on the lookback range) from the current pivot value until the current x-axis is reached. By doing this we can get a trendline that will detect a breakout accurately.

The result


When using the RSI Difference condition, the script will print breakouts whenever the condition is true, because of this dotted lines were added to track where the alert was triggered.


πŸ”³ Alerts

릴리즈 λ…ΈνŠΈ

β‹…
Added
  • A condition to check for the difference between the current RSI value and the breakout value.
  • The script now prints a dotted line indicating where the breakout alert was triggered.

릴리즈 λ…ΈνŠΈ

β‹…
Added
  • Minor Changes

릴리즈 λ…ΈνŠΈ

β‹…
Refactor
  • Simple Trendlines library integration.
  • Horizontal lines are now a feature to display overbought and oversold zones.

tradingview.com/script/85fU3JnE-Simple-Trendlines/

릴리즈 λ…ΈνŠΈ

β‹…
Fix
  • Alert fixes

릴리즈 λ…ΈνŠΈ

β‹…
Update
  • Maximum label and line display count are now set as default.

릴리즈 λ…ΈνŠΈ

β‹…
Add
  • Multi-timeframe support (Historical data may not be accurate, barmerge is used to try and compensate for historical accuracy. Replay results will differ, realtime data however should be fine.)

릴리즈 λ…ΈνŠΈ

β‹…
Refactor
  • Removed old pivot system in favor of Pine Script's built-in pivot system. Leading to run-time performance increase and more accurate results.

릴리즈 λ…ΈνŠΈ

β‹…
Fix
  • Small logic error.
μ½”λ©˜νŠΈ
Hussainshk
β‹…
best setting of this indicator ?
friendlySeafow17009
β‹…
@husin123,
lukricky
β‹…
1 more question, can use in LTF such as 5 mins chart ?
HoanGhetti
β‹…
@lukricky, multiple timeframe support is now a feature.
lukricky
β‹…
@HoanGhetti, thanks, hoan !
mymax
β‹…
It repaints
CoffeeshopCrypto
β‹…
@mymax, no it doesnt. you need to wait for the candle to close. If your lookback is too tight, itll adjust as new price meets up
jygoli
β‹…
how do i get this indicator ?
HoanGhetti
β‹…
@jygoli You can search it up under indicators, or add it as a favorite then add it to the chart from there.
mymax
β‹…
I have sent you the comment regarding repainting. It is gone.
더보기