OPEN-SOURCE SCRIPT

Combined EMA, SMMA, and 60-Day Cycle Indicator V2

Cập nhật
What This Script Does:

This script is designed to help traders visualize market trends and generate trading signals based on a combination of moving averages and price action. Here's a breakdown of its components and functionality:

Moving Averages:
EMAs (Exponential Moving Averages): These are indicators that smooth out price data to help identify trends. The script uses several EMAs:
200 EMA: A long-term trend indicator.
400 EMA: An even longer-term trend indicator.
55 EMA: A medium-term trend indicator.
89 EMA: Another medium-term trend indicator.
SMMA (Smoothed Moving Average): Similar to EMAs but with different smoothing. The script calculates:
21 SMMA: Short-term smoothed average.
9 SMMA: Very short-term smoothed average.

Cycle High and Low:
60-Day Cycle: The script looks back over the past 60 days to find the highest price (cycle high) and the lowest price (cycle low). These are plotted as horizontal lines on the chart.

Color-Coded Clouds:
Clouds: The script fills the area between certain EMAs with color-coded clouds to visually indicate trend conditions:
200 EMA vs. 400 EMA Cloud: Green when the 200 EMA is above the 400 EMA (bullish trend) and red when it’s below (bearish trend).
21 SMMA vs. 9 SMMA Cloud: Orange when the 21 SMMA is above the 9 SMMA and green when it’s below.
55 EMA vs. 89 EMA Cloud: Light green when the 55 EMA is above the 89 EMA and red when it’s below.

Trading Signals:
Buy Signal: This is shown when:
The price crosses above the 60-day low and
The EMAs indicate a bullish trend (e.g., the 200 EMA is above the 400 EMA and the 55 EMA is above the 89 EMA).
Sell Signal: This is shown when:
The price crosses below the 60-day high and
The EMAs indicate a bearish trend (e.g., the 200 EMA is below the 400 EMA and the 55 EMA is below the 89 EMA).

How It Helps Traders:

Trend Visualization: The colored clouds and EMA lines help you quickly see whether the market is in a bullish or bearish phase.
Trading Signals: The script provides clear visual signals (buy and sell labels) based on specific market conditions, helping you make more informed trading decisions.

In summary, this script combines several tools to help identify market trends and provide buy and sell signals based on price action relative to a 60-day high/low and the positioning of moving averages. It’s a useful tool for traders looking to visualize trends and automate some aspects of their trading strategy.
Phát hành các Ghi chú
Indicator Overview

Inputs:
EMAs: 200 EMA, 400 EMA, 55 EMA, 89 EMA.
SMMA: 21 SMMA, 9 SMMA.
Cycle Length: Used to determine the high and low boundaries over a specific period.

Custom SMMA Function:
A custom function for calculating the SMMA, which is slightly different from the standard moving average and typically smoother.

Calculations:
EMAs and SMMA: Calculate the respective moving averages based on user inputs.
Cycle High and Low: Determine the highest and lowest prices over the specified cycle length.

Cloud Colors:
The script determines the color of the clouds based on the relative positions of EMAs and SMMA.

Phases:
Accumulation: When the current price is below the cycle low, and there has been no previous crossing above the cycle high.
Distribution: When the current price is above the cycle high, and there has been no previous crossing below the cycle low.

Plotting:
EMAs and SMMA: Plots lines for each of the EMAs and SMMA.
Clouds: Fills the area between relevant EMAs and SMMA with colors to visualize their relationship.
Cycle Boundaries: Plots the cycle high and low levels.
Buy/Sell Signals: Generates buy and sell signals based on crossover and crossunder of the price with cycle boundaries, combined with specific EMA conditions
automatedtradingCycleslearningTrend 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 đồ?

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