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)
|
|
|
|
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)
|
|
|
|
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.
|
|
|
|
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:
|
|
|
|
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.
|
|
|
|
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)
|
|
|
|
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.
|
|
|
|
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 ;)
|
|
|
|
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.