PureBytes Links
Trading Reference Links
|
Hi,
The problem is that "Val" retains its value (high of last swing)
until EL finds no swing high within the time span set in the function
call, at which point "Val" is set to -1.
Here's a quick solution, could probably be improved upon.
If (Val>=1 AND Val<>Val[1]) Then Begin
Rob.
> What I'm trying to do is get this to the value of the swinghigh only over
> the bar where it occured. Now it's printing the value for 3 bars.
>
> Any help is much appreciated.
>
> Thanks,
>
> Joe
>
> vars: val(0), txtid(0);
>
> val = swinghigh(1,high, 2,5);
>
> If val >= 1 then begin
> txtid = Text_New(date[2], time, (high[2] +1), numtostr(val, 2));
> end;
>
|