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

Coding Question



PureBytes Links

Trading Reference Links

List:

Here's a simple setup:

PK:=Zig(H,7,%)<Ref(Zig(H,7,%),-1) AND
Ref(Zig(H,7,%),-1)>Ref(Zig(H,7,%),-2);

Peak1:=ValueWhen(1,PK,Ref(H,-1));

Peak2:=ValueWhen(2,PK,Ref(H,-1));

Question1: Can I code MS to draw a simple trendline
from Peak2 to Peak1?

Question2: Can I code MS to recognize a cross by the
close above the
           trendline, assuming the trendline can be
coded to extend
           beyond Peak1? I'm looking for something
more accurate than 
           Cross(C,ValueWhen(1,PK,Ref(H,-1))),which
often occurs well
           after the trendline is violated.

Thanks in advance for any feedback.

Bob L.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com