Sunday, August 23, 2009

HH23 MetaStock 3 Lines Code plus ONB chart

Hello and welcome to my blog.

This is not a recommendation to buy or sell any of the stocks discussed on this blog. Due diligence is your responsibility. If you need professional investment advice then find a professional.

The following are the three codes I am using. I can not take credit for any of this work. They are taken from the MetaStock forum and the MetaTools site. At the MetaStock forum search for Darvas Box and start reading and drilling down.

I would like to thank all of the people that did all the hard work that I am using. The next time I go surfing I will find the proper names and places. The following has also been tweaked for my own use so they do not match the originals. Sorry if I made a mess of the orignals.

Thank you for your time.

Thick Black Line: HA. Html does not like the less than, greater than symbols. Change red words to symbols.

LL: equal If(LOW equal LLV(LOW,6),LOW,
If(Ref(LOW,-1) less than LLV(LOW,6),Ref(LOW,-1),
If(Ref(LOW,-2) less than LLV(LOW,6),Ref(LOW,-2),
If(Ref(LOW,-3) less than LLV(LOW,6),Ref(LOW,-3),
If(Ref(LOW,-4) less than LLV(LOW,6),Ref(LOW,-4),
If(Ref(LOW,-5) less than LLV(LOW,6),Ref(LOW,-5),0))))));
NL: equal ValueWhen(1,LOW less than Ref(LLV(LOW,6),-1),LOW);
box1: equal LLV(LOW,3) greater than LLV(LOW,4);
box2: equal ValueWhen(1,BarsSince(LOW less than Ref(LLV(LOW,6),-1))
equal 3 AND box1 equal true,NL);
box3: equal ValueWhen(1,BarsSince(LOW less than Ref(LLV(LOW,6),-1))
equal 3 AND box1 equal true,LL);
TopBox: equal box2;
BottomBox: equal box3;
TopBox: equal box2;
{BottomBox: equal box3;}
TopBox;
{BottomBox;}

Yellow Line:


Lt:=If(Cross(HHV(H,4)=Ref(H,-3),.9)=1,L,PREV);
Bot:=If(Lt less than Ref(Lt,-1),Lt,PREV);
Bot


Thin Black Line:

If(Cross(HHV(H,9)=Ref(H,-8),.9)=1,L,PREV)


I thought the yellow line stair step down was interesting and possibly instructive in the following chart. Signals then stops a few times, then signal no stop. The low test held at the matched lines and gee, a nine.


No comments:

Post a Comment