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

Re: detect close of bar?



PureBytes Links

Trading Reference Links

On Sun, 14 Mar 2004, Mike Eggleston wrote:

> I know this has come up many times before, but I can't remember
> the solution. Given EasyLanguage in TS 7.x, how can you detect
> close/end of bar from one tick to the next?
>
> Mike

How about something like:

vars: curbar(-1);

if curbar <> barnumber then begin
	curbar = barnumber;
	{ do something at end of bar }
end;