OPEN-SOURCE SCRIPT
Atualizado

GMMA Long-Short Signal

134
Introduction
This indicator is based on multiple EMA (Exponential Moving Average) constructions, aiming to identify buy and sell signals in the market. It calculates different periods of EMA lines and generates trading signals based on the relationship between prices and these EMA lines. This indicator is suitable for the TradingView platform and supports real-time alerts and chart drawing.

Indicator Composition
EMA Lines
This indicator calculates the following periods of EMA lines:

Short-term EMA lines: 3, 5, 8, 10, 12, 15
Medium-term EMA lines: 30, 35, 40, 45, 50, 60
Long-term EMA lines: 120, 140, 160, 180, 200, 240
These EMA lines are drawn on the chart with different colors and line widths, making it convenient for users to observe.

Trading Signals
The indicator generates four types of trading signals:

Buy Signal 1 (Buy 1): Triggered when the price meets the conditions of the short-term EMA line and the K-line is a bullish line.
Buy Signal 2 (Buy 2): Triggered when the price meets the conditions of the medium-term EMA line and the K-line is a bullish line.
Buy Signal 2 (Buy 3): Triggered when the price meets the conditions of the long-term EMA line and the K-line is a bullish line.
Sell Signal 1 (Sell 1): Triggered when the price meets the conditions of the short-term EMA line and the K-line is a bearish line.
Sell Signal 2 (Sell 2): Triggered when the price meets the conditions of the medium-term EMA line and the K-line is a bearish line.
Sell Signal 2 (Sell 2): Triggered when the price meets the conditions of the long-term EMA line and the K-line is a bearish line.

My usage method
I tend to rely on buy and sell signals 1 and 2.
Signal 3 is slightly lagging when it appears under normal circumstances, and entering at this time requires taking on greater risk, but it can be used as a reference for partial profit-taking.
I speculate that signal 3 may be credible when trading in highly volatile crazy stocks(WSB, meme...etc), as their prices fluctuate greatly (this speculation has not been verified by me, please judge for yourself).
The short, medium, and long-term EMMA indicators can mutually serve as support or resistance levels, and I personally prefer to use the long-term (red) EMMA as the final resistance or support.
If you find that signals appear frequently and buy and sell signals intersect, it usually means that the market is in a consolidation phase (box adjustment). At this time, you can either wait patiently for a candlestick that can break through the box to make a decision, or you can switch to a higher time-level candlestick chart, such as when multiple signals appear continuously on the 5-minute chart, switch to the 15-minute chart.

The above is my insight into using this indicator, and if you have a better strategy, you are welcome to leave a message. I will update the indicator according to the situation.
Wish we can all harvest rich profits!!!!!
Notas de Lançamento
When engaging in short-term options trading, do not place undue faith in the final candlestick before the market closes, as the opening the next day is often susceptible to news-driven volatility that can disrupt the signal.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.