MACD w/ Divergences (Alert)

• MACD Bullish Divergence Under: <0 (lower for larger volatility and more bearish markets)
• MACD Bearish Divergence Above: >0 (higher for larger volatility and more bullish markets)
Key Notes:
1. Set "Once Per Bar" instead of "Once Per Bar Close" alert.
The strategy already uses prior bar close (instead of current bar close) for calculation. This ensures that the signals will stay as they are after fired off, even when the current bar price is still changing.
2. It's OKAY to see the "alert may trigger differently than expected" warning.
Reason why you are seeing this warning is because we used a function called valuewhen() in our strategy. This function does not look at the entire history of data and has several limitations. For instance, on a 30min resolution, at the end of 2018, the function will be able to find past occurrences of BTC exceeding 16k. However, the function won't be able to find such occurrences at the end of 2019. Since our strategy is only concerned with very recent events, these limitations will not impact our results or cause repainting. You can find out more about this in the TradingView Wiki.
Skrypt tylko na zaproszenie
Dostęp do tego skryptu mają wyłącznie użytkownicy zatwierdzeni przez autora. Aby z niego korzystać, należy poprosić o zgodę i ją uzyskać. Zgoda jest zazwyczaj udzielana po dokonaniu płatności. Więcej informacji można znaleźć w instrukcjach autora poniżej lub kontaktując się bezpośrednio z Phi-Deltalytics.
TradingView NIE zaleca płacenia za skrypt ani korzystania z niego, jeśli nie ma pełnego zaufania do jego autora i nie rozumie się zasad jego działania. Można również znaleźć darmowe, otwartoźródłowe alternatywy w skryptach społeczności.
Instrukcje autora
Wyłączenie odpowiedzialności
Skrypt tylko na zaproszenie
Dostęp do tego skryptu mają wyłącznie użytkownicy zatwierdzeni przez autora. Aby z niego korzystać, należy poprosić o zgodę i ją uzyskać. Zgoda jest zazwyczaj udzielana po dokonaniu płatności. Więcej informacji można znaleźć w instrukcjach autora poniżej lub kontaktując się bezpośrednio z Phi-Deltalytics.
TradingView NIE zaleca płacenia za skrypt ani korzystania z niego, jeśli nie ma pełnego zaufania do jego autora i nie rozumie się zasad jego działania. Można również znaleźć darmowe, otwartoźródłowe alternatywy w skryptach społeczności.