ticker

ticker.heikinashi #

平均足の値を要求するティッカー識別子を作成する。

ticker.heikinashi(symbol)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
symbol (simple string)シンボルティッカー識別子。
#
heikinashi_close = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close)

heikinashi_aapl_60_close = request.security(ticker.heikinashi("AAPL"), "60", close)
関連 #

syminfo.tickerid, syminfo.ticker, request.security, ticker.renko, ticker.linebreak, ticker.kagi, ticker.pointfigure

ticker.kagi #

カギ足の値を要求するティッカー識別子を作成する。

ticker.kagi(symbol, reversal)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
symbol (simple string)シンボルティッカー識別子。
reversal (simple int/float)転換量(絶対価格値)。
#
kagi_tickerid = ticker.kagi(syminfo.tickerid, 3)
kagi_close = request.security(kagi_tickerid, timeframe.period, close)
plot(kagi_close)
関連 #

syminfo.tickerid, syminfo.ticker, request.security, ticker.heikinashi, ticker.renko, ticker.linebreak, ticker.pointfigure

ticker.linebreak #

新値足の値を要求するティッカー識別子を作成します。

ticker.linebreak(symbol, number_of_lines)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
symbol (simple string)シンボルティッカー識別子。
number_of_lines (simple int)ラインの数。
#
linebreak_tickerid = ticker.linebreak(syminfo.tickerid, 3)
linebreak_close = request.security(linebreak_tickerid, timeframe.period, close)
plot(linebreak_close)
関連 #

syminfo.tickerid, syminfo.ticker, request.security, ticker.heikinashi, ticker.renko, ticker.kagi, ticker.pointfigure

ticker.modify #

スクリプトの追加データを要求するティッカー識別子を作成する。

ticker.modify(tickerid, session, adjustment)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
tickerid (simple string)Symbol name with exchange prefix, e.g. ‘BATS:MSFT’, ‘NASDAQ:MSFT’ or tickerid with session and adjustment from the ticker.new function.
session (simple string)セッションタイプ。オプション引数。可能な値は session.regular, session.extended です。現在のチャートのセッションタイプは syminfo.session です。セッションが指定されていない場合は syminfo.session の値が使用されます。
adjustment (simple string)調整の種類。オプション引数。可能な値は adjustment.none, adjustment.splits, adjustment.dividends です。調整が指定されていない場合は、デフォルトの調整値が用いられます(銘柄により異なります)。
#
//@version=5
indicator("ticker_modify", overlay=true)
t1 = ticker.new(syminfo.prefix, syminfo.ticker, session.regular, adjustment.splits)
c1 = request.security(t1, "D", close)
t2 = ticker.modify(t1, session.extended)
c2 = request.security(t2, "2D", close)
plot(c1)
plot(c2)
関連 #

syminfo.tickerid, syminfo.ticker, syminfo.session, session.extended, session.regular, ticker.heikinashi, adjustment.none, adjustment.splits, adjustment.dividends

ticker.new #

スクリプトの追加データを要求するティッカー識別子を作成する。

ticker.new(prefix, ticker, session, adjustment)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
prefix (simple string)Exchange prefix。例えば、‘BATS’、‘NYSW’、‘NASDAQ’です。主なExchange prefixは syminfo.prefixです。
ticker (simple string)ティッカー名。例えば、‘AAPL’, ‘MSFT’, ‘EURUSD’。メイン系列のティッカー名はsyminfo.tickerです。
session (simple string)セッションタイプ。オプション引数。可能な値は session.regular, session.extended です。現在のチャートのセッションタイプは syminfo.session です。セッションが指定されていない場合は syminfo.session の値が使用されます。
adjustment (simple string)調整の種類。オプション引数。可能な値は adjustment.none, adjustment.splits, adjustment.dividends です。調整が指定されていない場合は、デフォルトの調整値が用いられます(銘柄により異なります)。
#
indicator("ticker.new fun", overlay=true) 
t = ticker.new(syminfo.prefix, syminfo.ticker, session.regular, adjustment.splits)
t2 = ticker.heikinashi(t)
c = request.security(t2, timeframe.period, low, true)
plot(c, style=plot.style_linebr)
備考 #

You may use return value of ticker.new function as input argument for ticker.heikinashi, ticker.renko, ticker.linebreak, ticker.kagi, ticker.pointfigure functions.

関連 #

syminfo.tickerid, syminfo.ticker, syminfo.session, session.extended, session.regular, ticker.heikinashi, adjustment.none, adjustment.splits, adjustment.dividends

ticker.pointfigure #

ポイント&フュイギュア値を要求するティッカー識別子を作成する。

ticker.pointfigure(symbol, source, style, param, reversal)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
symbol (simple string)シンボルティッカー識別子。
source (simple string)ポイント&フィギュアを計算するソース。可能な値は ‘hl’, ‘close’ です。
style (simple string)ボックスサイズ適用法:‘ATR’、‘従来型’
param (simple int/float)ATR Length if style が ‘ATR’ の場合にはATRの期間、 style が ‘Traditional’ の場合にはボックスサイズ。
reversal (simple int)転換数。
#
pnf_tickerid = ticker.pointfigure(syminfo.tickerid, "hl", "Traditional", 1, 3)
pnf_close = request.security(pnf_tickerid, timeframe.period, close)
plot(pnf_close)
関連 #

syminfo.tickerid, syminfo.ticker, request.security, ticker.heikinashi, ticker.renko, ticker.linebreak, ticker.kagi

ticker.renko #

練行値を要求するティッカー識別子を作成する。

ticker.renko(symbol, style, param)  simple string
戻り値 #

String value of ticker id, that can be supplied to request.security function.

引数 #
symbol (simple string)シンボルティッカー識別子。
style (simple string)ボックスサイズ適用法:‘ATR’、‘従来型’
param (simple int/float)ATR Length if style が ‘ATR’ の場合にはATRの期間、 style が ‘Traditional’ の場合にはボックスサイズ。
#
renko_tickerid = ticker.renko(syminfo.tickerid, "ta.atr", 10)
renko_close = request.security(renko_tickerid, timeframe.period, close)
plot(renko_close)
関連 #

syminfo.tickerid, syminfo.ticker, request.security, ticker.heikinashi, ticker.linebreak, ticker.kagi, ticker.pointfigure

© - 2021 - TradingViewの教科書