Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
ROC on an EMA
Updated February 2, 2015
trending_up
3,236 views
thumb_up
0 thanks given
group
2 followers
forum
6 posts
attach_file
2 attachments
ROC on an EMA
February 2nd, 2015, 12:35 PM
Miami FL/USA
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0
Can anybody please, help me out here?
I am trying to set up the ROC of an EMA indicator.
I had a sample link where they use it but I can't post links yet.
Thank you.
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
February 2nd, 2015, 01:17 PM
virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090
ositokillao
Can anybody please, help me out here?
I am trying to set up the ROC of an EMA indicator.
I had a sample link where they use it but I can't post links yet.
Thank you.
go to ROC setting and change its input to EMA, an example
February 2nd, 2015, 01:26 PM
Miami FL/USA
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0
cory
go to ROC setting and change its input to EMA, an example
I already tried that but I can't add EMA to the Inputs scroll box?
Is that even possible?
Here is a working example of the ROC EMA indicator Iam trying to get going:
https://www.whselfinvest.com/en/trading_strategies_03_rocema.php
February 2nd, 2015, 01:45 PM
virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090
not sure what you mean, tale a look at this
February 2nd, 2015, 02:09 PM
Miami FL/USA
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0
cory
not sure what you mean, tale a look at this
yeah thats in NT
I am using TOS . I wish TOS would allow me to do something like that.
There must be a way ...
February 2nd, 2015, 02:17 PM
Puerto Rico
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441
Is it something like this?
https://www.yahoo.com/
Quoting
algoeric Jun 18, 2013
Here's my rendition of a rate of change script. Plots the rate of change for the 5 period and the 252 period with some EMA smoothing.
Code
# Rate of Change Script
# Coded by Eric Rasmussen
# ericrasmussentx@...
# Bullish
# 252 day ROC crosses above 5 day ROC and the next day is still above 5 day
# Bearish
# 252 day ROC crosses below 5 day ROC and the next day is still below 5 day
declare lower;
input smooth = 5;
def roc5day =
ExpAverage(((close - close[4]) / close[4]) * 100, length = smooth);
def roc252day =
ExpAverage(((close - close[251]) / close[251]) * 100, length = smooth);
def crossUp = roc252day crosses above roc5day;
def crossDown = roc252day crosses below roc5day;
# Plots
plot roc252 = roc252day;
roc252.AssignValueColor(if roc252day > roc5day then color.GREEN else color.RED);
roc252.SetPaintingStrategy(paintingStrategy.LINE);
roc252.SetLineWeight(1);
plot zero = if !IsNaN(close) then 0 else double.NaN;
zero.SetPaintingStrategy(PaintingStrategy.LINE);
zero.AssignValueColor(if roc252day > roc5day then color.GREEN else color.RED);
zero.SetLineWeight(2);
zero.HideTitle();
plot downCross = if crossDown[-1] then 0 else double.NaN;
downCross.SetPaintingStrategy(PaintingStrategy.POINTS);
downCross.AssignValueColor(color = Color.RED);
downCross.SetLineWeight(3);
downCross.HideTitle();
plot downCross2 = if crossDown[-1] then 0 else Double.NaN;
downCross2.SetPaintingStrategy(PaintingStrategy.POINTS);
downCross2.AssignValueColor(color = Color.WHITE);
downCross2.SetLineWeight(5);
downCross2.HideTitle();
plot upCross = if crossUp[-1] then 0 else Double.NaN;
upCross.SetPaintingStrategy(PaintingStrategy.POINTS);
upCross.AssignValueColor(color = color.GREEN);
upCross.SetLineWeight(3);
upCross.HideTitle();
plot upCross2 = if crossUp[-1] then 0 else Double.NaN;
upCross2.SetPaintingStrategy(PaintingStrategy.POINTS);
upCross2.AssignValueColor(color = Color.WHITE);
upCross2.SetLineWeight(5);
upCross2.HideTitle();
AddCloud(0, roc252day, color1 = color.RED, color2 = color.GREEN);
AddCloud(0, roc252day, color1 = color.RED, color2 = color.GREEN);
February 2nd, 2015, 02:30 PM
Miami FL/USA
Experience: Beginner
Platform: TOS
Trading: stocks
Posts: 21 since Feb 2015
Thanks Given: 0
Thanks Received: 0
rmejia
Is it something like this?
https://www.yahoo.com/
Code
# Rate of Change Script
# Coded by Eric Rasmussen
# ericrasmussentx@...
# Bullish
# 252 day ROC crosses above 5 day ROC and the next day is still above 5 day
# Bearish
# 252 day ROC crosses below 5 day ROC and the next day is still below 5 day
declare lower;
input smooth = 5;
def roc5day =
ExpAverage(((close - close[4]) / close[4]) * 100, length = smooth);
def roc252day =
ExpAverage(((close - close[251]) / close[251]) * 100, length = smooth);
def crossUp = roc252day crosses above roc5day;
def crossDown = roc252day crosses below roc5day;
# Plots
plot roc252 = roc252day;
roc252.AssignValueColor(if roc252day > roc5day then color.GREEN else color.RED);
roc252.SetPaintingStrategy(paintingStrategy.LINE);
roc252.SetLineWeight(1);
plot zero = if !IsNaN(close) then 0 else double.NaN;
zero.SetPaintingStrategy(PaintingStrategy.LINE);
zero.AssignValueColor(if roc252day > roc5day then color.GREEN else color.RED);
zero.SetLineWeight(2);
zero.HideTitle();
plot downCross = if crossDown[-1] then 0 else double.NaN;
downCross.SetPaintingStrategy(PaintingStrategy.POINTS);
downCross.AssignValueColor(color = Color.RED);
downCross.SetLineWeight(3);
downCross.HideTitle();
plot downCross2 = if crossDown[-1] then 0 else Double.NaN;
downCross2.SetPaintingStrategy(PaintingStrategy.POINTS);
downCross2.AssignValueColor(color = Color.WHITE);
downCross2.SetLineWeight(5);
downCross2.HideTitle();
plot upCross = if crossUp[-1] then 0 else Double.NaN;
upCross.SetPaintingStrategy(PaintingStrategy.POINTS);
upCross.AssignValueColor(color = color.GREEN);
upCross.SetLineWeight(3);
upCross.HideTitle();
plot upCross2 = if crossUp[-1] then 0 else Double.NaN;
upCross2.SetPaintingStrategy(PaintingStrategy.POINTS);
upCross2.AssignValueColor(color = Color.WHITE);
upCross2.SetLineWeight(5);
upCross2.HideTitle();
AddCloud(0, roc252day, color1 = color.RED, color2 = color.GREEN);
AddCloud(0, roc252day, color1 = color.RED, color2 = color.GREEN);
thanks but not exactly I think
here is a working sample of what I am looking for:
https://www.whselfinvest.com/en/trading_strategies_03_rocema.php
On the actual page they show it with a basic line that changes color. If you click on the EXPLANATORY VIDEO
link you will see it again, this time with a HISTOGRAM kind of setting...
Basically I need a ROC for an EMA of 16 time periods.
Last Updated on February 2, 2015