OPEN-SOURCE SCRIPT

MACD/EMA/SMA/Ichimoku Confluence Strategy

已更新
This strategy uses a number of chart indicators to provide a Bullish/Bearish signal. Using a combination of the 200 SMA, the 20 EMA, the MACD and the Ichimoku cloud, the strategy logic will adjust the amount of confluence required between the indicators depending on how bullish or bearish the chart is looking. The logic looks for the following:

- Are we above or below the 200 SMA?
- Are we above or below the 20 EMA?
- Have we had a bullish MACD cross?
- Where are we in relation to the Ichimoku cloud?

If the coin is below the 200 SMA, then the strategy will only give a buy signal if the coin closes a candle above the 20 EMA AND the MACD is bullish and either the Ichimoku cloud is green, or the coin is above the Ichimoku cloud (regardless of colour).

If the coin is above the 200 SMA, Then the strategy will give a buy signal if the coin closes a candle above the 20 EMA AND the MACD is bullish and the coin is either IN the cloud (not necessarily above it) or the cloud is green.

The reverse is true for a sell signal, i.e. when the coin is above the 200 SMA it must close a candle below the Ichimoku cloud and be bearish in relation to the 20 EMA and MACD. If it is below the 200 SMA, then the strategy will give a sell signal if the the EMA/MACD conditions are true and the coin enters the cloud.

This strategy gives a fairly conservative signal for entry and exit points, but is fairly successful across a number of time frames, both short term and long term. As with all my strategies, I only include LONG entries and closes, not SHORT entries (as I find they make for inaccurate backtesting).

Please feel free to like, share, critique and suggest any improvements to this strategy. All feedback, positive and negative, is appreciated.
版本注释
Update: Noticed the logic was overly conservative, basically an AND present instead of an OR. Logic updated
版本注释
Update: Strategy has been updated to include the Daily Bollinger Bands and Parabolic SAR.

In the event of a buy or sell condition being met outside the boundaries of the Bollinger Bands, the signal will be supressed until a candle closes back within the bands.

For the Parabolic SAR, the buy condition will only fire if the chart is bullish (i.e. the Parabolic SAR dots are below the candle closes). This was implemented as an additional filter to prevent spurious trades occurring in a sideways market.
Moving AveragesOscillatorsTrend Analysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明