[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] How to draw lines from lowest low to highest high?



PureBytes Links

Trading Reference Links

I would like to draw lines starting from the lowest low of three 
datapoints to the highest high of three datapoint. If there isn't a 
valid low or high then I have to skip this datapoint.
The result should be a line through the equity that connects the 
lowest low (of three datapoints) to the highest hight (of three 
datapoint).

However I am unable to skip a datapoint and don't draw a line, 
because of the IF(...) construction.

This is my code:

l1:=Ref(L,-2);
l2:=Ref(L,-1);
l3:=L;

h1:=Ref(H,-2);
h2:=Ref(H,-1);
h3:=H;

If(l2<l1 AND l2<l3,l2,If(h2>h1 AND h2>h3,h2,"don't draw"))

Any suggestions how to accomplish this?

If you want to know why I want this? I want to study the data and get 
feeling with the swings.

Thanks in advance,
Walter


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/BefplB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/