PureBytes Links
Trading Reference Links
|
I'm trying to draw lines from a pivot area top and bottom on the
latest Monday,(I'll show only the top line) extending to the right
only on subsequent days.
The following code is correct but the line extends across the whole
chart, which is not what I want.
// Calculate the pivot range
PivotBand = abs(Avg - (H+L)/2);
VaH = Avg + PivotBand;
VaL = Avg - PivotBand;
Lu=LastValue(ValueWhen((DayOfWeek()==0),VaH));
Plot(Lu,"",colorBlack,styleLine);
So I tried the following code which gives me a "Bad Arguments" error
display. So where am I off course? Or is this approach not feasible?
y0=Lu;
y1=Lu;
x0=ValueWhen( Lu, BarCount,1);
x1=x0+.0001; /* Is this correct? */
pu=LineArray(x0,y0,x1,y1,1); /* WHAT's Wrong here? */
plot(pu,"", colorblack,styleline);
Thanks
Herbert
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|