True FVG PIne to Proreal

Forums ProRealTime English forum ProBuilder support True FVG PIne to Proreal

Viewing 5 posts - 1 through 5 (of 5 total)
  • #243536
    Hello! 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.0
    fvg_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) :na
    fvg_down_gap = options != “FTR” and close[1] < open[1] ? low[2] – high : 0.0
    fvg_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) :na
    barcolor(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)
    #243545
    JS

    There is a Fair Value Gap (FVG) available in the library…
    https://www.prorealcode.com/prorealtime-indicators/fvg-fair-value-gap-indicator/

    2 users thanked author for this post.
    #243551
    3 users thanked author for this post.
    #243568

    Thank you!

    #243569

    Thank you!!

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login