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

Re: Re:Code to plot Array that's points are bars apart



PureBytes Links

Trading Reference Links

Inputs: Str(3);
Vars:SH(0),Len(Str+1);
Array:HA[5](0);
SH=SwingHigh(1,H,Str,Len);
If SH <>-1 Then Begin
For Value1= 5 Downto 1 Begin
HA[Value1]=HA[Value1-1];
End;
HA[0]=SH;
End;
If HA[0]>HA[1]Then Plot1(Low,"Low");
If HA[0]<HA[1]Then Plot2(High,"High");


> Help.  The following code is an indicator that prints a dot on the chart
at
> a peak and at the trough of a move.  These points are several bars apart
and
> come from two arrays.  I would like to plot a line from peak to peak but
> don't know how to pull the numbers from the Peaks array or trough array.
> Any help appreciated.
>
>
> Jimmy
>
>
> If Peaks[0] <> Peaks[0][1] then Plot1(Peaks[0]);
> If Trough[0] <> Trough[0][1] then Plot2(Trough[0]);
>
>