Vonasi

Price as Percentage of Error Band Range

Category: Indicators By: Vonasi Created: July 5, 2018, 7:18 AM
July 5, 2018, 7:18 AM
Indicators
7 Comments
Price as Percentage of Error Band Range

This indicator calculates standard error bands on price and then presents price as a percentage of the error band range. This makes it much easier to visualise where price is in the range by removing the contracting and expanding of the error bands.

Below zero and price is below the lower error band and above 100 and price is above the upper error band.

Using this indicator hopefully market turning points can be more easily spotted. Upper and lower levels can be set to help with these decisions.

The normal error band settings can be adjusted if you want.

I advise downloading the itf file and importing it rather than cutting and pasting the code to ensure that you get full functionality.

Thank you to who ever wrote the original error band code that I used.

//Error Bands Perc of Range
// by Vonasi 
//04 July 2018

P = 21
SDEG = 1
MF=2
UpperLevel = 90
LowerLevel = 10

AR = close
N = barindex
LR = Average[SDEG](linearregression[P](AR))

bv1 = summation[P](N*AR) - (P*Average[P](N)*Average[P](AR))
bv2 = summation[P](square(N)) - (P*square(Average[P](N)))
CalcB = bv1 / bv2

CalcA = Average[P](AR) - (CalcB*Average[P](N))

sev1 = Summation[P](square(AR)) - (CalcA*Summation[P](AR)) - (CalcB*Summation[P](N*AR))
sev3 = P - 2
SE = sqrt(sev1 / sev3)

UB = LR + (SE * MF)
BB = LR - (SE * MF)

topline = UB - LR
bottomline = LR - BB
gap = topline + bottomline
closeline = ((customclose - bb) / gap) * 100

return LowerLevel as "Lower Level", UpperLevel as "UpperLevel", closeline as "Price"

Download
Filename: Price-as-Perc-of-Error-Bands.itf
Downloads: 172
Download
Filename: Screenshot_2-2.png
Downloads: 18
Vonasi
Vonasi Master
V-oyaging ON A S-mall I-ncome
Author’s Profile

Comments

Vonasi
8 years ago
#

I cannot communicate in French with you. Please start a topic in the forums to discuss your strategy. Maybe someone like Nicolas can help you better in French. I have to use Google translate and it is not very good!

jissey
8 years ago
#

Bonjour Vonasi, ma stratégie est simple; Passage du niveau 50 par la closeline , à l'achat comme à la vente = résultat=compte négatif en un trade, les stops ne sont pas respectés, j'ai ajouté le niveau 50 au code, bien-entendu ; voilà, en espèrant que la traduction soit correcte, merci ,cordialement

Vonasi
8 years ago
#

Jissey - Je pense qu'il est préférable que vous commenciez un sujet sur le forum ProOrder et que vous partagiez peut-être la stratégie afin que quelqu'un puisse vous aider à trouver le problème. Ce n'est peut-être pas moi, car je ne suis pas en mesure de communiquer facilement en français.

jissey
8 years ago
#

Ce n'est pas ce que j'ai écrit, Je dis que mon compte est en négatif avec un seul trade

Nicolas
8 years ago
#

Vraiment, je trouve que Vonasi est pas sympa sur ce coup ! :)

jissey
8 years ago
#

Bonjour Vonasi, votre indicateur "error bands perc of range " semble interessant, mais lorsque je l'ajoute à un autre code,(qui me renvoie des résultats normaux), et bien avec votre code il me plante le compte, mes stops sont ignorés et mon compte est coulé en un trade.Il fait la mème chose quand il est utilisé seul. Avez vous une explication? L'avez-vous testé? Merci pour la réponse, cordialement,jissey

Jan Wind
8 years ago
#

Thanks for the indicator. I will try if this indicator in combination with my favorite (standard) indicator Average DI will lead to a profitable trade strategy.

ProRealCode ProRealCode
Loading...