OPEN-SOURCE SCRIPT
已更新

DMA Buy & Sell Signal with Alerts

207
This script identifies **BUY** signals when the 20 DMA crosses **below** the 50 DMA, with the alignment: `200 DMA > 50 DMA > 20 DMA > Price`.
It also plots **SELL** signals when the 20 DMA crosses **above** the 50 DMA, with the alignment: `Price > 20 DMA > 50 DMA > 200 DMA`.
Each signal is plotted on the chart with green "BUY" and red "SELL" labels.
The script includes alert conditions for both signals.
It uses simple moving averages (SMA) of 20, 50, and 200 periods.
發行說明
This script identifies **BUY** signals when the 20 DMA crosses **below** the 50 DMA, with the alignment: `200 DMA > 50 DMA > 20 DMA > Price`.
It also plots **SELL** signals when the 20 DMA crosses **above** the 50 DMA, with the alignment: `Price > 20 DMA > 50 DMA > 200 DMA`.
Each signal is plotted on the chart with green "BUY" and red "SELL" labels.
The script includes alert conditions for both signals.
It uses simple moving averages (SMA) of 20, 50, and 200 periods.
發行說明
This script identifies **BUY** signals when the 20 DMA crosses **below** the 50 DMA, with the alignment: `200 DMA > 50 DMA > 20 DMA > Price`.
It also plots **SELL** signals when the 20 DMA crosses **above** the 50 DMA, with the alignment: `Price > 20 DMA > 50 DMA > 200 DMA`.
Each signal is plotted on the chart with green "BUY" and red "SELL" labels.
The script includes alert conditions for both signals.
It uses simple moving averages (SMA) of 20, 50, and 200 periods.
發行說明
This script identifies **BUY** signals when the 20 DMA crosses **below** the 50 DMA, with the alignment: `200 DMA > 50 DMA > 20 DMA > Price`.
It also plots **SELL** signals when the 20 DMA crosses **above** the 50 DMA, with the alignment: `Price > 20 DMA > 50 DMA > 200 DMA`.
Each signal is plotted on the chart with green "BUY" and red "SELL" labels.
The script includes alert conditions for both signals.
It uses simple moving averages (SMA) of 20, 50, and 200 periods.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。