OPEN-SOURCE SCRIPT
已更新 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
發行說明
Check if the candle close crosses the SMA line.發行說明
Edit the SMA input text發行說明
Add new logic to determine the trend and only display markers aligned with the HTF trend. 發行說明
Changed the higher timeframe SMA to the length of 100 based on the 2 hour timeframe. 發行說明
Plot the 100 SMA based of the 2 hour timeframe on the chart. 發行說明
Updated the bias table in the right top corner to display the intraday and daily trend.發行說明
Changed the text style of the table發行說明
Hide the crossover markers on the higher timeframes.Only timeframes smaller then 15m will display the markers
發行說明
Calculate the timeframe based of the minutes for the top corner table.發行說明
Hide markers on the higher timeframes發行說明
Refactored the code發行說明
Added the Period enum發行說明
Moved the methods, types and enums to a library發行說明
Made the SMA lengths adjustable 發行說明
Changed the settings texts發行說明
Made the table text variable so it will be visible on all background color. 發行說明
Added the setting to override the intraday trend following markers plotting. 發行說明
Fix the intraday trend text bug 發行說明
Updated to PineScript v6發行說明
Hide the trend table in the right top corner when the option to disable the trend following markers is checked. 發行說明
Display the markers on the seconds timeframe發行說明
Removed the HTF SMA line from the chart發行說明
Always show the trend table發行說明
Select the timeframe in minutes where you want to be able to display the cross over markers.It defaults to the 15 min timeframe.
發行說明
Dispatch an alert when the SMA cross over is marked.發行說明
Updated the default alert condition text發行說明
Update the alert condition text發行說明
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.
發行說明
Added an extra setting to plot the intraday SMA line on the chart發行說明
Change the text to enable 發行說明
Do not display all the configuration setting values on the charts開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。