Conversión Doble Techo/Suelo
Forums › ProRealTime foro Español › Soporte ProBuilder › Conversión Doble Techo/Suelo
- This topic has 4 replies, 2 voices, and was last updated 3 weeks ago by
Maricarmen.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
01/12/2025 at 11:27 PM #242470
Buenas:
Paso indicador de Tradingview para su conversión a ProRealTime, si es posible.
Double Top/Bottom [AlgoAlpha]
Muchas gracias,
01/14/2025 at 4:23 PM #24255401/14/2025 at 8:14 PM #24257901/28/2025 at 11:40 AM #243155Buenas. Aquí lo tienes:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192//----------------------------------------------------------////----------------------------------------------------------//// inputs//----------------------------------------------------------//x=21 // time horizonsrc=closeonlysignals=0//----------------------------------------------------------////----------------------------------------------------------//limit1=average[100](abs(open-close))//Pivots lowif src > src[x] and lowest[x](src) > src[x] and src[x] < lowest[x](src)[x+1] then$pivoty[n+1] = src[x]$pivotx[n+1] = barindex[x]$pivotdir[n+1] = -1//drawpoint(barindex[x],src[x],2)coloured("red",180)n=n+1endif//Pivots highif src < src[x] and highest[x](src)<src[x] and src[x]>highest[x](src)[x+1] then$pivoty[n+1] = src[x]$pivotx[n+1] = barindex[x]$pivotdir[n+1] = 1//drawpoint(barindex[x],src[x],2)coloured("blue",180)n=n+1endif//----------------------------------------------------------//// Limit//----------------------------------------------------------//limit1=average[100](abs(open-close))//----------------------------------------------------------//////----------------------------------------------------------//if n>3 thenif n<>n[1] and $pivotdir[n]<0 and $pivotdir[n-1]>0 and $pivotdir[n-2]<0 and $pivotdir[n-3]>0 and abs(close[x]-$pivoty[n-2])<limit1 thentrigger=$pivoty[n]drawarrowup($pivotx[n],$pivoty[n])coloured("green")if onlysignals=0 thendrawsegment($pivotx[n-1],$pivoty[n-1],$pivotx[n],$pivoty[n])coloured("green")drawsegment($pivotx[n-1],$pivoty[n-1],$pivotx[n-2],$pivoty[n-2])coloured("green")drawsegment($pivotx[n-3],$pivoty[n-3],$pivotx[n-2],$pivoty[n-2])coloured("green")endifawaitingDBC=1Bthresh=$pivoty[n-1]Bthreshidx=$pivotx[n-1]endifif n<>n[1] and $pivotdir[n]>0 and $pivotdir[n-1]<0 and $pivotdir[n-2]>0 and$pivotdir[n-3]<0 and abs(close[x]-$pivoty[n-2])<limit1 thentrigger=$pivoty[n]drawarrowdown($pivotx[n],$pivoty[n])coloured("red")if onlysignals=0 thendrawsegment($pivotx[n-1],$pivoty[n-1],$pivotx[n],$pivoty[n])coloured("red")drawsegment($pivotx[n-1],$pivoty[n-1],$pivotx[n-2],$pivoty[n-2])coloured("red")drawsegment($pivotx[n-3],$pivoty[n-3],$pivotx[n-2],$pivoty[n-2])coloured("red")endifawaitingDTC=1Tthresh=$pivoty[n-1]Tthreshidx=$pivotx[n-1]endifendifif awaitingDBC and onlysignals=0 thenbarsDBC=barsDBC+1if close < bthresh and barsDBC>x thenawaitingDBC=0drawsegment(bthreshidx,bthresh,barindex,bthresh)coloured("green")style(dottedline)drawpoint(barindex,bthresh,3)coloured("orange")elsif close > bthresh thenawaitingDBC=0drawsegment(bthreshidx,bthresh,barindex,bthresh)coloured("green")style(dottedline)endifendifif awaitingDTC and onlysignals=0 thenbarsDTC=barsDTC+1if close > Tthresh and barsDTC>x thenawaitingDTC=0drawsegment(Tthreshidx,Tthresh,barindex,Tthresh)coloured("red")style(dottedline)drawpoint(barindex,Tthresh,3)coloured("orange")elsif close < Tthresh thenawaitingDTC=0drawsegment(Tthreshidx,Tthresh,barindex,Tthresh)coloured("red")style(dottedline)endifendif//----------------------------------------------------------//return01/28/2025 at 5:08 PM #243163Hola:
Acabo de verlo y voy a probarlo seguidamente, estoy seguro que va a ser bueno para todos.
Muchísimas gracias, de nuevo.
el foro
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
Find exclusive trading pro-tools on
Similar topics: