True FVG PIne to Proreal
Forums › ProRealTime English forum › ProBuilder support › True FVG PIne to Proreal
- This topic has 4 replies, 3 voices, and was last updated 5 months ago by
lukapex.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
02/06/2025 at 12:38 AM #243536Hello! Here is my pinescript code for FVG. I would like to have it converted to proreal. Thank You in advance! Here is the picture and how it looks.
//@version=5
indicator(‘Moj FVG’, overlay = true, max_boxes_count = 500)// === Groups ===group_options = “Options”group_fvg_color = “FVG Color Settings”// === Inputs ===options = input.string(“ALL”, title = “Options”, options = [“ALL”, “FTR”, “FVG”], group = group_options)mark_type = input.string(“Box”, title = “Mark Type”, options = [“ALL”, “Box”, “Bar Color”], group = group_options)fvg_border_color = input.color(color.yellow, “Border Color”, group = group_fvg_color)fvg_bg_color = input.color(color.new(color.yellow, 90), “Bg Color”, group = group_fvg_color)fvg_bar_color = input.color(color.yellow, “Bar Color”, group = group_fvg_color)// === FVG ===fvg_up_gap = options != “FTR” and close[1] > open[1] ? low – high[2] : 0.0fvg_up_box=fvg_up_gap>0andmark_type!=”Bar Color”?box.new(left=bar_index[2],top=high[2],right=bar_index,bottom=low,border_color=fvg_border_color,bgcolor=fvg_bg_color) :nafvg_down_gap = options != “FTR” and close[1] < open[1] ? low[2] – high : 0.0fvg_down_box=fvg_down_gap>0andmark_type!=”Bar Color”?box.new(left=bar_index[2],top=low[2],right=bar_index,bottom=high,border_color=fvg_border_color,bgcolor=fvg_bg_color) :nabarcolor(fvg_up_gap > 0 and mark_type != “Box” ? fvg_bar_color : na, offset = -1)barcolor(fvg_down_gap > 0 and mark_type != “Box” ? fvg_bar_color : na, offset = -1)02/06/2025 at 10:08 AM #243545There is a Fair Value Gap (FVG) available in the library…
https://www.prorealcode.com/prorealtime-indicators/fvg-fair-value-gap-indicator/02/06/2025 at 1:31 PM #243551FVG12345678910FVGd = Low[2]-High > 0FVGm = Low-High[2] > 0If FVGd xor FVGm theny1 = FVGd*Low[2] + FVGm*High[2]y2 = FVGd*High + FVGm*LowDrawrectangle(barindex-2,y1, barindex,y2) style(line,1) Coloured("grey",30) bordercolor("yellow",200)EndifReturn02/06/2025 at 9:58 PM #24356802/06/2025 at 9:58 PM #243569 -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)