Abstract
This paper describes a signal generation strategy based on the Ichimoku technical indicator of all cycle resonance, which uses the simultaneous occurrence of long or short alignments in the 15m, 1H and 4H cycles as a signal to open a position. The backtest and live code are attached at the end of this article.
Keywords: Ichimoku Ichimoku, multi-cycle resonance
**What is Ichimoku Equilibrium? **
The Ichimoku Equilibrium (also known as the Japanese Cloud Chart Indicator) is a technical similar to moving averages, but it has a unique way of showing the balance of current market conditions, including support and resistance levels, as well as implied momentum.
European and American traders use this indicator more often, especially in the Forex market. The digital currency market has been backtested by me, and six months of live trading experience tells me that this strategy also works.
Calculation of the Ichimoku Indicator
The Ichimoku chart has 5 sets of parameters that provide a clear and simple trend determination based on the high and low prices of each long and short period (the length of the period can be changed at will).The 5 sets of parameters are as follows:
Conversion Line (Tenkan-Sen / Conversion Line)
Short-axis fast line = (Highest price in 9 days + Lowest price in 9 days) ÷ 2, with a short period of 9 days.
Base Line (Kijun-Sen / Base Line)
Pivot Line = (26-day high + 26-day low) ÷ 2, with 26 days as a medium-term cycle.
*** Late Moving Band (Chinkou Span / Lagging Span)***
Backwardation Indicator (Backwardation Time) = Move today’s closing price backward by one Medium Term Cycle (26 days).
Forward Span A (Senkou Span A / Leading Span A)*
Leading Span A (Leading Time A) = (Conversion Line + Baseline) ÷ 2 to move forward one mid-period.
Forward Span B (Senkou Span B / Leading Span B)
Leading Span B (Leading Time B) = (52-Day High + 52-Day Low) ÷ 2, shifted forward to one mid-period.
Cloud Bands / Clouds (Kumo / Cloud)
Cloud Band (Resistance Band, Impedance Band) = Area between Prior Band A and Prior Band B.
Ichimoku’s 5 lines are shown below on the chart:
Usage of Ichimoku Ichimoku
Ichimoku is used in a variety of ways, not only to provide trend judgment, but also to provide signals to open positions. For trend traders, if the K line is above the cloud chart, it indicates a long trend and you can take a long position. On the other hand, if the K-line is below the cloud chart, it indicates a short trend, so you can take the opportunity to go short.
Regarding position opening signals, I will introduce the most commonly used one: in a long market, the K-line is above the cloud, when Tenkan sen crosses Kijun sen to open a long position; on the contrary, when in a short market, the K-line is below the cloud, when Tenkan sen crosses, to go short. Of course, you can also add some restrictions, such as long when the corresponding Chikou span in the cloud, short when the cloud below.
Other opening signals please bosses to research by themselves.
Multi-cycle resonance
Multi-cycle resonance, that is, different cycles (usually more than 4 times the cycle) at the same time issued a long or short signal. Multi-cycle resonance is very helpful in improving the quality of signals. My live strategy uses the 15m K-line, and then the signals from the 1H and 4H K-lines as confirmation.
The backtest and live code is shown below, the code is my actual live code, there should be no error when running. The strategy works pretty well on ETH, so if you’re interested, please backtest it yourself.
def produce_ichimoku_add_end_time () This function is to organize the original df matrix, add an equalization parameter, and at the same time add a column of candle_end_time, so that a number of multiple cycles of signals are displayed in a matrix at the same time.
def real_signal_multiple_timeframe_ichimoku_15m () is the function that actually generates the signal.
Another thing to remind you bosses is that this strategy has a take-profit and stop-loss, when you open a position, set the take-profit and stop-loss, stop loss stop_loss_price, stop gain stop_gain_price, which is based on the price of the open position and the profit/loss ratio to determine. If you have any questions, please feel free to send me a private message. I hope to improve this strategy together.
1 | import pandas as pd |