Sto DMI
Forums › ProRealTime forum Français › Support ProBuilder › Sto DMI
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by
Plscap.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
08/28/2017 at 10:31 PM #44786
Bonjour à tous,
Est ce que par hasard l’un d’entre vous aurais la possibilité de convertir ce code repiqué sur tradingview, pour PRT?
Merci beaucoup
123456789101112131415161718192021222324252627282930313233343536373839404142study(title="StohDMI", shorttitle="StohDMI", overlay=false)wwma(l,p) =>wwma = (nz(wwma[1]) * (l - 1) + p) / lDMIlength = input(10, title = "Длина DMI")Stolength = input(6, title = "Длина DMI Stochastic")os = input (10, title = "Перепроданность")ob = input (90, title = "Перекупленность")hiDiff = high - high[1]loDiff = low[1] - lowplusDM = (hiDiff > loDiff) and (hiDiff > 0) ? hiDiff : 0minusDM = (loDiff > hiDiff) and (loDiff > 0) ? loDiff : 0ATR = wwma(DMIlength, tr)PlusDI = 100 * wwma(DMIlength,plusDM) / ATRMinusDI = 100 * wwma(DMIlength,minusDM) / ATRosc = PlusDI - MinusDIhi = highest(osc, Stolength)lo = lowest(osc, Stolength)Stoch = sum((osc-lo),Stolength) / sum((hi-lo),Stolength) *100plot(Stoch, color = black, title = 'Stochastic', linewidth = 2, style = line)crossUp = Stoch[1] < os and Stoch > os ? 1 : 0crossDo = Stoch[1] > ob and Stoch < ob ? 1 : 0plot (ob, color = gray, linewidth = 1, title = 'Купить')plot (os, color = gray, linewidth = 1, title = 'Продать')plotchar(crossUp, title="Вверх", char='⇑', location=location.bottom, color=green, transp=0)plotchar(crossDo, title="Вниз",char='⇓', location=location.top, color=red, transp=0)line2 = hline(90, linestyle=dotted, color=black)line1 = hline(45, color=black)line0 = hline(10, linestyle=dotted, color=black)fill(line2, line0)08/30/2017 at 12:37 PM #4491909/05/2017 at 10:12 AM #45459Bonjour Nicolas et merci pour ton retour,
Bon en effet ce n’est pas vraiment utile que ça, donc pas la peine à mon sens de se lancer la dedans, je pense
que ça ne servira pas à la communauté 🙂
Petite parenthèse, j’ai fait un post hier pour le Semafor, mais je ne retrouve pas ce post, est ce qu’il aurait été supprimé?
Je te remercie 🙂
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)