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

Notification

Icon
Error

Options
Go to last post Go to first unread
Bulli  
#1 Posted : Thursday, September 7, 2006 10:46:42 AM(UTC)
Bulli

Rank: Advanced Member

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

This indicator was done for a friend of mine (Waldir)

It works but I am sure someone here can improve on it. (I am sharing it anyway)

Waldir1:=LastValue(((Typical()-((2*Typical())+H-L))*-1));
Waldir2:=LastValue( ((2*Typical())-L));
Waldir3:=LastValue(Typical());
Waldir4:= LastValue(((2*Typical())-H));
Waldir5:= LastValue(((Typical()-((2*Typical())-H+L))*-1));
ValueWhen(1,Cum(1)=LastValue(Cum(1)),Waldir1);
ValueWhen(1,Cum(1)=LastValue(Cum(1)),Waldir2);
ValueWhen(1,Cum(1)=LastValue(Cum(1)),Waldir3);
ValueWhen(1,Cum(1)=LastValue(Cum(1)),Waldir4);
ValueWhen(1,Cum(1)=LastValue(Cum(1)),Waldir5);

UserPostedImage

Bulli

Jose  
#2 Posted : Thursday, September 7, 2006 11:26:42 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
You may also be interested in the intraday pivots formula found here. jose '-)
hayseed  
#3 Posted : Thursday, September 7, 2006 11:27:14 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey bulli.... thats neat, thanks for sharing..... i have something similar and when coded into a expert it lets you look back and see how the pivots preformed.... the s's are support and r's are resistance.... when using dots and coloring appropriately , past preformance can be seen.... and of course the expert can be applied with or without the indicator itself..... it plots daily with alerts.....h

pivot:=(H + L + C)/3;
r1:= (2 * pivot - L);
s1:= (2 * pivot - H);
r2:= (pivot - s1 + r1);
s2:= (pivot - (r1 - s1));
r3:= (2 * (pivot - L) + H);
s3:= (L - (2 * (H - pivot)));
pivot;r1;s1;r2;s2;r3;s3

Bulli  
#4 Posted : Thursday, September 7, 2006 1:09:05 PM(UTC)
Bulli

Rank: Advanced Member

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

Thank you Jose and Hayseed for sharing.

I am sure I will be using some of that in my codings, and many others here.

Bulli

Bulli  
#5 Posted : Friday, September 8, 2006 1:14:41 PM(UTC)
Bulli

Rank: Advanced Member

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

hayseed wrote:

pivot:=(H + L + C)/3;
r1:= (2 * pivot - L);
s1:= (2 * pivot - H);
r2:= (pivot - s1 + r1);
s2:= (pivot - (r1 - s1));
r3:= (2 * (pivot - L) + H);
s3:= (L - (2 * (H - pivot)));
pivot;r1;s1;r2;s2;r3;s3

Can I ask a question?

Why you just did not say

pivot:=typical();

Bulli  
#6 Posted : Friday, September 8, 2006 1:15:41 PM(UTC)
Bulli

Rank: Advanced Member

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

hayseed wrote:

pivot:=(H + L + C)/3;
r1:= (2 * pivot - L);
s1:= (2 * pivot - H);
r2:= (pivot - s1 + r1);
s2:= (pivot - (r1 - s1));
r3:= (2 * (pivot - L) + H);
s3:= (L - (2 * (H - pivot)));
pivot;r1;s1;r2;s2;r3;s3

Hi Hayseed,

Can I ask a question?

Why you just did not say

pivot:=typical();

Thanks,

Bulli

hayseed  
#7 Posted : Friday, September 8, 2006 8:02:20 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey bulli.... i should use typical ..... some of the guys over at ethois are always talking about piviots .... thats something kinda adapted from them so i just left the code as close as possible to their thinking.... pivots aren't something i use, just a curiosity more than anything.....h
happysingh  
#8 Posted : Saturday, December 16, 2006 12:20:36 PM(UTC)
happysingh

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 6/3/2005(UTC)
Posts: 64
Location: India

HI can u pls guide me how to make an indicator by using the above formula. i have these formula's from past but i really dont know how to get the expert developed from that. indicator and expert both required. if possible then explorer also.... thanks in advance.
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.