SNP420:Trade_Session_Indicator(TSI) v1

SNP_420 · study · 13 行 · 点赞 4 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

// This Pine Script(R) code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// (c) SNP420
// Author: SNP420
// Company: Finexus s.r.o.
 
//@version=6
indicator("SNP420:Trade_session_indicator", overlay = true)
 
sess = input.session("0800-1600:23456", "Session (Prague time, Mon-Fri)")
col  = input.color(color.new(#ffffff, 68), "Color")
 
inSess = timeframe.isintraday and not na(time(timeframe.period, sess, "Europe/Prague"))
bgcolor(inSess ? col : na, title = "Prague Session")

← 返回列表