LonesomeTheBlue

Sell / Buy Rates

This script finds sell / buy rates and adds its linear regression to the chart. its aim is finding buying and selling power, then you can try to find trend reversals. Also you can find divergences, it's very important signal for trend reversal.

Linear regression is a basic and commonly used type of predictive analysis.

if you choose lower periods then it will be more sensitive. I choose 34 as it's one of fibonnaci number.


If you find my works useful, please consider a donation
BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR

Apr 12
版本注释: Shorter code and some improvements
从常用的脚本中删除 添加到常用的脚本
Mate, you can simplify a life with:

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)

uprate = _rate(open <= close)
downrate = _rate(open >= close)

and add precision=0 to study() to avoid big numbers (see AAPL)
+2 回复
@everget, thanks mate, OK I'm gonna make it shorter ;)
+1 回复
Le falta las flechas de compra y venta, me parece
+1 回复
hi @dos32101, Pine script doesn't allow to add arrow on the chart when indicator is in another window. (overlay = false or true, can not be both).
+1 回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 节目 如何运作 图表功能 价格 网站规则 版主 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 帮助中心 推荐朋友 功能请求 博客 & 新闻 常见问题 维基百科 Twitter
概述 个人资料设置 账号和账单 推荐朋友 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 聊天 退出