OPEN-SOURCE SCRIPT

Fetch Z-score

Обновлено
This script is enspired by the creator of the Z-score probability indicator made by tradingview.com/u/Steversteves/.

I took his calculation for the z-score and created my own strategy based on that z-score.

What is z-score? The Z-score represents how far the current price deviates from the moving average, measured in terms of standard deviations

What does this script do with the Z-score?
The script offers several customizable options, including displaying buy and sell signals based on Z-score thresholds and overlaying these signals directly on the chart or below/above the bars.

The idea is that when the Z-score exceeds a certain treshold, a count will start. The count will lead to a signal. For example: Say the Z-score dipped below -1. From there, the script will by default count whether the current Z-score is higher than the Z-score of the past 10 datapoints. If so, a buy signal will be printed on the chart. The idea is that the Z-score will creep up after a low, making sure you buy earyly in the new uptrend, making this a trend followiung system, with early trend detection.

You can choose whether you want the buy and sell signals on the seperate pane, or on the chart by toggeling a simple setting.

What are my favorite settings?
- Timeframe: weekly
- SMA Length: 75
- Z score buy treshold: -1.5
- Z score sell treshold: 3
- Lookback buy period: 20
- Lookback sell period: 20
Информация о релизе
This script is enspired by the creator of the Z-score probability indicator made by tradingview.com/u/Steversteves/.

I took his calculation for the z-score and created my own strategy based on that z-score.

What is z-score? The Z-score represents how far the current price deviates from the moving average, measured in terms of standard deviations

What does this script do with the Z-score?
The script offers several customizable options, including displaying buy and sell signals based on Z-score thresholds and overlaying these signals directly on the chart or below/above the bars.

The idea is that when the Z-score exceeds a certain treshold, a count will start. The count will lead to a signal. For example: Say the Z-score dipped below -1. From there, the script will by default count whether the current Z-score is higher than the Z-score of the past 10 datapoints. If so, a buy signal will be printed on the chart. The idea is that the Z-score will creep up after a low, making sure you buy earyly in the new uptrend, making this a trend followiung system, with early trend detection.

You can choose whether you want the buy and sell signals on the seperate pane, or on the chart by toggeling a simple setting.


What are my favorite settings?
- Timeframe: weekly
- SMA Length: 75
- Z score buy treshold: -1.5
- Z score sell treshold: 3
- Lookback buy period: 20
- Lookback sell period: 20

Patch notes v2:
- Bugfix: "lookback sell period"did not influence sell signals, but "lookback buy period" did. They now work as expected
Информация о релизе
Better precision on pane scale
Информация о релизе
Add cool down period inputs
Moving AveragesOscillatorsz-score

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?


Мои профили:

Отказ от ответственности