plot

plot

チャート上に一連のデータを描写します。

plot(series, title, color, linewidth, style, trackprice, transp, histbase, offset, join, editable, show_last, display) → plot

plot(high+low, title='Title', color=#00ffaa, linewidth=2, style=plot.style_area, transp=70, offset=15, trackprice=true)

// You may fill the background between any two plots with a fill() function:
p1 = plot(open)
p2 = plot(close)
fill(p1, p2, color=color.green)

戻り
fillで使用できる描写オブジェクト

引数
series (series) 描写されるデータ形式。 必須の引数。
title (const string) 描写の表題。
color (color) plotの色。’color=color.red’ や ‘color=#ff001a’ といった定数や ‘color = close >= open ? color.green : color.red’ の様な複雑な式を利用できます。オプション引数。
linewidth (input integer) Width of the plotted line. Default value is 1. Not applicable to every style.
style (input integer) 描画の種類。可能な値は plot.style_line, plot.style_stepline, plot.style_histogram, plot.style_cross, plot.style_area, plot.style_columns, plot.style_circles です。デフォルト値は plot.style_line です。
transp (input integer) Transparency of the plot. Possible values are from 0 (not transparent) to 100 (invisible). Optional argument.
trackprice (input bool) trueの場合、水平価格ラインには直近のインジケーター値のレベルが表示されます。デフォルトはfalseです。
histbase (input float) plot.style_histogram、plot.style_columns、または plot.style_area スタイルでプロットをレンダリングするときに、開始基点として考慮される価格値。デフォルトは 0.0 です。
offset (integer) 与えられた数のバーで描写を左または右に移動します。 デフォルトは0です。
join (input bool) trueの場合、描画ポイントが線で結合されます。スタイル plot.style_cross と plot.style_circles にのみ適用可能です。デフォルトはfalseです。
editable (const bool) trueの場合、描写されたスタイルはフォーマットダイアログで編集可能です。 デフォルトはtrueです。
show_last (input integer) 設定されている場合は、チャートにプロットする (最後のバーから過去の時点までの) バーの数を定義します。
display (const integer) plotの表示位置を制御します。利用可能な値は: display.none, display.all です。デフォルトは display.all です。

\ 最新情報をチェック /

コメントを残す

Pineスクリプト

前の記事

pivotlow
Pineスクリプト

次の記事

plotarrow