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

Notification

Icon
Error

Options
Go to last post Go to first unread
magiclaas  
#1 Posted : Friday, November 29, 2013 4:34:36 AM(UTC)
magiclaas

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/18/2008(UTC)
Posts: 37

hi i need a help for a formula

i ve metastock 10.1

i would like to normalize in a indicator an index considered in a given period from -100 to 100 following to this formula


((P-MEDIA)/(MAX-MEDIA))*100

where:


P is a price close of my index ( per example =Security("C:\BULLBEAR\DATI\INDEX\gdax",C);

MEDIA = (Max+min)/2 ... max and min of the price in a considered time 200 days or less or more ( the max and the min of price in this period)

can you translate in metastock formula?

thank you

Justin  
#2 Posted : Friday, November 29, 2013 10:03:54 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

Not really sure on the normalizing part, but I think this would follow the formula you described. Also if you wanted to use the Close price for the HHV or LLV just substitute C in place of the H and L.

Indx:=Security("C:\Bullbear\Dati\Index\GDAX",C);
HP:=HHV(H,200);
LP:=LLV(L,200);
Media:=(HP+LP)/2;
((Indx-Media)/(HP-Media))*100


magiclaas  
#3 Posted : Wednesday, December 4, 2013 2:16:20 PM(UTC)
magiclaas

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/18/2008(UTC)
Posts: 37

thank you very much
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.