本文へ移動
AlertaChartAlertaScript / docs
AlertaScript / 時間とセッション
このページの内容仕組み実践コード例

AlertaScript / ドキュメント

時間とセッション

市場の文脈を正しく扱う。

仕組み

time() は時間足、セッション、タイムゾーンで絞り込みます。セッション外は na になる場合があります。

実践

夏時間には名前付きタイムゾーンを使います。延長取引データは配信元に依存し、表示の時刻帯とは別に考えます。

コード例

AlertaScript
indicator("Session", overlay=true)inSession = not na(time(timeframe.period, "0930-1600:23456", "America/New_York"))bgcolor(inSession ? color.new(color.blue, 92) : na)
AlertaScript

結果が見つかりません。

名前、別名、キーワードで検索できます。