Search
Products
Community
Markets
News
Brokers
More
EN
Get started
Community
/
Ideas
/
Sell
HMSTR / TetherUS
Sell
By impressivePers2252
Follow
Follow
2 days ago
1
2 days ago
//
//
Author
LonesomeTheBlue
//
//
version
=3
study("Sell / Buy Rates", overlay = false, precision = 0)
prd = input(title="Period", defval = 34, minval = 1)
tw = high - max(open, close)
bw = min(open, close) - low
body = abs(close - open)
_rate(cond) => 0.5 * (tw + bw + (cond ? 2 * body : 0)) / (tw + bw + body)
volup = volume * _rate(open <= close)
voldown = volume * _rate(open >= close)
rate = linreg(volup - voldown, prd, 0)
col = rate > 0 ? (falling(rate, 5) ? green : lime) : rate < 0 ? rising(rate, 5) ? maroon : red : na
plot(rate, color = col, style = columns)
Harmonic Patterns
Trend Analysis
impressivePers2252
Follow
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the
Terms of Use
.