Relative Strength(RSMK) + Perks - Markos KatsanosIf you are desperately looking for a novel RSI, this isn't that. This is another lesser known novel species of indicator. Hot off the press, in multiple stunning color schemes, I present my version of "Relative Strength (RSMK)" employing PSv4.0, originally formulated by Markos Katsanos for TASC - March 2020 Traders Tips. This indicator is used to compare performance of an asset to a market index of your choosing. I included the S&P 500 index along side the Dow Jones and the NASDAQ indices selectively by an input() in "Settings". You may comparatively analyze other global market indices by adapting the code, if you are skilled enough in Pine to do so.
With this contribution to the Tradingview community, also included is MY twin algorithmic formulation of "Comparative Relative Strength" as a supplementary companion indicator. They are eerily similar, so I decided to include it. You may easily disable my algorithm within the indicator "Settings". I do hope you may find both of them useful. Configurations are displayed above in multiple scenarios that should be suitable for most traders.
As always, I have included advanced Pine programming techniques that conform to proper "Pine Etiquette". For those of you who are newcomers to Pine Script, this script may also help you understand advanced programming techniques in Pine and how they may be utilized in a most effective manner. Utilizing the "Power of Pine", I included the maximum amount of features I could surmise in an ultra small yet powerful package, being less than a 60 line implementation at initial release.
Unfortunately, there are so many Pine mastery techniques included, I don't have time to write about all of them. I will have to let you discover them for yourself, excluding the following Pine "Tricks and Tips" described next. Of notable mention with this release, I have "overwritten" the Pine built-in function ema(). You may overwrite other built-in functions too. If you weren't aware of this Pine capability, you now know! Just heed caution when doing so to ensure your replacement algorithms are 100% sound. My ema() will also accept a floating point number for the period having ultimate adjustability. Yep, you heard all of that properly. Pine is becoming more impressive than `impressive` was originally thought of...
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND much, much more... You have the source!
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Katsanos
Congestion Index by KatsanosCONGESTION INDEX
Market movements can be characterized by two distinct types or phases. In the first, the market shows trending movements which have a directional bias over a period of time. The second type of market behavior is periodic or cyclic motion, where the market shows no consistent directional bias and trades between two levels. This type of market results in the failure of trend-following indicators and the success of overbought/oversold oscillators. Both phases of the market require the use of different types of indicator. Trending markets need trend-following indicators such as moving averages, moving average convergence/divergence (MACD), and so on. Trading range markets need oscillators such as the relative strength index (RSI) and stochastics, which use overbought and oversold levels. The age-old problem for many trading systems is their inability to determine if a trending or trading range market is at hand. Trend-following indicators, such as the MACD or moving averages, tend to be whipsawed as markets enter a nontrending congestion phase. On the other hand, oscillators (which work well during trading range markets) are often too early to buy or sell in a trending market. Thus, identifying the market phase and selecting the appropriate indicators is critical to a system’s success. The congestion index attempts to identify the market’s character by dividing the actual percentage that the market has changed in the past x days by the extreme range according to the following formula:
Readings between+20 and−20indicate congestion or oscillating mode. Crossing over the 20 line from below indicates the start of a rising trend. Conversely, the start of a down turn is indicated by crossing under−20 from above. The CI can also be used as an overbought/oversold oscillator.
It was taken from İntermarket Trading Strategies book of by Markos Katsanos.Read the book.
D1:=Input(“DAYS IN CONGESTION”,1,500,15);
CI:=ROC(C,D1-1,%)/((HHV(H,D1)-LLV(L,D1))/(LLV(L,D1)+.01)+.000001);
Mov ( CI ,3,E)
(Copyright Markos Katsanos 2008)
Stiffness IndicatorThis indicator was originally developed by Markos Katsanos (Stocks & Commodities, V.36:12 (November, 2018): "The Stiffness Indicator").
Like and follow for more open source indicators!
Happy Trading!