OPEN-SOURCE SCRIPT
Z-Score For Loop | MisinkoMaster

The Z-Score For Loop is a new trend following oscillator designed to catch reversals ahead of anyone else, providing users with top tier signals.
It works like so:
1. Calculate the Z-score of the source (like close, open etc.)
The formula is the following
(current value - mean)/Standard Deviation
For mean there is the option to use different types of averages, this allows for more flexibility, but the recommendation is using mainly SMA/EMA, maybe WMA, because the other ones might cause too much noise.
This itself is pretty noisy, so we now need to filter it a bit, which is where the next step comes in
2. Add the For Loop Logic
Basicly, what this means is that we compare the current Z-score value to the previous values, rewarding it for every previous score it beats, and punishing it for every previous score it is lower than.
This comes in handy, because using other filtering methods like the median, Average (e.g. MA) or even mode did smooth it, but made it suffer a lot of speed. The For Loop balanced the speed & noise really well, which lead to it being fast & accurate.
The idea of using the For Loop was that the Z-score was anything but lagging on its own - which is good if you want speed, but the falses it gave was unforgivable.
Adding a bit of lag to it smoothed it and made it acceptable noise wise, and really good speed wise.
The For Loops work really well as trend Following tools, and the Z-score is a concept I never saw being used in a For Loop before (correct me if I am wrong), which lead to this being quite a convenient choice for indicator and publishing
It works like so:
1. Calculate the Z-score of the source (like close, open etc.)
The formula is the following
(current value - mean)/Standard Deviation
For mean there is the option to use different types of averages, this allows for more flexibility, but the recommendation is using mainly SMA/EMA, maybe WMA, because the other ones might cause too much noise.
This itself is pretty noisy, so we now need to filter it a bit, which is where the next step comes in
2. Add the For Loop Logic
Basicly, what this means is that we compare the current Z-score value to the previous values, rewarding it for every previous score it beats, and punishing it for every previous score it is lower than.
This comes in handy, because using other filtering methods like the median, Average (e.g. MA) or even mode did smooth it, but made it suffer a lot of speed. The For Loop balanced the speed & noise really well, which lead to it being fast & accurate.
The idea of using the For Loop was that the Z-score was anything but lagging on its own - which is good if you want speed, but the falses it gave was unforgivable.
Adding a bit of lag to it smoothed it and made it acceptable noise wise, and really good speed wise.
The For Loops work really well as trend Following tools, and the Z-score is a concept I never saw being used in a For Loop before (correct me if I am wrong), which lead to this being quite a convenient choice for indicator and publishing
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.