OPEN-SOURCE SCRIPT
Cập nhật SMA crossover candle mark

This indicator marks the SMA crossover candles.
Which I tend to use as my entry model.
Usually when this occurs within my marked supply or demand zone you could end up with a price explosion heading toward the next weak high / low or even toward the daily high / low.
I personally use it on the 2-3 min chart within a supply or demand zone.
I've chosen voor de 100 SMA based on the 2 hour timeframe to determine the trend which will be displayed in the right top corner. The markers aligned to the trend will be shown to prevent counter trend trading.
I've created a similar indicator for MetaTrader 5: https://www.mql5.com/en/market/product/122703?source=Unknown
Which I tend to use as my entry model.
Usually when this occurs within my marked supply or demand zone you could end up with a price explosion heading toward the next weak high / low or even toward the daily high / low.
I personally use it on the 2-3 min chart within a supply or demand zone.
I've chosen voor de 100 SMA based on the 2 hour timeframe to determine the trend which will be displayed in the right top corner. The markers aligned to the trend will be shown to prevent counter trend trading.
I've created a similar indicator for MetaTrader 5: https://www.mql5.com/en/market/product/122703?source=Unknown
Phát hành các Ghi chú
Check if the candle close crosses the SMA line.Phát hành các Ghi chú
Edit the SMA input textPhát hành các Ghi chú
Add new logic to determine the trend and only display markers aligned with the HTF trend. Phát hành các Ghi chú
Changed the higher timeframe SMA to the length of 100 based on the 2 hour timeframe. Phát hành các Ghi chú
Plot the 100 SMA based of the 2 hour timeframe on the chart. Phát hành các Ghi chú
Updated the bias table in the right top corner to display the intraday and daily trend.Phát hành các Ghi chú
Changed the text style of the tablePhát hành các Ghi chú
Hide the crossover markers on the higher timeframes.Only timeframes smaller then 15m will display the markers
Phát hành các Ghi chú
Calculate the timeframe based of the minutes for the top corner table.Phát hành các Ghi chú
Hide markers on the higher timeframesPhát hành các Ghi chú
Refactored the codePhát hành các Ghi chú
Added the Period enumPhát hành các Ghi chú
Moved the methods, types and enums to a libraryPhát hành các Ghi chú
Made the SMA lengths adjustable Phát hành các Ghi chú
Changed the settings textsPhát hành các Ghi chú
Made the table text variable so it will be visible on all background color. Phát hành các Ghi chú
Added the setting to override the intraday trend following markers plotting. Phát hành các Ghi chú
Fix the intraday trend text bug Phát hành các Ghi chú
Updated to PineScript v6Phát hành các Ghi chú
Hide the trend table in the right top corner when the option to disable the trend following markers is checked. Phát hành các Ghi chú
Display the markers on the seconds timeframePhát hành các Ghi chú
Removed the HTF SMA line from the chartPhát hành các Ghi chú
Always show the trend tablePhát hành các Ghi chú
Select the timeframe in minutes where you want to be able to display the cross over markers.It defaults to the 15 min timeframe.
Phát hành các Ghi chú
Dispatch an alert when the SMA cross over is marked.Phát hành các Ghi chú
Updated the default alert condition textPhát hành các Ghi chú
Update the alert condition textPhát hành các Ghi chú
Added the color inputs for the SMA line and the SMA cross over markers.The color must be confirmed when you place the indicator on the chart, after it's placed on the chart you will be able to adjust the colors again through the settings of the indicator.
Phát hành các Ghi chú
Added an extra setting to plot the intraday SMA line on the chartPhát hành các Ghi chú
Change the text to enable Phát hành các Ghi chú
Do not display all the configuration setting values on the chartsPhát hành các Ghi chú
Added the table position Phát hành các Ghi chú
Check for engulfing candles to filter out some useless crossovers. Phát hành các Ghi chú
Update the nameMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.