TDI Trader Dynamic Index
Forums › ProRealTime forum Français › Support ProBuilder › TDI Trader Dynamic Index
- This topic has 3 replies, 2 voices, and was last updated 2 years ago by supertiti.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
10/31/2021 at 3:03 PM #180662
Bonjour à tous,
Est-il possible de créer un indicateur qui nous retourne les divergences baissières et haussières sous forme d’histogrammes rouges et verts d’après l’indicateur
de Nicolas ?
Ici vous avez plus d’info sur le fonctionnement du TDI :
https://www.tradingforexsp.com/metodo-market-maker
En bas de page dans secretos TDI MMM vous avez un tuto en Anglais.
TDI1234567891011121314151617181920//parameters// lengthRSI = 13// lengthband = 34// lengthrsipl = 2// lengthtradesl = 7r = rsi[lengthrsi](close)ma = average[lengthband](r)offs = (1.6185 * std[lengthband](r))up = ma+offsdn = ma-offsmid = (up+dn)/2mab = average[lengthrsipl](r)mbb = average[lengthtradesl](r)lineup = 68linemid = 50linedown = 32RETURN lineup as "line up", linemid as "line mid", linedown as "line down", up coloured(0,238,238) as "up", dn coloured(0,238,238) as "dn", mid coloured(255,165,0) as "mid", mab coloured(0,255,0), mbb coloured(255,0,0)11/01/2021 at 11:11 AM #18073711/01/2021 at 1:46 PM #18074211/01/2021 at 3:51 PM #180751J’ai fais ça mais j’ai des doutes cela n’a pas trop l’air effectif ?!
DIVERGENCES TDI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495// DIVERGENCES TDI TRADER DYNAMIC INDEX by Nicolas modifié DID// TDI by Nicolas//parameters// lengthRSI = 13 perso =12lengthband = 34// lengthrsipl = 2lengthtradesl = 7r = rsi[lengthrsi](close)ma = average[lengthband](r)offs = (1.6185 * std[lengthband](r))up = ma+offsdn = ma-offsmid = (up+dn)/2mab = average[lengthrsipl](r)mbb = average[lengthtradesl](r)lineup = 68linemid = 50linedown = 32//RETURN lineup as "line up", linemid as "line mid", linedown as "line down", up //coloured(0,238,238) as "up", dn coloured(0,238,238) as "dn", mid coloured(255,165,0) as //"mid", mab coloured(0,255,0), mbb coloured(255,0,0)////////////////////////////////////////////////////////////////////////////////////////PRC_AnotherRSIdivergences | indicator //25.02.2019//Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge// --- settingsTDIp=12 //TDI period perso = 12obLevel=68 //overbought levelosLevel=32 //oversold levelminimalBars=5 //minimal count of bars where TDI is ob or os// --- end of settings// irsi = rsi[RSIp]itdi = mab[TDIp]ob = itdi>obLevelos = itdi<osLevelif ob thenif not ob[1] thenmaxmab = 0maxprice = 0firstobbar = barindexendifmaxtdi=max(maxmab,itdi)maxprice=max(maxprice,high)if maxtdi<>maxtdi[1] thenmaxtdibar=barindexendifendifif os thenif not os[1] thenmintdi = 100minprice = close*100firstosbar = barindexendifmintdi=min(mintdi,itdi)minprice=min(minprice,low)if mintdi<>mintdi[1] thenmintdibar=barindexendifendifdivsell=0if itdi crosses under obLevel then//verif divergencediv = maxprice>oldmaxprice and maxtdi<oldmaxtdi and (barindex-firstobbar)>=minimalBarsif div thendrawsegment(oldmaxtdibar,oldmaxtdi,maxtdibar,maxtdi) coloured(200,0,0)drawarrowdown(maxtdibar,maxtdi) coloured(200,0,0)divsell=osLevelendifoldmaxtdi = maxtdioldmaxprice = maxpriceoldmaxtdibar = maxtdibarendifdivbuy=0if itdi crosses over osLevel then//verif divergencediv = minprice<oldminprice and mintdi>oldmintdi and (barindex-firstosbar)>=minimalBarsif div thendrawsegment(oldmintdibar,oldmintdi,mintdibar,mintdi) coloured(0,200,0)drawarrowup(mintdibar,mintdi) coloured(0,200,0)divbuy=osLevelendifoldmintdi = mintdioldminprice = minpriceoldmintdibar = mintdibarendifreturn itdi style(line,2) as "TDI",obLevel coloured(168,168,168) style(dottedline,1) as "overbought level", osLevel coloured(168,168,168) style(dottedline,1) as "oversold level", divsell coloured(200,0,0) style(histogram) as "sell divergence", divbuy coloured(0,200,0) style(histogram) as "buy divergence"//////////////////////////////////////////////////////////////////////////////////////////////////////// -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)