OPEN-SOURCE SCRIPT

MACD/EMA/SMA/Ichimoku Confluence Strategy

Cập nhật
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.
Phát hành các Ghi chú
Update: Noticed the logic was overly conservative, basically an AND present instead of an OR. Logic updated
Phát hành các Ghi chú
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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm