ChrisMoody

CM_Modified_Heikin-Ashi_TrendBars

Created By Request for lucalucious

Allows for EMA Smoothing with different values for Up and Down Trend.

Ability to Plot EMA to see Trend Filter
从常用的脚本中删除 添加到常用的脚本
//Created by Chrismoody on 7/22/2014 By Request for user lucalucious
//Modified Heikinashi with EMA Filter...
//Choice To Plot EMA Trend Is Based Off Of
study(title = "CM_Modified_Heik_Trend_Bars", shorttitle="CM_TrendBars",overlay=true)
note = input(false, title="Lower Numbers = More Sensitive to Price Change...Higher Numbers = Less Sensitive")
uema = input(34, minval=1, maxval=50, title="EMA UpTrend")
dema = input(34, minval=1, maxval=50, title="EMA DownTrend")
shema = input(false, title="Show EMA Trend is Based On?")

haclose = (open + high + low + close)/4
haopen = na(haopen[1]) ? (open + close)/2 : (haopen[1] + haclose[1]) / 2

upEma = ema(haclose, uema)
downEma = ema(haopen, dema)

emaAvg = (upEma + downEma)/2

heikUpColor() => hlc3 >= emaAvg
heikDownColor() => hlc3 < emaAvg

col = hlc3 >= emaAvg[1] ? lime : hlc3 < emaAvg[1] ? red : white

barcolor(heikUpColor() ? lime: heikDownColor() ? red : na)
plot(shema and emaAvg ? emaAvg : na, title="EMA UpTrend", style=line, linewidth=3, color=col)
how do i use this script i am new here
+1 回复
Hey mate
can we apply this in the strategy tester to see how it performs on the daily chart for fx pairs over the years?
+1 回复
Hello and thank you for this great script.
I have one question...
Does the current bar can change color during it's period?
Do we need to wait until the close of a bar to know it's final color?

thanks in advance
+8 回复
Hello Chris,
First off.. TV (and us) are fortunate to have guys like you around here.. :)

Entering and exiting trades based on HA alone is difficult as it doesn't show the actual price bars. This script hugely resolves that issue.

I have slightly modified your script to add:
1. Smoothing of EMA that is displayed on the chart
2. Detect additionally that there are no down wicks (up wicks for short) on the HA bars.

Makes it even more effective!
回复
Hi Chris, how does this work?
+4 回复
Have made some serious money on nadex with this script, thanks
+3 回复
for what time frame?
+7 回复
Hello this is a great indicator!One question though ...I am new on this and i have tried out to create an alert when colours turn from red to green and the opposite.
Can it be done?
回复
ChrisMoody xariskontos
Funny You asked...I just posted a video on ho wto do this...Go to the thread below and check out the video...If you have trouble following the instructions for this indicator make a request on the link below...and I will help you out...


回复
For example:

- http://i.imgur.com/NbZRJBd.png (Amazon, weekly chart)

That's a screen shot of Amazon weekly. The top blue arrow points to the 4-week EMA that your indicator bases the bar color on. It's a 4 week EMA (up & down). The lower blue arrow points to a standard 4-week EMA plotted on price (blue line).

As of the close of this week (last week in Oct. 2014), price has closed above the standard 4-week EMA, but not above the 4-week EMA that is plotted by your indicator. Which is why I was wondering if there was some kind of smoothing or if it was based on the slope of the EMA or if the calculations were based on something other than the close of price because it isn't matching up to a generic, out-of-the-box EMA.

Any thoughts would be great. Thanks.

Cheers. :-)
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 网站规则 版主 网站 & 经纪商解决方案 插件 图表解决方案 帮助中心 功能请求 博客 & 新闻 常见问题 维基百科 Twitter
概述 个人资料设置 账号和账单 TradingView代币 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 聊天 退出