This script will count the bars back since the last time the current bar indicator value was either this low or this high. It will provide the time in either, seconds, minutes, hours, days, weeks, months, or years. please note: There are currently no alerts setup for this script. the length options only apply to the sources that have the "(MA)" in their...
Library "GenericTrading" This library aims to collect rare but useful operations for get_most_recent_long_or_short_position_closed_index() : returns most recent long/short closed bar index. get_most_recent_long_or_short_position_open_index() : returns most recent long/short closed bar index. These two functions designed to help to speed up the...
This is just published for visibility as a public service until the Pine devs are able to fix or document this behavior. The barssince() function returns different values when inside a conditional context. As long as it can be documented (and relied upon), this could be a pretty cool feature, but right now this is now how I read the help documentation to...
Nth-Occurrence Custom barssince() Function by Cryptorhythms Description The vanilla barssince() function in pine only finds the number of bars since the most recent occurrence of the condition. This version allows you to specify an Nth occurrence back to check the bars since! Its also a nice little one liner. I really hope you enjoy it and if you're...
This is a barssince() replicant with a 2nd `Occurrence` Parameter. The Pine built-in barssince() function only has the `condition` parameter. It's a handy little function I believe will be very useful in the future for developers of the Tradingview community. Use it as you please, this is free code to implement into your new Pine projects. I don't require credit...
Hi everyone I didn't publish on Friday because I was working on an Expert Advisor in MT4. The day I don't publish, some scripts spamming guys published many (not useful) scripts the same to kick me out of the TOP #1 ranking. So what I'm going to do about it? crying or sharing more quality scripts than before? :) I guess you know the answer :) I'm gonna share a...
"Full Disclosure: I came across this information from www.SentimenTrader.com I have no financial affiliation…They provide incredible statistical facts on The General Market, Currencies, and Futures. They offer a two week free trial. I Highly Recommend. The S&P 500 has gone 43 trading days without a 1% daily move, up or down. which is the equivalent of two...
The Two Versions of this Indicator I learned from Two Famous and Highly Successful Traders. This Indicator shows With No Lag Clear Up and Down Trends in Market by Documenting Clearly If Bulls or Bears are in Control. The Version In SubChart 1 Shows Consecutive Closes if the Current Close is Greater than of Less than the Midpoint of the Previous Bar (Why Midpoint...