Conversion DMI OScillator
Forums › ProRealTime forum Français › Support ProBuilder › Conversion DMI OScillator
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by
Nicolas.
-
-
02/08/2019 at 10:14 PM #90912
Hello
Ci-joint code du DMI Oscillator vu sur Tradingview si il y a une bonne âme. Merci
Il est inspiré de cela: “The DMI Stochastic” by Barbara Star, PhD. Technical Analysis of Stocks & Commodities, January 2013.12345678910111213141516171819202122//DMI Oscillator// Wells Wilders MAwwma(l,p) =>wwma = (nz(wwma[1]) * (l - 1) + p) / l// InputsDMIlength = input(14)Avglength = input(2)// CalchiDiff = 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 - MinusDIcol = osc >= 0 ? #99EF0E : #FF0064// Plotsplot(osc,color=col, style=histogram, linewidth=2)plot(wwma(Avglength,osc), color=#0EAAEF,title="DI+")02/11/2019 at 5:24 PM #91085Pour les demandes de conversion de code d’autres plateformes de trading, merci de respecter les prérogatives de cette page la prochaine fois : Demande de conversion gratuite
Je m’y penche rapidement, dans la négative merci de me le rappeler vers la fin de semaine.
02/12/2019 at 1:41 PM #9118502/12/2019 at 3:41 PM #91197Il s’agit ni plus ni moins d’un stochastique appliqué au DMI selon cette description:
Le stochastique DMI utilise la formulation de base pour un oscillateur stochastique 10, 3, 3 trouvé dans la plupart des progiciels de trading, mais remplace le prix de clôture de la barre des prix par la valeur de l’oscillateur DMI à 10 périodes.
Donc rapidement on pourrait tester:
1234osc = stochastic[10,3](di[10])avg = average[3](osc)return osc style(histogram),avg style(line,2)(non testé)
02/12/2019 at 6:04 PM #91214A more complete and colorful version is now available here: DMI Stochastic Oscillator
02/13/2019 at 9:30 AM #9125402/13/2019 at 9:52 AM #91259I have entirely recoded the indicator with the help of a tradingview/pinescript code, and updated the library version: DMI Stochastic Oscillator
-
AuthorPosts
Find exclusive trading pro-tools on