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

Notification

Icon
Error

Options
Go to last post Go to first unread
Raymond  
#1 Posted : Tuesday, November 21, 2006 12:42:12 PM(UTC)
Raymond

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/21/2006(UTC)
Posts: 23

I want a visual pattern called "bricks" on my charts.

The idea is to create a "brick" when 3 consecutive lower or higher closes will occur in a row.

For an "upbrick" one would use: C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2);

For an "downbrick" one would use: C<Ref(C,-1) AND Ref(C,-1)<Ref(C,-2);

What i want is:

1) On the top of the first downbrick in a row i want a horizontal line. This line automaticly jumps a brick lower when a new downbrick occurs. This row can only be reset by a reversalsignal (an upbrick). Then the horizontal line should appear again af the first downbrick after the reversal.

2) When a certain brick is formed it can stay there for quite a while because the market is trending sideways and no 3 lower/higher closes occur. It would be nice to have some visual element that plots over de pricechart to illustrate sideways movements as if it was one brick....i hope this makes sense.

For a better understanding what i mean with this brickstory i've attached a chart with the bricks displayed on it. Any suggestions to immitate this for MetaStock would be greatly appreciated.

More info: http://www.cbot.com/cbot/pub/cont_detail/0,3206,1180+26255,00.html
henry1224  
#2 Posted : Tuesday, November 21, 2006 6:53:38 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 3 time(s) in 3 post(s)

What value do you use for the top of an up box? C or H?

What value do you use for the bottom of an down box? C or L?

You can start with this

UB:=If(Sum(C>Ref(C,-1),3)>2,1,0);

DB:=If(Sum(C<Ref(C,-1),3)>2,1,0);

UBV:=ValueWhen(1,UB=1,C);

DBV:=ValueWhen(1,DB=1,C);

Raymond  
#3 Posted : Wednesday, November 22, 2006 4:56:17 AM(UTC)
Raymond

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/21/2006(UTC)
Posts: 23

Thanks Henry for your reply. Your code though is not what i am looking for. (it plots signal on every bar ..) And it's not the actual upbrick or downbrick that i am worried about. I have the signals for that already. The problem is the changing horizontal line that jumps the bricks accordingly (always on top (close) of the first brick in a row of 3) and the visual aspect that can be layered on top of the pricechart as the example shows.
Raymond  
#4 Posted : Monday, November 27, 2006 4:17:49 AM(UTC)
Raymond

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/21/2006(UTC)
Posts: 23

anyone?
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.