affichage indicateur sur l’ensemble de l’historique
Forums › ProRealTime forum Français › Support ProBuilder › affichage indicateur sur l’ensemble de l’historique
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by Ramahu.
-
-
06/16/2021 at 5:51 PM #171893
Bonjour à tous,
j’ai très apprécié le travail d’un membre du forum et son indicateur, cependant celui ci ne donne les infos que de la dernière période.
J’aimerais si possible voir sur le graph le résultat de la variable “Report” pour chaque bougie dans le passé.
Si quelqu’un peut m’aider, car le code est super complexe pour mes connaissances ^^ ..
06/16/2021 at 5:53 PM #171895Info graph123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184////=/===============/=//=/===============/=//=/ Indicator Range Trend//defparam drawonlastbaronly = true////=/===============/=//=/===============/=//=/ Range Fast//once FxRRange=closeFxscale = 2.338*average[14,1](abs(close-close[1]))FxR = average[27,1](FxScale)FxHH = closeFxLL = closeif FxHH > FxRRange[1] thenif (FxHH-FxR) < FxRRange[1] thenFxRRange = FxRRange[1]elseFxRRange = (FxHH-FxR)endifelsif (FxLL+FxR) > FxRRange[1] thenFxRRange = FxRRange[1]elseFxRRange = (FxLL+FxR)endifFxTrend = FxRRangeFxURange = FxRRange + FxRFxDRange = FxRRange - FxR////=/===============/=//=/===============/=//=/ Range Low//once LxRRange=closeLxR = 2.338*average[14,1](abs(close-close[1]))LxHH = highLxLL = lowif LxHH > LxRRange[1] thenif (LxHH-LxR) < LxRRange[1] thenLxRRange = LxRRange[1]elseLxRRange = (LxHH-LxR)endifelsif (LxLL+LxR) > LxRRange[1] thenLxRRange = LxRRange[1]elseLxRRange = (LxLL+LxR)endifLxTrend = LxRRangeLxURange = LxRRange + LxRLxDRange = LxRRange - LxR////=/===============/=//=/===============/=//=/ Trend Line////=/ Trend LineTLr = (FxTrend+LxTrend)/2AvTrD1 = (TLr+TLr[1])/2AvTrD2 = (AvTrD1-TLr)/15TrDL = AvTrD1-AvTrD2//=/ Up RangeXURange = (FxURange+LxURange)/2//=/ Dw RangeXDRange = ((FxDRange+LxDRange)/2)////=/===============/=//=/===============/=//=/ Volatility & Amplitude Settings////=/ Decompte HaussierUAmp = 0if close > TrDL thenUAmp = UAmp[1]+1endif//=/ Decompte BaissierDAmp = 0if close < TrDL thenDAmp = DAmp[1]+1endif//=/ Decompte GlobalAmp = UAmp+DAmpif Amp < Amp[1]-1 thenAmp = Amp[Amp]-AmpendifVRange = 0if TrDL = TrDL[1] thenVRange = VRange[1]+1endif//=/ Decompte AmplitudeOAmp = (Amp-VRange)-VRangeif OAmp < 0 thenOAmp = 0endifif OAmp < OAmp[1]-1 thenOAmp = OAmp[1]-1endifif OAmp > OAmp[1]+1 thenOAmp = OAmp[1]+1endif//=/ Decompte finalif VRange > OAmp thenOAmp = VRangeendifP = round(OAmp)if forex then//=/ VolatilityVolatilite = (((XURange*0.5)-(XDRange*0.5))*10000)XV = round(Volatilite)drawtext(" #XV# Volatility",barindex[1],TrDL[1]+(XURange[1]-TrDL[1]),Dialog,Bold,12) coloured(0,0,0)//=/ Amplitudeif close > TrDL thenAmplitude = (close-Lowest[P](low))*10000elsif close < TrdL thenAmplitude = (Highest[P](high)-close)*10000endifXA = round(Amplitude)drawtext(" #XA# Amplitude",barindex[1],TrDL[1]+((XURange[1]-TrDL[1])/2),Dialog,Bold,12) coloured(0,0,0)//=/ RapportRPP = (Amplitude-Volatilite)XR = round (RPP)if RPP > 0 thendrawtext(" #XR# Report",barindex[1],TrDL[1],Dialog,Bold,12) coloured(0,0,0)elsif RPP =< 0 thendrawtext(" #XR# Report",barindex[1],TrDL[1],Dialog,Bold,12) coloured(199,19,19)endifelse//=/ VolatilityVolatilite = ((XURange*0.5)-(XDRange*0.5))XV = round(Volatilite)drawtext(" #XV# Volatility",barindex[1],TrDL[1]+(XURange[1]-TrDL[1]),Dialog,Bold,12) coloured(0,0,0)//=/ Amplitudeif close > TrDL thenAmplitude = close-Lowest[P](low)elsif close < TrdL thenAmplitude = Highest[P](high)-closeendifXA = round(Amplitude)drawtext(" #XA# Amplitude",barindex[1],TrDL[1]+((XURange[1]-TrDL[1])/2),Dialog,Bold,12) coloured(0,0,0)//=/ RapportRPP = (Amplitude-Volatilite)XR = round (RPP)if RPP > 0 thendrawtext(" #XR# Report",barindex[1],TrDL[1],Dialog,Bold,12) coloured(0,0,0)elsif RPP =< 0 thendrawtext(" #XR# Report",barindex[1],TrDL[1],Dialog,Bold,12) coloured(199,19,19)endifendifreturn06/17/2021 at 8:16 AM #171913J’ai échangé le titre du sujet avec quelque chose de plus descriptif “aide indicateur” n’étant pas suffisamment explicite.
Il faut simplement changer la première ligne du code avec :
1defparam drawonlastbaronly = falseou la supprimer, ça évite que les objets graphiques ne soient tracés que sur le dernier chandelier.
06/17/2021 at 12:40 PM #171928 -
AuthorPosts
Find exclusive trading pro-tools on