Tâche terminée
Temps d'exécution 2 minutes
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Commentaires du client
Всё отлично.
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Commentaires de l'employé
Благодарен за заказ. Обращайтесь. Любую вашу задачу выполню качественно.
Spécifications
Конвертировать готовый скрипт из программы TradingView в MT5. Индикатор небольшой - контрольные точки разворота. Цель конвертации - изучение исторических данных по работе данного индикатора на графике. (Сервис TradingView предоставляет данные лишь за 2 года на необходимом таймфрейме) Сам скрипт находится в открытом доступе. Его я закрепляю ниже.
//@version=3
//@version=3
study(title="Pivots H/L", shorttitle="PHL", overlay=true)
ShowPivots = input(false,title="Show Pivot Points")
pvtLenL = input(10,minval=1,title="Pivot Length Left Hand Side")
pvtLenR = input(10,minval=1,title="Pivot Length Right Hand Side")
ShowSRLevels = input(true,title="Show S/R Level Extensions")
ShowPivotLabels = input(false)
maxLvlLen = input(10,minval=0, title="Maximum S/R Level Extension Length")
pvthi = pivothigh(pvtLenL,pvtLenR)
pvtlo = pivotlow(pvtLenL,pvtLenR)
gc=#dddddd
plotchar(ShowPivots and not ShowPivotLabels? pvthi[1] :na, title='High Pivot *', location=location.abovebar, color=green, offset=-pvtLenR-1,transp=0,size=size.auto)
plotchar(ShowPivots and not ShowPivotLabels? pvtlo[1] :na, title='Low Pivot *', location=location.belowbar, color=red, offset=-pvtLenR-1,transp=0,size=size.auto)
plotshape(ShowPivotLabels? pvthi[1]: na, title='Pivot High Label', style=shape.labeldown, location=location.abovebar, color=gc, text="[P.H]", textcolor=green, offset=-pvtLenR-1,transp=0)
plotshape(ShowPivotLabels? pvtlo[1]: na, title='Pivot Low Label', style=shape.labelup, location=location.belowbar, color=gc, text="[P.L]", textcolor=red, offset=-pvtLenR-1,transp=0)
counthi = 0.0
counthi := pvthi[1] ? 0 : nz(counthi[1])+1
countlo = 0.0
countlo := pvtlo[1] ? 0 : nz(countlo[1])+1
pvthis = 0.0
pvthis := pvthi[1] ? high[pvtLenR+1] : pvthis[1]
pvtlos = 0.0
pvtlos := pvtlo[1] ? low[pvtLenR+1] : pvtlos[1]
hipc = (pvthis != pvthis[1]) ? na : green
lopc = (pvtlos != pvtlos[1]) ? na : red
h2l= (pvthis+pvtlos)/2
plot(ShowSRLevels and (maxLvlLen==0 or counthi<maxLvlLen)? pvthis : na, color=hipc, transp=30, linewidth=2, offset=-pvtLenR-1, title="Top Levels", trackprice=false)
plot(ShowSRLevels and (maxLvlLen==0 or countlo<maxLvlLen)? pvtlos : na, color=lopc, transp=30, linewidth=2, offset=-pvtLenR-1, title="Bottom Levels", trackprice=false)
//plot( h2l, color= purple, transp=0, linewidth=1, title="HLine", style=circles)
rl=100
ds=1000
rd=1/syminfo.mintick
irl=close * rd
irm=irl % rl
r=(irm>=rl/2) ? rl : 0
r100=(irl-irm+r)/rd
wna=r100 != r100[1] ? na : r100
//fletodetected
pz=input(100, step=50,title='+/- от цены')
wna1=wna-pz/rd
wna2=wna+pz/rd
plot(wna1, transp=100, style=circles)
plot(wna2, transp=100, style=circles)
Répondu
1
Évaluation
Projets
571
36%
Arbitrage
64
20%
/
58%
En retard
147
26%
Gratuit
2
Évaluation
Projets
111
26%
Arbitrage
17
6%
/
71%
En retard
15
14%
Gratuit
3
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
4
Évaluation
Projets
931
47%
Arbitrage
301
59%
/
25%
En retard
123
13%
Travail
Informations sur le projet
Budget
30+ USD
Pour le développeur
27
USD
Délais
de 1 à 20 jour(s)