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

[amibroker] LineArray Questions



PureBytes Links

Trading Reference Links

Hi All,

//----------------------------------------------------

Cond1 = Ref(H,-0);
period = 0;

y0=LastValue(Peak(Cond1,period ,1));
y1=LastValue(Peak(Cond1,period ,0));
x0=BarCount - 1 - LastValue(PeakBars(Cond1,period ,2));
x1=BarCount - 1 - LastValue(PeakBars(Cond1,period ,0));

Line = LineArray( x0, y0, x1, y1, 1 );

Plot(C, "C", colorBlack, styleCandle);
Plot( Line, "Line", colorBlue,styleDots );

//----------------------------------------------------

With the above code I'm trying to plot horizontal line from yesterday candle high it will be extended to the right. I have  question about some Adjustments.

1 . I need if the current candle close above the line the line didn't move to the next high. I need it to be extended to the right only till fifth candle close.

2 . When I look to the chart it showing that the line start from the day before yesterday. And in some chart it is not linked to the highest of the candle it showing above the high.

Any help will highly appreciated

Regards.

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___