Crossing detector (feat. 2-field date/time entry demo)
var tradingview_embed_options = {}; tradingview_embed_options.width = '640'; tradingview_embed_options.height = '400'; tradingview_embed_options.chart = 'izM2anXV'; new TradingView.chart(tradingview_embed_options);
ApopheniaPays Crossing detector & 2-field date/time entry by ApopheniaPays on TradingView.com
TradingView Script. Free TradingView account required to use. Direct link: https://www.tradingview.com/script/izM2anXV-ApopheniaPays-Crossing-detector-2-field-date-time-entry/
A demonstration created by request.
You specify a horizontal line by value, start date/time, and end date/time, and choose a data source (bar close is the default) and it will label count how many times that source crosses that line between those dates/times.
"Crossing type": count only crossing up, crossing down, any cross, or any touch at all. "Any touch" ignores the source you specified in the first input, and triggers if any part of the candle at all is touching the specified value.
BONUS DEMO FEATURE: Enter the start and end dates for your horizontal line as MMDDYY and HHMM (24…
