FVG con volume
Forums › ProRealTime forum Italiano › Supporto ProBuilder › FVG con volume
Viewing 2 posts - 1 through 2 (of 2 total)
-
-
10/13/2025 at 6:18 PM #252557
Ivan buona sera,
qualche giorno fa ti ho chiesto la traduzione dell’indicatore Fair Value Gap MS , che gentilmente hai postato, però curiosando su Trading View ne ho trovato uno più completo, che mi sembra interessante.
Puoi gentilmente tradurlo?
Grazie
https://it.tradingview.com/script/qujivabv-FVG-Volume-Profile-ChartPrime/
10/16/2025 at 11:16 AM #252665Buongiorno, non è possibile rappresentare i gap in un timeframe superiore (ad esempio 1 ora) e calcolare il volume profile in un timeframe inferiore (ad esempio 1 minuto)…
Ti passo una versione ridotta. Calcola i FVG e il volume delle 3 candele. Inoltre, calcola il punto medio del gap.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107// FVG and Volume// Versión 2.0 - 20241016// -----------------------------------------------// CONFIGURACIÓN DE USUARIO// -----------------------------------------------showBox = 20 // Número de últimos FVGs a mostrarextendBars = 50 // Extensión del dibujo hacia el futurogapfilter = 0.5 // Filtro para el tamaño del gap// -- Colores y Estilos --bullColorR = 29bullColorG = 163bullColorB = 112bearColorR = 188bearColorG = 37bearColorB = 214fvgOpacity = 200// -----------------------------------------------// DETECCIÓN DE FVGS// -----------------------------------------------// Normalización del tamaño del gapstdevBullish = STD[200](low - high[2])IF stdevBullish > 0 THENbullishgapsize = (low - high[2]) / stdevBullishELSEbullishgapsize = 0ENDIFstdevBearish = STD[200](low[2] - high)IF stdevBearish > 0 THENbearishgapsize = (low[2] - high) / stdevBearishELSEbearishgapsize = 0ENDIF// Condiciones para detectar los FVGsbullishgapcondition = (low > high[2]) AND (high[1] > high[2]) AND (bullishgapsize > gapfilter)bearishgapcondition = (high < low[2]) AND (low[1] < low[2]) AND (bearishgapsize > gapfilter)// Almacenar FVG Alcista en arraysIF bullishgapcondition THENm = m + 1$BoxTop[m] = low$BoxBottom[m] = high[2]$BoxBarLeft[m] = barindex$BoxBarRight[m] = barindex$BoxVol[m] = volume + volume[1] + volume[2]$BoxType[m] = 1$BoxMitigated[m] = 0ENDIF// Almacenar FVG Bajista en arraysIF bearishgapcondition THENm = m + 1$BoxTop[m] = low[2]$BoxBottom[m] = high$BoxBarLeft[m] = barindex$BoxBarRight[m] = barindex$BoxVol[m] = volume + volume[1] + volume[2]$BoxType[m] = -1$BoxMitigated[m] = 0ENDIF// -----------------------------------------------// DIBUJO Y GESTIÓN (Solo en la última barra)// -----------------------------------------------IF islastbarupdate THEN// --- Procesar y dibujar FVGs Alcistas ---FOR i = m DOWNTO 1 DO// Comprobar si el FVG ha sido mitigadoIF $BoxMitigated[i] = 0 and $BoxType[i]>0 THENFOR j = $BoxBarLeft[i] + 1 TO barindex DOIF low[barindex-j] < $BoxBottom[i] THEN$BoxMitigated[i] = 1$BoxBarRight[i] = barindex[barindex-j]BREAKENDIFNEXTelsif $BoxMitigated[i] = 0 and $BoxType[i]<0 thenFOR j = $BoxBarLeft[i] + 1 TO barindex DOIF high[barindex-j] > $BoxTop[i] THEN$BoxMitigated[i] = 1$BoxBarRight[i] = barindex[barindex-j]BREAKENDIFNEXTENDIFnext// Dibujar solo los FVGs solicitados por el usuariofor i=m downto m-showBox dopocLevel = ($BoxTop[i] + $BoxBottom[i]) / 2vol = $BoxVol[i]if $BoxType[i]>0 thenIF $BoxMitigated[i] = 0 THEN // No mitigadoDRAWRECTANGLE($BoxBarLeft[i], $BoxTop[i], barindex + extendBars, $BoxBottom[i]) COLOURED(bullColorR, bullColorG, bullColorB, fvgOpacity)fillcolor(bullColorR, bullColorG, bullColorB, 45)DRAWSEGMENT($BoxBarLeft[i], pocLevel, barindex + extendBars, pocLevel) STYLE(DOTTEDLINE, 2) COLOURED(bullColorR, bullColorG, bullColorB)DRAWTEXT("#vol#", barindex + extendBars+5, pocLevel, Dialog, Standard, 10) COLOURED(bullColorR, bullColorG, bullColorB)ELSE // MitigadoDRAWRECTANGLE($BoxBarLeft[i], $BoxTop[i], $BoxBarRight[i], $BoxBottom[i]) COLOURED(bullColorR, bullColorG, bullColorB, fvgOpacity / 2)fillcolor(bullColorR, bullColorG, bullColorB, 15)ENDIFelseIF $BoxMitigated[i] = 0 THEN // No mitigadoDRAWRECTANGLE($BoxBarLeft[i], $BoxTop[i], barindex + extendBars, $BoxBottom[i]) COLOURED(bearColorR, bearColorG, bearColorB, fvgOpacity)fillcolor(bearColorR, bearColorG, bearColorB, 45)DRAWSEGMENT($BoxBarLeft[i], pocLevel, barindex + extendBars, pocLevel) STYLE(DOTTEDLINE, 2) COLOURED(bearColorR, bearColorG, bearColorB)DRAWTEXT("#vol#", barindex + extendBars+5, pocLevel, Dialog, Standard, 10) COLOURED(bearColorR, bearColorG, bearColorB)ELSE // MitigadoDRAWRECTANGLE($BoxBarLeft[i], $BoxTop[i], $BoxBarRight[i], $BoxBottom[i]) COLOURED(bearColorR, bearColorG, bearColorB, fvgOpacity / 2)fillcolor(bearColorR, bearColorG, bearColorB, 15)ENDIFendifnextENDIFRETURN1 user thanked author for this post.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
Find exclusive trading pro-tools on
Similar topics: