PINE LIBRARY
업데이트됨 fsl_helpers

Library "fsl_helpers"
A library with function helpers for FSL script family, including functions for plotting, formatting, etc.
version=6
plot_width_get()
Returns the internal panel width used by the helper library.
Returns: int Width of the custom plot panel.
plot_x_axis(x, inc, theme)
Draws a vertical tick and label on the custom X-axis of the panel.
Parameters:
x (int): X-axis coordinate in panel space.
inc (float): Label value displayed below the tick.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_y_axis(yy, min, max, theme, plot_mult)
Draws a horizontal Y-axis guide line and corresponding price label.
Converts the normalized panel coordinate to the actual price level.
Parameters:
yy (float): Normalized Y coordinate in panel space.
min (float): Minimum value of the plotted price range.
max (float): Maximum value of the plotted price range.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_scale(y, min, max)
Converts a price value into the normalized panel scale [-1, 1] used
by the forward-curve plotting area.
Parameters:
y (float): Price value to scale.
min (float): Minimum value of the plotted price range.
max (float): Maximum value of the plotted price range.
Returns: float Normalized Y coordinate for plotting.
plot_scatter(x, y, max, min, col, s, tiptool, theme, plot_mult)
Draws a scatter-point marker in the forward-curve panel.
Optionally attaches a tooltip containing symbol, time, and price.
Parameters:
x (int): X index position within the curve.
y (float): Price value of the point.
max (float): Maximum value of the plotted price range.
min (float): Minimum value of the plotted price range.
col (color): Marker color.
s (string): Marker size.
tiptool (string): Text shown in the tooltip.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_line(x, y, max, min, x1, y1, col, w, sty, plot_mult)
Draws a line segment between two curve points in the panel.
Used to connect consecutive futures contracts in the forward curve.
Parameters:
x (int): X position of the ending point.
y (float): Price value of the ending point.
max (float): Maximum value of the plotted price range.
min (float): Minimum value of the plotted price range.
x1 (int): X position of the starting point.
y1 (float): Price value of the starting point.
col (color): Line color.
w (int): Line width.
sty (string): Line style.
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_legend(y, col, sty, txt, theme, plot_mult)
Draws a legend entry composed of a marker, line sample, and label.
Parameters:
y (float): Y position of the legend row.
col (color): Legend color.
sty (string): Line style used for the sample segment.
txt (string): Legend label text.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_remove_all_boxes()
Deletes all boxes currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_remove_all_labels()
Deletes all labels currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_remove_all_lines()
Deletes all lines currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_main_boxes(main_title, theme, plot_mult)
Draws the main panel boxes for the forward-curve display, including
frame, title area, legend area, and timeframe header.
Parameters:
main_title (string): Main title for the plot
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
A library with function helpers for FSL script family, including functions for plotting, formatting, etc.
version=6
plot_width_get()
Returns the internal panel width used by the helper library.
Returns: int Width of the custom plot panel.
plot_x_axis(x, inc, theme)
Draws a vertical tick and label on the custom X-axis of the panel.
Parameters:
x (int): X-axis coordinate in panel space.
inc (float): Label value displayed below the tick.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_y_axis(yy, min, max, theme, plot_mult)
Draws a horizontal Y-axis guide line and corresponding price label.
Converts the normalized panel coordinate to the actual price level.
Parameters:
yy (float): Normalized Y coordinate in panel space.
min (float): Minimum value of the plotted price range.
max (float): Maximum value of the plotted price range.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_scale(y, min, max)
Converts a price value into the normalized panel scale [-1, 1] used
by the forward-curve plotting area.
Parameters:
y (float): Price value to scale.
min (float): Minimum value of the plotted price range.
max (float): Maximum value of the plotted price range.
Returns: float Normalized Y coordinate for plotting.
plot_scatter(x, y, max, min, col, s, tiptool, theme, plot_mult)
Draws a scatter-point marker in the forward-curve panel.
Optionally attaches a tooltip containing symbol, time, and price.
Parameters:
x (int): X index position within the curve.
y (float): Price value of the point.
max (float): Maximum value of the plotted price range.
min (float): Minimum value of the plotted price range.
col (color): Marker color.
s (string): Marker size.
tiptool (string): Text shown in the tooltip.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_line(x, y, max, min, x1, y1, col, w, sty, plot_mult)
Draws a line segment between two curve points in the panel.
Used to connect consecutive futures contracts in the forward curve.
Parameters:
x (int): X position of the ending point.
y (float): Price value of the ending point.
max (float): Maximum value of the plotted price range.
min (float): Minimum value of the plotted price range.
x1 (int): X position of the starting point.
y1 (float): Price value of the starting point.
col (color): Line color.
w (int): Line width.
sty (string): Line style.
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_legend(y, col, sty, txt, theme, plot_mult)
Draws a legend entry composed of a marker, line sample, and label.
Parameters:
y (float): Y position of the legend row.
col (color): Legend color.
sty (string): Line style used for the sample segment.
txt (string): Legend label text.
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
plot_remove_all_boxes()
Deletes all boxes currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_remove_all_labels()
Deletes all labels currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_remove_all_lines()
Deletes all lines currently drawn by the script.
Useful before redrawing the custom panel.
Returns: void
plot_main_boxes(main_title, theme, plot_mult)
Draws the main panel boxes for the forward-curve display, including
frame, title area, legend area, and timeframe header.
Parameters:
main_title (string): Main title for the plot
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
plot_mult (int): Horizontal spacing multiplier used by the panel.
Returns: void
릴리즈 노트
v2Updated:
plot_x_axis(x, axis_text, theme)
Draws a vertical tick and label on the custom X-axis of the panel.
Parameters:
x (int): X-axis coordinate in panel space.
axis_text (string)
theme (Theme type from QuantNomad/fsl_theme/3): Theme used for the chart
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
Quant Developer | Pine Script v6 | Python & R
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
Quant Developer | Pine Script v6 | Python & R
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
12+ yrs system. trading, hedge fund experience
Indicators, strategies & screeners
Futures & options
💼 Hire/Consulting:
qntly.com/hire
🎓 Pine Code With AI:
qntly.com/pineai
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.