OPEN-SOURCE SCRIPT
Actualizado 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
Notas de prensa
Check if the candle close crosses the SMA line.Notas de prensa
Edit the SMA input textNotas de prensa
Add new logic to determine the trend and only display markers aligned with the HTF trend. Notas de prensa
Changed the higher timeframe SMA to the length of 100 based on the 2 hour timeframe. Notas de prensa
Plot the 100 SMA based of the 2 hour timeframe on the chart. Notas de prensa
Updated the bias table in the right top corner to display the intraday and daily trend.Notas de prensa
Changed the text style of the tableNotas de prensa
Hide the crossover markers on the higher timeframes.Only timeframes smaller then 15m will display the markers
Notas de prensa
Calculate the timeframe based of the minutes for the top corner table.Notas de prensa
Hide markers on the higher timeframesNotas de prensa
Refactored the codeNotas de prensa
Added the Period enumNotas de prensa
Moved the methods, types and enums to a libraryNotas de prensa
Made the SMA lengths adjustable Notas de prensa
Changed the settings textsNotas de prensa
Made the table text variable so it will be visible on all background color. Notas de prensa
Added the setting to override the intraday trend following markers plotting. Notas de prensa
Fix the intraday trend text bug Notas de prensa
Updated to PineScript v6Notas de prensa
Hide the trend table in the right top corner when the option to disable the trend following markers is checked. Notas de prensa
Display the markers on the seconds timeframeNotas de prensa
Removed the HTF SMA line from the chartNotas de prensa
Always show the trend tableNotas de prensa
Select the timeframe in minutes where you want to be able to display the cross over markers.It defaults to the 15 min timeframe.
Notas de prensa
Dispatch an alert when the SMA cross over is marked.Notas de prensa
Updated the default alert condition textNotas de prensa
Update the alert condition textNotas de prensa
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.
Notas de prensa
Added an extra setting to plot the intraday SMA line on the chartNotas de prensa
Change the text to enable Notas de prensa
Do not display all the configuration setting values on the chartsNotas de prensa
Added the table position Notas de prensa
Check for engulfing candles to filter out some useless crossovers. Notas de prensa
Update the nameScript de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.