Rank: Newbie
Groups: Registered, Registered Users Joined: 12/7/2012(UTC) Posts: 5
|
Anyone has the metastock formula for the indicator called Choppiness Index
?
|
|
|
|
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)
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 12/7/2012(UTC) Posts: 5
|
|
|
|
|
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)
|
|
|
|
|
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
?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 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
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 12/7/2012(UTC) Posts: 5
|
Thank you very much Wabbit and JJ.
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Read your MS User Manual for Expert Advisor highlights.
wabbit [:D]
|
|
|
|
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 |
Guest (Hidden)
|
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.