Tr0sT

SAR formula

This is how built-in S.A.R. indicator calculates S.A.R...
从常用的脚本中删除 添加到常用的脚本
Thanks! I highly apprecitate the code.
回复
Thank you very much!!!
回复
Thank you so much !!!
回复
any idea how to inject moving average into this sar formula, have no clue to do that :/
and make it MTF
回复
Tr0sT tahukentucky
@tahukentucky, how exactly do you want to inject moving average? you can plot(sma(close, 18))... To make it MTF just don't use high, close, open and low. Instead use security(low, TimeFrame)... I don't remember correct syntax, but you can find it in pine script reference
回复
Hi Tr0sT,


thank you for your script. Is it possible to customize your script so I can get alert? I would need alert when SAR crosses price AND crosses SMA line. I'm not good at programing, but it should be easy task.

kind regards, Linas
回复
Tr0sT ebayforestwaves
@ebayforestwaves, maybe if you add something like code below you will get what you want. I'm not sure, but atleast it's a direction...

SMA = sma(close, 14)
plot(SMA)
alertcondition(SAR == close and close == SMA, "SAR=price=SMA")
+3 回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 网站规则 版主 网站 & 经纪商解决方案 插件 图表解决方案 寻求帮助 功能请求 博客 & 新闻 常见问题 维基百科 Twitter
概述 个人资料设置 账号和账单 寻求帮助 已发表观点 粉丝 正在关注 私人消息 聊天 退出