Dynamic zone RSI

Dynamic zone RSI

____________________

Parameters :RsiLength- period for RSI______________________________RsiPrice- price to apply to

DzLookBackBars- number of bars to look back for dynamic zone

DzStartBuyProbability- probability for buy zone

DzStartSellProbability- probability for sell zone

PS: dynamicZone.dll for the dll version can be downloaded from the post #1 of this thread

It seems that David Stendahl can not help him self Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it.

The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here). Do not be confused by the name as I was. Indicators called "dynamic zone" (dynamic zone RSI for example - one version of it can be found here : https://www.mql5.com/en/forum/173787) have almost nothing common at all with these indicators. The "dynamic zone" indicators floating on the net are a simple bolinger bands applied to some indicator while, according to Leo Zamansky and David Stendahl we have :

The probability input P1 and P2 can be adjusted by the trader to encompass as much or as little data as the trader would like. The smaller the probability, the fewer data values above and below the dynamic zones. This translates into a wider range between the buy and sell zones. If a 10% probability is used for P1 and P2, only those data values that make up the top 10% and bottom 10% for an indicator are used in the construction of the zones. Of the values, 80% will fall between the two extreme levels. Because dynamic zone levels are penetrated so infrequently, when this happens, traders know that the market has truly moved into overbought or oversold territory.

CALCULATING THE DYNAMIC ZONESThe algorithm for the dynamic zones is a series of steps. First, decide the value of the lookback period t. Next, decide the value of the probability Pbuy for buy zone and value of the probability Psell for the sell zone.

For i=1, to the last lookback period, build the distribution f(x) of the price during the lookback period i. Then find the value Vi1 such that the probability of the price less than or equal to Vi1 during the lookback period i is equal to Pbuy. Find the value Vi2 such that the probability of the price greater or equal to Vi2 during the lookback period i is equal to Psell. The sequence of Vi1 for all periods gives the buy zone. The sequence of Vi2 for all periods gives the sell zone.

In the algorithm description, we have: �Build the distribution f(x) of the price during the lookback period i.� The distribution here is empirical � namely, how many times a given value of x appeared during the lookback period. The problem is to find such x that the probability of a price being

greater or equal to x will be equal to a probability selected by the user. Probability is the area under the distribution curve. The task is to find such value of x that the area under the distribution curve to the right of x will be equal to the probability selected by the user. That x is the dynamic zone.So, nothing to do with Bollinger bands

Dynamic zone calculation can be applied to a wide range of indicators and this thread is going to be a thread where I think those should be kept (simply in order to make them available in one place)

____________________

PS: attached here the dynamicZone.dll (in the zip file) so that it is not necessary to attach it to every post that uses it. The last version of it will always be posted here. If it is going to be changed, backwards comp ability is going to be preserved

PPS: the latest version of dll is in the "dynamicZone dll May 2014.zip" file. Download it and overwrite the old one. All the old indicator will work with the new dll too

Files: