ChikouLibrary "Chikou"
This library contains Chikou Filter function to enhances functionality of Chikou-Span from Ichimoku Cloud using a simple trend filter.
Chikou is basically close value of ticker offset to close and it is a good for indicating if close value has crossed potential Support/Resistance zone from past. Chikou is usually used with 26 period.
Chikou filter uses a lookback length calculated from provided lookback percentage and checks if trend was bullish or bearish within that lookback period.
Bullish : Trend is bullish if Chikou span is above high values of all candles within defined lookback period. Bull color shows bullish trend .
Bearish : Trend is bearish if Chikou span is below low values of all candles within defined lookback period. This is indicated by Bearish color.
Reversal / Choppiness : Reversal color indicates that Chikou are swinging around candles within defined lookback period which is an indication of consolidation or trend reversal.
chikou(src, len, perc, _high, _low, bull_col, bear_col, r_col) Chikou Filter for Ichimoku Cloud with Color and Signal Output
Parameters:
src : Price Source (better to use (OHLC4+high+low/3 instead of default close value)
len : Chikou Legth (displaced source value)
perc : Percentage lookback period for Chikou Filter with defined how much candels of total length should be considered for backward filteration
_high : Ticker High Value
_low : Ticker Low Value
bull_col : Color to be returned if source value is greater than all candels within provided lookback percentage.
bear_col : Color to be returned if source value is lower than all candels within provided lookback percentage.
r_col : Color to be returned if source value is swinging around candles within defined lookback period which is an indication of consolidation or trend reversal.
Returns: Color based on trend. 'bull_col' if trend is bullish, 'bear_col' if trend is bearish. 'r_col' if no prominent trend. Integer Signal is also returned as 1 for Bullish, -1 for Bearish and 0 for no prominent trend.
Chikouspan
Chikou Filter for Ichimoku CloudThis Indicator enhances functionality of Chikou-Span from Ichimoku Cloud using a simple trend filter.
Methodology
Chikou is basically close value of ticker offset to close and it is a good for indicating if close value has crossed potential Support/Resistance zone from past. Chikou is usually used with 26 period.
Chikou filter uses a lookback length calculated from provided lookback percentage and checks if trend was bullish or bearish within that lookback period.
Bullish : Trend is bullish if Chikou span is above high values of all candles within defined lookback period. Green color shows bullish trend.
Bearish: Trend is bearish if Chikou span is below low values of all candles within defined lookback period. This is indicated by red color.
Reversal / Choppiness : White color indicates that Chikou are swinging around candles within defined lookback period which is an indication of consolidation or trend reversal.
Default Settings
Different source types are included but I've found that (OHLC4+High+Low)/3 is better for Chikou and Symmetrically Weighted Moving Average (SWMA) is also applied but it produce some repainting though. Default period is set to 26 and lookback percentage is 50%. Low percentage would decrease filter's efficiency.
Usage
This filter can be used to check if Chikou crossover has occurred in past. This can be used with Donchain channels, Bollinger Bands or any Moving Average as replacement of High / Low values. I'll use this indicator in all my Ichimoku Cloud studies especially adaptive ones. Filter outputs in Color and Integer format; both can be used as signals definitions.
Chikou Span 'Open Space' ColorsThe Ichimoku Clouds strategy has been one of my favorite scripts to work with since I came across it a few months ago, so I thought I'd share one of the automated features I created for the strategy.
For the purpose of this script, I'll only explain the Chikou Span aspect of it since there are plenty of other explanations about Ichimoku Clouds.
The Chikou Span is one of the most useful aspects of the Ichimoku Clouds strategy despite it not being used in most people's strategies. It is calculated by simply taking the current closing value and plotting it backwards 26 bars. The Chikou Span is used to identify large trend moves and trend reversals by what is referred to as 'open space'. This occurs when the Chikou Span is not intersecting any candlestick within 10 bars (if you were to draw a horizontal line from the tip of the Chikou Span, it would not touch any part of a candle within 10 bars).
The purpose of this script is to better identify the Chikou Span reaching 'open space' by coloring the Chikou Span's line:
- Green when it is in upwards open space (bullish trend), and
- Red when it is in downwards open space (bearish trend).
I've also included my personal color scheme for the Ichimoku Clouds strategy as well as inputs to turn on/off every aspect of the strategy.
** Disclaimer: THIS IS NOT TRADING ADVICE. The Chikou Span should not be used on its own to make any trades. When trading with the Ichimoku Cloud strategy, one should utilize all 5 lines of the strategy to make realistic trades. If you'd like to learn more, I'd recommend reading "Trading with Ichimoku Clouds - The Essential Guide to Ichimoku Kinko Hyo Technical Analysis" **
Ichimoku by HosodaWritten from scratch Ichimoku indicator, based on original calculations from Hosoda books. All formulas are exactly the same as Hosoda put them in his books, it contains additionally analysis from Higher Timeframe allowing to display Chikou trend, Kijun and Senkou-span B which are crucial in determining trend. It also contains overlay of Kyushu Legs. This is initial version of script and will be contanstly improved.
Some Ichimoku scripts have basic bugs in calculations and I ensure that formulas in this indicator are fully correct in relation to formulas provided by Hosoda.
Bollinger Bands with Lagging Span(Chikou Span)Japanese below / 日本語説明は下記
Summary
This indicator shows Bollinger bands with plus/minus 3σ bands and lagging span(called chikou span in Japanese as used in Ichimoku cloud) showing alert when lagging span crossing plus/minus 2σ bands, which are buy/sell signal respectively.
Bollinger bands are one of frequently used technical analysis indicators in trading and some traders use Bollinger bands and lagging span together in order to identify trading opportunities.
When lagging span crosses upper bands in bullish trend and lower bands in bearish trend, that would be considered buying/selling opportunities respectively.
Generally, lagging span is used offsetting current price by 26 period.
This indicator shows signal and alerts when lagging span crossing ±2σ bands as potential trading opportunities.
Functions
-To show Bollinger bands with plus/minus 3 sigma bands
-To show SMA as Bollinger bands middle line with configurable period of SMA.
-To show lagging span, enabling users to set lagging period and control display of lagging span by checkbox
-To show signal on chart when lagging span crosses +2σ bands and -2σ band with ability to set alert
-To control display of the signal by checkbox
Sample chart with the indicator
——————————————————————————————
概要
ボリンジャーバンド(±3シグマ)と遅行スパンを同時に表示するインジケーターです。遅行スパンが±2シグマと交差するとチャート上にシグナルを表示するとともに、アラートを設定することができます。
ボリンジャーバンドはテクニカル分析で最も使われているインジケーターの一つです。トレーダーの中にはボリンジャーバンドと遅行スパンを共に用いることで売り買いのサインを捉える手法を使っている方もいます。
上昇トレンドにおいては、遅行スパンがプラスのバンドを上抜いた時を買いサイン、下降トレンドにおいては、遅行スパンがマイナスのバンドを下抜いた時を売りサインとして捉えるものです。
一般的には、遅行スパンは現在価格を26期間オフセットしたラインが用いられます。
このインジケーターでは、遅行スパンがプラスマイナス2シグマを抜いた時にチャートへのシグナル表示と、アラート設定が可能です。
機能
-±1-3シグマのボリンジャーバンドの表示
-ボリンジャーバンドの基準線としてのSMAの表示(期間は設定可能)
-遅行スパンの表示(遅行期間の設定及び表示非表示の切り替え可能)
-遅行スパンがプラス2シグマバンドを上抜いた場合、マイナス2シグマバンドを下抜いた場合にチャート上にシグナルを表示(同じ条件でアラート設定が可能)
-シグナルの表示・非表示の切り替え
サンプルチャート
【Super Bollinger】The market consists of three phases: an uptrend phase, a downtrend phase, and a range-bound phase.Furthermore, if we include a trend phase and a correction phase, the market has five phases. In other words, the market is classified into the “five phases” as below:
1) Uptrend market (trend phase, upward bias)
2) Downtrend market (trend phase, downward bias)
3) Upward correction phase (correction phase, upward bias)
4) Downward correction phase (correction phase, downward bias)
5) Range-bound phase, sideways (correction phase, basically not biased)
For your judgment of the above market trends, Super Bollinger is extremely useful and effective. And Super Bollinger has advantage in judging market price level.
そもそも、相場は、5つの局面に分けることができます。
すなわち、
1)上昇トレンド局面(上昇バイアス)
2)下降トレンド局面(下降バイアス)
3)調整の反騰局面(上昇バイアス)
4)調整の反落局面(下降バイアス)
5)レンジ局面(バイアスなし)
そして、スーパーボリンジャー、これら5つの局面の判断を下す際にきわめて有効なツールです。また、とりわけ、価格分析に優れたチャートです。
With regard to Chikou Span,this span gives very useful information about (1) the direction of the market (being in an upward bias by buying pressure or in a downward bias by selling pressure) , (2) the timing of buying on the dip or selling on the rally, (3) the market’s temporal rhythm etc..
遅行スパンに関しては、基本的に、
(1)相場の方向性(買い優勢か売り優勢か)
(2)押し目買いや戻り売りのタイミング
(3)相場の時間的リズム
等々に関して実に有効な情報を与えてくれます。
【SpanModel】The Span Model is a very unique chart which shows us especially when to buy and when to sell. And the Span Model has advantage in judging the trade timing.
スパンモデルとは、いつ買うか、いつ売るかを教えてくれるとてもユニークなチャートです。とりわけ、トレードのタイミングを判断する上で優れています。
The Span Model is composed of only three lines (spans).
They are the Blue Span, the Red Span and the Chikou Span.
And a major characteristic of the Span Model is the signals (Span Model Signals) of the two types explained below:
1) Buy signal
The buy signal is lit when the Blue Span sits above, and the Red Span sits below.
2) Sell signal
The sell signal is lit when the Red Span sits above, and the Blue Span sits below.
スパンモデルには、構成要素(3つのスパン)として、青色スパン、赤色スパン、そして、遅行スパンがあります。
スパンモデルの大きな特長として、シグナル(スパンモデルシグナル)があります。そして、2種類のシグナルがあります。
1)買いシグナル
青色スパンが上方、赤色スパンが下方に位置するときに点灯します。
2)売りシグナル
赤色スパンが上方、青色スパンが下方に位置するときに点灯します。
Ichimoku Kinko Hyo Strategy+ EMA + 3ATRThis trading strategy uses combination of the Ichimoku Kinko Hyo system with Fibonacci numbers based 13/21/55 exponential moving average ( EMA ) crossover, giving good results in various trending assets !
Also has the Trend-following indicator combining SuperTrend with Chiku breakout from Ichimoku is added in order to confirm trend pattern.
The Ichimoku Kinko Hyo system includes five kinds of signal, of which this strategy uses the most recent of ones i.e. Tenkan Sen / Kijun Sen Cross and price crosses the Kijun Sen. As the Chikou Span, Senkou Span A and Senkou Span B are shifted into the past/future.
The Tenkan Sen, also known as the Turning or Conversion line, is a moving average of the highest high and lowest low over the last 9 periods in this strategy.
The Kijun Sen, also known as the Standard or Base line, is a moving average of the highest high and lowest low over the last 26 periods in this strategy.
The Chikou Span, also known as the Lagging line, is the closing price plotted 26 periods behind in this strategy.
The Senkou Span A, also known as the 1st leading line, is a moving average of the Tenkan Sen and Kijun Sen and is plotted 26 periods ahead in this strategy.
The Senkou Span B, also known as the 2nd leading line, is a moving average of the highest high and lowest low over the last 52 trading days is plotted 26 periods ahead in this strategy.
EMA is quicker to react to the current market price is because EMA gives more importance to the most recent data points. This helps the trader to take quicker trading decisions. Just used the laws of nature for EMA numbers: taken from Fibonacci sequence numbers 13/21/55
A SuperTrend employs ATR values to calculate the indicator values. The SuperTrend indicator combined with Chiku breakout from Ichimoku and plotted. The indicator line changes its color between green and red based on the price momentum in the underlying.
bg_Ichimoku_AlertsVersion 1.0
This script is a version of the Ichimoku Cloud indicator, which has its default settings optimized for Cryptocurrency trading. (20 Period Tenkan, 60 Period Kijun, 120 Period Senkou A, 30 Period Senkou B, 30 Period Offset/Displacement).
This script contains shape-plots and alert conditions for the following events:
- Bullish Entry into Red Kumo Cloud (Long Signal)
- Bearish Entry into Green Kumo Cloud (Short Signal)
- Edge-To-Edge(E2E) Completion on either type of Cloud (Possible Reversal Signal)
- Red & Green Kumo Cloud Breakout (Long or Continuing Long Signal)
- Kumo Cloud Support Breakdown, Top and Bottom of Cloud (Short Signal)
- Kumo Cloud Potential Bounce and Rejection
- Tenkan/Kijun Crossup/Down
Some things to note:
- Using short timeframes can cause certain alerts to fire many times, such as an E2E detection in a very thin cloud, or short/breakout when price is back-and-fourth at the edge of a cloud.
- The shapes are mostly there to provide a way to backtest when alerts would be triggered. They can be turned off in the settings if they become obnoxious and fill the screen with clutter.
At the time of releasing this script, the strategy version of this is still in development, but should be similarly released relatively soon. This indicator version of the script is intended for alerts, notifications, bot calls, and just general visual analysis of price action.
Thanks,
Bryan
My Ichimoku indicator & Strategyhello I'm a beginner in trading, but I try to learn how to code strategies.
I recoded the Ichimoku indicator, and created my personnal strategy based on it.
The backtesting is done from 1/1/2017 to today in 45 min Time Unit for candles, with a 1 000 € equity.
The trades are all Long Entries and Exits with no pyramiding, no short trades at all.
/!\ Exchanges commission fees are not calculated and can in reality easily divide by 2 the total profit (am I right guys?) /!\
A buy signal is triggered upon these conditions:
- close is above the Kuma (cloud)
AND
- close crosses over Kijunsen AND Kijunsen is not flat (calculated with rising and falling with input "Kijunsen Lag")
OR
- Close crosses over ChikouSpan AND there was a sell signal in the last 8 candles
Sell signal is the same but reversed.
I appreciate your feedback ! Maybe I will update this later if I get better results.