Ichimoku Cloud and ADX with Trailing Stop Loss (by Coinrule)The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
DMI is simple to interpret. When +DI > - DI, it means the price is trending up. On the other hand, when -DI > +DI , the trend is weak or moving on the downside. The ADX does not give an indication about the direction but about the strength of the trend.
Typically values of ADX above 25 mean that the trend is steeply moving up or down, based on the -DI and +D positioning. This script aims to capture swings in the DMI, and thus, in the trend of the asset, using a contrarian approach.
Trading on high values of ADX, the strategy tries to spot extremely oversold and overbought conditions. Values of ADX above 45 may suggest that the trend has overextended and is may be about to reverse.
This strategy combines the Ichimoku Cloud with the ADX indicator to better enter trades.
Long orders are placed when these basic signals are triggered.
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
MACD line crosses over the signal line
-DI is greater than +DI
ADX is greater than 45
Close Position:
3% increase trailing
3% decrease trailing
The script is backtested from 1 January 2018 and provides good returns.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
This script also works well on MATIC (1d timeframe), ETH (1d timeframe), and SOL (1d timeframe).
Cloud
SuperC BF 🚀Based on some code from noro and kiasaki - thank you.
A Super Trend is a trend over a long period of time. There are lots of existing scripts that generate signals based on the overall direction of an instrument. What if we combined this idea with a measure of Money Flow and added a filter to try to avoid choppy sideways action?
I started with a super trend foundation and added an MFI calculation to account for volume flowing into and out of the asset. Then added a Rate of Change function to stay out of trades when there is not much up/down movement.
INSTRUCTIONS
Bright green background = go long
Bright red background = go short
COLOR OVERVIEW
A white background means we don't trade
A green background means we have a long condition
A red background means we have a short condition
The cloud is green when we have a long condition, red when we have a short condition.
The cloud is yellow if we should be in a long already but the current candle is not satisfying all long conditions.
The cloud is orange if we should be in a short already but the current candle is not satisfying all short conditions.
The line at the bottom is MFI - this is green when the current candle is greater than the last, red when it is less than the last.
SIGNAL GENERATION
A long condition is when MFI > MFI AND we are not in a choppy market AND when price is above the super trend.
A short condition is when MFI < MFI AND we are not in a choppy market AND when price is below the super trend.
We use a fixed Stop Loss of 2% here on the daily timeframe for XBT/USD.
If we get stopped out from a long and we still have the conditions for a long, we re-enter. Same for short.
Cloud Breakout BFBased on code by nathanhoffer
Long signal is after a close above Kumo cloud, short signal after close below it.
You can adjust stuff in the settings.
SuperTrend Cloud StrategyExperimental strategy to improve accuracy of SuperTrend Cloud. I am attempting to use STD deviation to manipulate the multiplier of the SuperTrend cloud. Greater STD Deviation = Oscillation in price action which can be applied to multiplier of SuperTrend to filter out bad trades and improve accuracy.
Hull Moving Average Cloud v2Hull Moving Average Cloud, is not the normal Hull crossover, instead opens orders at cross of price and alternative Hull MA configuration (stretches/shrinks with momentum)
Has history settings, Commission already included in result. Only looks into past, should be no repaint (im sure the trolls will correct me if im wrong, thankyou trolls i can always count on you)
Source code open, if you find improvement please share thankyou
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.