PureBytes Links
Trading Reference Links
|
Stephane,
Thanks for the quick reply.
I was using the DLL inproperly. The code is now works OK with my
indicator, with one exception.
I still have a problem with the first point of the trandline
(endpoint). The trendline array is empty at the end point, so the
point takes the value of the next bar, producing a horizontal line
for 1 bar, then the line is correct.
Any suggestions?
Ara
--- In amibroker@xxxx, "Stephane Carrasset" <nenapacwanfr@xxxx> wrote:
> Hi,
>
> this the way the dll must be used
> endval and startval must be OHLC arrays.
>
>
> Plot(Close,"",1,64);
> start= PeakBars(H,7,1);
> end= PeakBars(H,7,2);
> LineSup =scTrendLine(H,H,end,start);
> Plot( LineSup ,"",5,1);
>
> or an indicator
> Plot(OBV(),"",1,1);
>
> start= PeakBars(OBV(),2,1);
> end= PeakBars(OBV(),2,2);
> LineSup =scTrendLine(OBV(),OBV(),end,start);
> Plot( LineSup ,"",5,1);
>
>
> > The post below may be a duplicate - I've been having problems
with
> > Yahoo today....
> >
> > ************
> >
> > I just started using Trendline.dll dated Aug.20, 2002.
> >
> > I am have some basic problems. Wondering if there is an update!!
> >
> > Issues I have so far:
> >
> > 1. When I enter constants in the function,
> > PeakTrend = scTrendLine(172,106,6,2);
> >
> > then the plot has a empty value at the end point, so the value
> from
> > endpoint to endpoint-1, is a constant 172. Then the line seems OK.
> >
> > 2. When I use variables in the formula correcsponding to above
> values,
> > PeakTrend = scTrendLine(PK3,PK2,PK3Bars,PK2Bars);
> > the plot is completely different. The values are read incorrectly.
> >
> > Example:
> > Below I have reversed the end and start point value variables.
> > PeakTrend = scTrendLine(PK2,PK3,PK3Bars,PK2Bars);
> > The line above produces a straight HORIZONTAL line.
> >
> >
> >
> > Anyone with similar problems?
> >
> > Ara
|