logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
smile  
#1 Posted : Friday, December 07, 2012 6:17:37 AM(UTC)
smile

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/7/2012(UTC)
Posts: 5

Anyone has the metastock formula for the indicator called Choppiness Index

?

jjstein  
#2 Posted : Friday, December 07, 2012 5:01:40 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
smile  
#3 Posted : Saturday, December 08, 2012 8:11:23 AM(UTC)
smile

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/7/2012(UTC)
Posts: 5

thanks
jjstein  
#4 Posted : Saturday, December 08, 2012 8:52:31 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
You're welcome. Now, I just can't help myself, I just gotta pull a "Wabbit": http://lmgtfy.com/?q=metastock+choppiness+Index (click first item).

smile  
#5 Posted : Sunday, December 09, 2012 6:23:42 PM(UTC)
smile

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/7/2012(UTC)
Posts: 5

Thanks Wabbit for the tip.

I am trying to come up with a metastock formula showing a declining moving average line using Mov(C,20,S)<Ref(Mov(C,20,S),-20). Some charts show a declining moving average while others have a flattening moving average towards the end. Any ideas

?

wabbit  
#6 Posted : Sunday, December 09, 2012 7:09:19 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,106
Location: Perth, Western Australia

Was thanked: 12 time(s) in 12 post(s)
It was JJ who has provided help so far.... not me.


As for the current issue of "declining" MAs: by declining I am going to guess you mean reducing in price or angled down from left to right, or value of the MA is getting less as time progresses?

Your code
Code:
Mov(C,20,S)<Ref(Mov(C,20,S),-20);

will show that, but if you're not getting the results you want because of the "flattening" then you're going to need to set some threshold, maybe something like:
Code:

ind:=Mov(C,20,S);
rc:=ROC(ind,20,%);

{plot}
rc<-2; {rate of change is steeper than 2% decline}


Another way to think about price and time is to think of them as position and time instead, that way we can think of the rate of change of price over time as velocity, and the rate of change of velocity over time as acceleration.

To aid your search, you might want to find when the indicator is speeding downwards and accelerating
Code:

ind:=Mov(C,20,S);
velocity:=roc(ind,20,%);
acceleration:=roc(velocity,10,%);

{plot}
velocity<-2 AND acceleration>2;


The smoothness of the curves and their usefulness is highly personal, you might want to use very short time references and then apply smoothing to them, or you can use longer time references.

See also: http://forum.equis.com/forums/permalink/30399/30450/ShowThread.aspx#30450
smile  
#7 Posted : Monday, December 10, 2012 12:01:14 AM(UTC)
smile

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/7/2012(UTC)
Posts: 5

Thank you very much Wabbit and JJ.
smile  
#8 Posted : Tuesday, December 11, 2012 10:38:27 PM(UTC)
smile

Rank: Newbie

Groups: Registered, Registered Users
Joined: 12/7/2012(UTC)
Posts: 5

Hi

I read an article which suggests to color the respective price bars with different color to depict the weakening or strengthening of the price movement. For example, for a strengthening price movement, it is based on a rising adx and price above a short-term moving average.

Are there other ways to do that? Thanks

wabbit  
#9 Posted : Tuesday, December 11, 2012 11:01:48 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,106
Location: Perth, Western Australia

Was thanked: 12 time(s) in 12 post(s)
Read your MS User Manual for Expert Advisor highlights.


wabbit [:D]

BigBucks  
#10 Posted : Monday, April 02, 2018 4:58:14 PM(UTC)
BigBucks

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 4/5/2007(UTC)
Posts: 2

Choppiness Index formula

len:= Input("number of period",1,50,13);

plot:=Input("method < 1 / 2 >", 1, 2, 1);

hc1:=HHV(If(H>=Ref(C,-1),H,Ref(C,-1)),len);

lc1:=LLV(If(L<=Ref(C,-1),L,Ref(C,-1)),len);

c12:= (100 * Log( Sum(ATR(1),len) / Ref(HHV(C,len)-LLV(C,len),-1))/Log(len));

c13:= ((Log(Sum(ATR(1),len)/(hc1-lc1))/

Log(10))/(Log(len)/Log(10)))*100;

If(plot=1, c12, c13)

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.