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
|
|
|
|
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);
|
|
|
|
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.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 8/21/2006(UTC) Posts: 23
|
|
|
|
|
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.