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

Notification

Icon
Error

Options
Go to last post Go to first unread
Noel van Aswegen  
#1 Posted : Wednesday, November 16, 2005 9:56:40 AM(UTC)
Noel van Aswegen

Rank: Member

Groups: Registered, Registered Users
Joined: 8/29/2005(UTC)
Posts: 26
Location: South Africa

Hi there, Could anybody tell me if there is an indicator in Metastock that can display Price Acceleration? If there is where is it and if there isn't is there a way to create one? You help is greatly appreciated. Thanks
StorkBite  
#2 Posted : Wednesday, November 16, 2005 11:25:09 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
What is price acceleration? What are you trying to evaluate? Perhaps this is as simple as ROC()??
wabbit  
#3 Posted : Thursday, November 17, 2005 8:31:42 AM(UTC)
wabbit

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)
You actually need to 'nest' the ROC functions. For a price to be 'accelerating', we assume the price change today is greater than at a previous time, and that price change is more than a time previous to that. There are a couple of ways to achieve this (like a lot of things with MS there are many ways to write the actual code) but these might get you on your way: --8<----------------------------- prd:=Input("Consecutive periods",1,10,5); x:=ROC(C,1,$); y:=x > Ref(x,-1); z:=Sum(y,prd)=prd; z; --8<----------------------------- OR --8<----------------------------- ROC(C,1,$)>ROC(C,2,$) AND ROC(C,2,$)>ROC(C,3,$) AND ROC(C,3,$)>ROC(C,4,$) AND ROC(C,4,$)>ROC(C,5,$) AND ROC(C,5,$)>ROC(C,6,$) --8<----------------------------- etc etc etc..... Have a read of the USers Manual and try something out for yourself. Post your code when have something working. Hope this helps. wabbit :D
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.