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"
You must be logged in to post a comment.
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
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.
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
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!