OPEN-SOURCE SCRIPT
Stochastic + Mini Divergence

BULLISH MINI DIVERGENCE (Long Signal)
What price does:
Makes a lower low, or a double bottom (second low equal to or lower than the first)
What %K does:
First trough: %K hooks down, reaches 20 or below at some point
%K then hooks back up
%K then hooks back down again for the second trough
The second trough of %K is higher than the first trough
Price went lower or equal, %K went higher
What %D must do:
Must stay below 45 the entire time between the two lows
Must NOT recover into the 45-55 zone
If %D crosses back above 45 — pattern invalidated
BEARISH MINI DIVERGENCE (Short Signal)
What price does:
Makes a higher high, or a double top (second high equal to or higher than the first)
What %K does:
First peak: %K hooks up, reaches 80 or above at some point
%K then hooks back down
%K then hooks back up again for the second peak
The second peak of %K is lower than the first peak
Price went higher or equal, %K went lower
What %D must do:
Must stay above 55 the entire time between the two highs
Must NOT pull back into the 45-55 zone
If %D crosses back below 55 — pattern invalidated
What price does:
Makes a lower low, or a double bottom (second low equal to or lower than the first)
What %K does:
First trough: %K hooks down, reaches 20 or below at some point
%K then hooks back up
%K then hooks back down again for the second trough
The second trough of %K is higher than the first trough
Price went lower or equal, %K went higher
What %D must do:
Must stay below 45 the entire time between the two lows
Must NOT recover into the 45-55 zone
If %D crosses back above 45 — pattern invalidated
BEARISH MINI DIVERGENCE (Short Signal)
What price does:
Makes a higher high, or a double top (second high equal to or higher than the first)
What %K does:
First peak: %K hooks up, reaches 80 or above at some point
%K then hooks back down
%K then hooks back up again for the second peak
The second peak of %K is lower than the first peak
Price went higher or equal, %K went lower
What %D must do:
Must stay above 55 the entire time between the two highs
Must NOT pull back into the 45-55 zone
If %D crosses back below 55 — pattern invalidated
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.