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

Notification

Icon
Error

Options
Go to last post Go to first unread
dorusone  
#1 Posted : Thursday, December 22, 2005 2:00:43 PM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

Hello i have in a metastock expert the pivot point indicators programmed. what i like to do is to program a "level inbetween" so f.i : Resistance 1,5 is (R-2 + R-1)/2 Resistance 0,5 is (R-1 + PP)/2 i use the formula's below (which work) but i can imagine that these formula's can be simplified (please do if you can) Thanks Theo Resistance 2 : $writeval((((HIGH + CLOSE + LOW) /3)+(((2*(((HIGH + CLOSE + LOW) /3)))-LOW)-((2*(((HIGH + CLOSE + LOW) /3)))-HIGH))),6.2) Resistance 1 : $writeval(((2*(((HIGH + CLOSE + LOW) /3)))-LOW),6.2)
StorkBite  
#2 Posted : Thursday, December 22, 2005 3:41:11 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)
Try something like this: Typical()+(2*Typical()-Low)-(2*Typical()-High)
dorusone  
#3 Posted : Thursday, December 22, 2005 5:48:43 PM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

g_stockman wrote:
Try something like this: Typical()+(2*Typical()-Low)-(2*Typical()-High)
As far as I know Typical works as an average price or something i donot think that that works because that is not the same als a pivot point anyway i donot understand what you are trying here Please give another solution.
Patrick  
#4 Posted : Thursday, December 22, 2005 6:48:14 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
(HIGH + CLOSE + LOW) /3 = TYPICAL() Patrick :mrgreen:
StorkBite  
#5 Posted : Thursday, December 22, 2005 8:00:08 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)
Quote:
anyway i donot understand what you are trying here
Delete this:
Quote:
((((HIGH + CLOSE + LOW) /3)+(((2*(((HIGH + CLOSE + LOW) /3)))-LOW)-((2*(((HIGH + CLOSE + LOW) /3)))-HIGH)))
Replace with this:
Quote:
Typical()+(2*Typical()-Low)-(2*Typical()-High)
You asked for something simplier. You can use this or your original code. The plot is the same.
dorusone  
#6 Posted : Friday, December 23, 2005 8:29:17 AM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

Patrick wrote:
(HIGH + CLOSE + LOW) /3 = TYPICAL() Patrick :mrgreen:
Thanks Patrick BUT if i put this in the expert Nothing happens (it just displays this formula) (MS 7.03 prof)
dorusone  
#7 Posted : Friday, December 23, 2005 8:40:28 AM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

g_stockman wrote:
Quote:
anyway i donot understand what you are trying here
Delete this:
Quote:
((((HIGH + CLOSE + LOW) /3)+(((2*(((HIGH + CLOSE + LOW) /3)))-LOW)-((2*(((HIGH + CLOSE + LOW) /3)))-HIGH)))
Replace with this:
Quote:
Typical()+(2*Typical()-Low)-(2*Typical()-High)
You asked for something simplier. You can use this or your original code. The plot is the same.
Thanks a Lot ! I think i can work it out now ! $writeval((TYPICAL())) is of course what i had to use.
Bulli  
#8 Posted : Friday, December 23, 2005 2:21:59 PM(UTC)
Bulli

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 9/26/2005(UTC)
Posts: 185
Location: Brazil

Well, you can simplify more (I am posting both for comparing): Resistence 2: writeval(((((H + L + C)/3)-((2*((H + L + C)/3))-H))+((2*((H + L + C)/3))-L)),0.2) Resistence 2: writeval(((Typical()-((2*typical())+H-L))*-1),0.2) Resistence 1: writeval(((2*((H + L + C)/3))-L),0.2) Resistence 1: writeval(((2*typical())-L),0.2) Pivot Point: writeval(((H + L + C)/3),0.2) Pivot Point: writeval(Typical(),0.2) Support 1: writeval(((2*((H + L + C)/3))-H),0.2) Support 1: writeval(((2*typical())-H),0.2) Support 2: writeval((((H + L + C)/3)-(((2*((H + L + C)/3))-L)-((2*((H + L + C)/3))-H))),0.2) Support 2: writeval(((Typical()-((2*typical())-H+L))*-1),0.2) regards, Bulli ;)
dorusone  
#9 Posted : Friday, December 23, 2005 2:33:16 PM(UTC)
dorusone

Rank: Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 17

Hi Bulli : Thanks i will study it asap. Theo
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.