JoseMetal

MACD-AS MTF [JoseMetal]

JoseMetal 已更新   
============
ENGLISH
============
- Description:
This script is a modification of the Moving Average Convergence Divergence (MACD) of Thomas Aspray, and called as MACD-AS and you may get earlier signals than MACD.
On this (my version) you have several extra elements and customization.
Foremost (of course) you have the MACD-AS, which is the HISTOGRAM, also, it has a SIGNAL line (which smooths the MACD-AS), and finally, a higher timeframe oscillator based on one of the previous values (custom).

- Visuals, features, customization:
You can show/hide any of the components with a checkbox (MACD-AS, Signal and HTF Oscillator).
The timeframe for the higher timeframe oscillator is customizable, but by default is automatic and multiplies the chart timeframe by 3: 5m > 15m, 15m > 45m etc.
So we have the MACD-AS as a histogram, with 2 optional color schemes and custom transparency, it works similar to the original MACD, oscillating around the 0 level. Green colors (bull) if above 0, red (bear) below 0.
Smoothed MACD-AS makes the Signal line, going up (bull) shows green color, down (bear) red, changes from one to another also prints a colored dot. There's another feature which darkens the color when the momentum is losing strength, a strength filter input is available for that purpose but the default 0.5 works well.
The higher timeframe oscillator (it's called "oscillator" because you can pick if you want to show the MACD-AS or Signal line of the higher timeframe), is always shown as a line, colors work similar to the Signal line, but BLUE for bull and PINK for bear.
Finally, the background color just changes from green (bull) to red (bear) and vice versa if the Signal line is above or below the 0 line to show bull/bear trend too, this is slower than other indicator signals as well.

- Usage and recommendations:
You can use this script as default MACD, the difference is that you'll use the DOTs of the Signal line (when changing green to red and vice versa) as crossovers on the classic MACD.
You can also use the higher timeframe oscillator as a trend filter to not to trade against it, ex: if the HTF is bull, don't try to SHORT.
My favorite usage is to find DIVERGENCES with the MACD-AS (histogram) with the HTF MACD-AS histogram as well, having 2 confirmations, ex: 5m divergence + 15m divergence.

As always, suggestions are welcome.

Enjoy!



============
ESPAÑOL
============
- Descripción:
Este script es una modificación del Moving Average Convergence Divergence (MACD) de Thomas Aspray, y llamado como MACD-AS, se pueden obtener señales más tempranas que con el MACD.
En ésta (mi versión) tiene varios elementos adicionales y personalización.
En primer lugar (por supuesto) tienes el MACD-AS, que es el HISTOGRAMA, también, tiene una línea de SEÑAL (que suaviza el MACD-AS), y por último, un oscilador de marco de tiempo superior basado en uno de los valores anteriores (personalizado).

- Visuales, características, personalización:
Puedes mostrar/ocultar cualquiera de los componentes con un checkbox (MACD-AS, Señal y Oscilador HTF).
La temporalidad para el oscilador HTF es personalizable, pero por defecto es automático y multiplica la temporalidad del gráfico por 3: 5m > 15m, 15m > 45m etc.
El MACD-AS (histograma), con 2 esquemas de color opcionales y transparencia personalizada, funciona de forma similar al MACD original, oscilando alrededor del nivel 0. Colores verdes (alcista) si está por encima de 0, rojo (bajista) por debajo de 0.
El suavizado del MACD-AS hace la línea de señal, subiendo (alcista) muestra color verde, bajando (bajista) rojo, cambios de uno a otro también imprime un punto de color. Hay otra característica que oscurece el color cuando el impulso está perdiendo fuerza, una entrada de filtro de fuerza está disponible para ese propósito, pero el valor predeterminado 0,5 funciona bien.
El oscilador de temporalidad superior (se llama "oscilador" porque puedes elegir si quieres mostrar el MACD-AS o la línea de señal), siempre se muestra como una línea, los colores funcionan de forma similar a la línea de señal, pero AZUL para alcista y ROSA para bajista.
Por último, el color de fondo sólo cambia de verde (alcista) a rojo (bajista) y viceversa si la línea de señal está por encima o por debajo de la línea 0 para mostrar la tendencia alcista / bajista también, eso si, resulta más lento que otros avisos del indicador.

- Uso y recomendaciones:
Puedes usar este script como el MACD clásico, la diferencia es que usarán los PUNTOS de la línea de Señal (cuando cambie de verde a rojo y viceversa) como cruces en el MACD clásico.
También puedes usar el oscilador de mayor temporalidad como filtro de tendencia para no operar en contra de ella, ej: si el HTF es alcista, no intentes SHORTs.
Mi uso favorito es encontrar DIVERGENCIAS con el MACD-AS (histograma) y el HTF MACD-AS, teniendo 2 confirmaciones, ej: 5m divergencia + 15m divergencia.

Como siempre, las sugerencias son bienvenidas.

¡Que lo disfrutéis!
版本注释:
English:
- Repaint of the higher timeframe oscillator removed, only shows closed bar values.

Español:
- Repaint del oscilador de la temporalidad superior eliminado, ahora solo muestra el valor de verlas cerradas.
版本注释:
English:
- Custom colors for everything.

Español:
- Colores configurables para todo.
版本注释:
English:
- Added alerts for signal line crosses.

Español:
- Alertas agregadas para cruces de la línea de señal.
版本注释:
English:
- Changed the auto-higher timeframe for 12H to be 2D because TradingView doesn't work with 36H.

Español:
- Se ha cambiado la temporalidad superior automática de 12H para que sean 2 días ya que TradingView no funciona con 36H.
版本注释:
English:
- Another tweak to avoid repainting on the HTF Oscillator.

Español:
- Otro ajuste para evitar el repintado del oscilador de mayor temporalidad.
版本注释:
English:
- Added auto-timeframe for 1W > 3W.

Español:
- Agregada temporalidad automática para 1S > 3S.

受保护脚本
该脚本是闭源发布的,您可以自由使用它。您可以收藏它以在图表上使用。您无法查看或修改其源代码。
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?