parametrer les FVG
Forums › ProRealTime forum Français › Support plateforme ProRealTime › parametrer les FVG
- This topic has 18 replies, 3 voices, and was last updated 1 hour ago by
JS.
-
-
04/19/2025 at 7:03 PM #246117FVG + Median + Yellow BoldText1234567891011121314151617181920212223242526272829303132//@version=5//indicator("Fair Value Gap (FVG)", overlay=true)// ParametersfvgLookback = 2//input.int(1, title="Lookback (candle before and after)", minval=1)// Données des bougiesprevHigh = high[fvgLookback]prevLow = low[fvgLookback]nextHigh = high[0]nextLow = low[0]// Calcul du FVGbullishFVG = low > prevHighbearishFVG = high < prevLow// Affichage des FVGsIf bullishFVG thenDrawRectangle((BarIndex-fvgLookback),prevHigh,BarIndex,low)Coloured("Green",255)FillColor(0,50,0)Median=prevHigh+(Low-prevHigh)/2DrawSegment(BarIndex-fvgLookback,Median,BarIndex,Median)Coloured("Green")DrawText("#Median#",BarIndex-1,Median,SansSerif,Bold,16)Coloured("Yellow")EndIfIf bearishFVG thenDrawRectangle(BarIndex,High,(BarIndex-fvgLookback),prevLow)Coloured("Red",255)FillColor(50,0,0)Median=High+(prevLow-High)/2DrawSegment(BarIndex-fvgLookback,Median,BarIndex,Median)Coloured("Red")DrawText("#Median#",BarIndex-1,Median,SansSerif,Bold,16)Coloured("Yellow")EndIfReturn04/19/2025 at 7:04 PM #246119
voila ça donne ça.
//@version=5
//indicator(“Fair Value Gap (FVG)”, overlay=true)// Parameters
fvgLookback = 2//input.int(1, title=”Lookback (candle before and after)”, minval=1)// Données des bougies
prevHigh = high[fvgLookback]
prevLow = low[fvgLookback]
nextHigh = high[0]
nextLow = low[0]// Calcul du FVG
bullishFVG = low > prevHigh
bearishFVG = high < prevLow// Affichage des FVGs
If bullishFVG then
DrawRectangle((BarIndex-fvgLookback),prevHigh,BarIndex,low)Coloured(“YELLOW”,255)FillColor(0,0,250)
Median=prevHigh+(Low-prevHigh)/2
DrawSegment(BarIndex-fvgLookback,Median,BarIndex,Median)Coloured(“BLACK”)
DrawText(“#Median#”,BarIndex-1,Median,dialog,bold,15)
EndIfIf bearishFVG then
DrawRectangle(BarIndex,High,(BarIndex-fvgLookback),prevLow)Coloured(“YELLOW”,255)FillColor(0,0,250)
Median=High+(prevLow-High)/2
DrawSegment(BarIndex-fvgLookback,Median,BarIndex,Median)Coloured(“BLACK”)
DrawText(“#Median#”,BarIndex-1,Median,dialog,bold,15)
EndIfReturn
1 user thanked author for this post.
04/19/2025 at 7:18 PM #24612104/19/2025 at 7:25 PM #246122 -
AuthorPosts