MTF Triple Kagi Indicator v1.0Introduction
The indicator attempts to implement three (3) time-based, multi-timeframe, non-repainting Kagi lines as an overlay to your chart and applying a trend bullish/bearish trend strength evaluation based on the position of the Kagi close prices between the Fast Kagi and Slow Kagi.
How is it original and useful?
This indicator is unique in that it combines a Fast and Slow Kagi timeframes and applies the following trend analysis to determine bullish/bearish strength:
Strong Bullish = when both Fast and Slow Kagi are below the current price and Slow is less than or equal to Fast Kagi.
Moderate Bullish = when both Fast and Slow Kagi are below the current price and Slow is greater than Fast Kagi.
Neutral = when current price is between the Fast and Slow Kagi.
Moderate Bearish = when both Fast and Slow Kagi are above the current price and Slow is less than Fast Kagi.
Strong Bearish = when both Fast and Slow Kagi are above the current price and Slow greater than or equal to Fast Kagi.
In addition, the indicator adds a Trigger Kagi that you can optionally use as a faster Kagi to see more confirmation of trend within the Fast/Slow Kagi combination. It is not used in the bullish/bearish comparison analysis but is simply informative in confirming the trend with a smaller timeframe than the Fast Kagi.
How does it compare to other scripts in the Public Library?
This indicator makes use of the security() function and applies the best-practices as provided by the PineCoders' script called `security()` revisited so that the indicator will not repaint when you refresh the chart or re-open it at a later date. In addition, at the time of initial publishing, this indicator is the only publicly available indicator that combines multiple time-based Kagi lines to offer a simple trend analysis status for short-term or long-term traders.
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to produce Kagi lines from the beginning of the chart history up to the real-time bar. All three Kagi lines will default to the current chart's timeframe, therefore it is expected that you open the settings and adjust the Fast and Slow Kagi settings to provide the full effects of the indicator's features. The example chart above is using a 1-Hour chart with a Fast Kagi of 1 day (ATR(6)), a Slow Kagi of 1-Week (ATR(6)) and a Trigger Kagi of 6-Hours (ATR(14)). These settings are not universal for all markets; thus, it will require trial and error adjustments to tune the indicator to the specific market you are evaluating.
Lastly, the example chart above is illustrating how this indicator could be used with the 3Commas DCA Bot Strategy to provide entry and exit signals to simulate a bot's performance using the powerful Strategy Tester within TradingView to further evaluate the indicators influence on hypothetical trading conditions. The indicator provides a plot data point called "Kagi Bullish/Bearish Signal" that can be used in other chart strategies as a signal provider. The following is the meaning of the numeric signal value for this data point:
Strong Bullish = 2
Moderate Bullish = 1
Neutral = 0
Moderate Bearish = -1
Strong Bearish = -2
Enjoy! 😊👍
Kagi
MTF Kagi Indicator v1.0Introduction
The indicator attempts to implement a time-based, multi-timeframe, non-repainting Kagi lines as an overlay to your chart using traditional candlesticks.
How is it original and useful?
This indicator is unique in that it allows you to choose from among three different methods to define the reversal amount. They are:
ATR (Average True Range): After each Kagi line is drawn, the latest ATR value from the selected timeframe will be used until a new vertical Kagi line is drawn. At this point, the latest ATR value will be used for the reversal amount until it changes again. This means that the reversal amount will adjust as price action volatility changes.
Fixed Amount: This method will be useful if you desire to fix the reversal amount, like the normal Kagi Chart. Thus, use this option if you desire to mimic the same Kagi Chart on TradingView.
Percent of Price: This method, like the ATR, will produce the reversal amount using the latest close price against the given percentage value.
In addition, the indicator will allow you to define the Up and Down line colors and width. You can even elect to have a Kagi line drawn on the real-time bar or not.
How does it compare to other scripts in the Public Library?
This indicator makes use of the security() function and applies the best-practices as provided by the PineCoders' script called " `security()` revisited " so that the indicator will not repaint when you refresh the chart or re-open it at a later date. In addition, the indicator provides three possible alerts for Alert Conditions or Any Alert() Function Call. They are:
"Break Shoulder" - this alert will trigger (Once Per Bar) when the close price crosses above the shoulder (higher) of the previous Kagi line.
"Break Waist" - this alert will trigger (Once Per Bar) when the close price crosses below the waist (lower) of the previous Kagi line.
"New Kagi Line" - this alert will trigger (Once Per Bar) when the indicator draws a new vertical Kagi line and continues to monitor the next trend change.
When using the "Any alert() function call" option in creating alerts, the following placeholders are supported in the alert message: {{shoulder_price}}, {{waist_price}}, and {{kagi_close_price}}
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to produce Kagi lines from the beginning of the chart history up to the real-time bar. The Kagi line width will have a width of 1 pixel and the colors will match the normal color schemes that TradingView charts have for rising and falling colors. The reversal method will default to ATR with a period length of 14 so that it can provide a visually appealing Kagi lines where the reversal amount will be adaptive for all price charts. The default timeframe will be the chart's timeframe, but it can be changed to any higher timeframe. Using a timeframe that is lower than the current chart will not disable the indicator, but the lines will not be accurate since lower timeframe prices are being grouped to fit the current timeframe.
Enjoy! 😊👍
HA,Renko, Linebreak,Kagi and Average all Charts Layouts in One This is an educational study, using the security functions provided by @PineCoders(big thanks to them for creating this ) in order to see the difference between multiple candle close plots using:
Heikin Ashi
Renko
Linebreak
Kagi
Average of them all.
Both the different securities and the average can be used as a source for different indicators like moving averages or oscillators getting with them some new and unique opportunities.
If you have any questions, let me know !
Kagi Implementation (+ATR)My Own Kagi Indicator Implementation!
I couldn't find anywhere on the internet a simple implementation of the Kagi indicator (apart from a seemingly complicated JavaScript implementation).
So I decided to implement it myself and test it against the built-in Kagi indicator calculated by the built-in security function - They ended up exactly the same! (You can see my orange plot completely covers the security's purple plot)
My calculations are based on this article from a site called "euroland", the article is called "Kagi Chart" (I can't post the link because of TradingView restrictions)
Bonus: The built-in kagi indicator uses only Fixed Amount Reversal Size. One that is interested in an ATR Reversal Size can modify the calculation a bit (see script's comments) to easily create and use it.
Some interesting info about the security function I discovered while doing this script:
After I implemented it I noticed that my calculations are the same except the fact that all my values are delayed by 1 bar (relative to the security's indicator). After some research I discovered that the security function uses future data in it's calculation and therefore it cannot be trusted for testing live-trading strategies, unless it is given the appropriate parameters (see script for example).
Have fun trading and don't lose money!
[RESEARCH] Chart Type IdentifierA viable and workable concept of chart type identification using Pine Script.
Was wollen wir trinken , sieben Tage lang
Was wollen wir trinken, so ein Durst!
Was wollen wir trinken, sieben Tage lang
Was wollen wir trinken, so ein Durst!
[RESEARCH] Kagi Chart IdentifierA heuristic approach to identify Kagi chart type.
This tool allows to identify:
ATR Kagi charts (see ^)
Traditional Kagi charts
Works correctly with other chart types:
Classic Candles
Heikin-Ashi
Line Break
PnF
ATR Renko
Traditional Renko
Range Bars
Do not forget @everget
[STUDY]Kagi Emulator OCC & SL/TP V3This is the script with alerts for the previous backtest.
Modify "reversal" according to the pair
It has take profit and stop loss too.
Thanks and Enjoy...
Kagi Overlay [DW]This is a simple study that plots kagi values over your current chart. Works with both price action and time based charting.
NOTE: Because higher timeframe values are not certain until closed, refresh your chart as new levels are drawn.