当前每日蜡烛内的表达式
Expression for within the current daily candle
如何创建一个表达式,使其仅在落在当前每日烛线内时才为真,即自烛线打开以来?
dailyopentime = security(syminfo.prefix+":"+ syminfo.ticker, "D", time)
这给了我每天开放的时间,但我只想要最近的每日开放时间和以后的时间
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © adolgov
//@version=4
study("My Script")
raising = security(syminfo.tickerid, "D", open < close ? 1 : open > close ? -1 : 0)
plot(raising)
lastDay = security(syminfo.tickerid, "D", barstate.islast, lookahead = barmerge.lookahead_on)
bgcolor(lastDay ? color.red : na)
如何创建一个表达式,使其仅在落在当前每日烛线内时才为真,即自烛线打开以来?
dailyopentime = security(syminfo.prefix+":"+ syminfo.ticker, "D", time)
这给了我每天开放的时间,但我只想要最近的每日开放时间和以后的时间
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © adolgov
//@version=4
study("My Script")
raising = security(syminfo.tickerid, "D", open < close ? 1 : open > close ? -1 : 0)
plot(raising)
lastDay = security(syminfo.tickerid, "D", barstate.islast, lookahead = barmerge.lookahead_on)
bgcolor(lastDay ? color.red : na)