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

Re: TS2000



PureBytes Links

Trading Reference Links

> write an easy language routine that would tell if the chart you are looking
> at has received data in the last 2 minutes,

How about something like this indicator applied to a 1-tick chart of an
active symbol? It won't tell you anything about the chart you are
looking at but it should give you an alert if your data feed goes down. 

input: nodata(2);
var: t1(0), t2(0);

t1 = calctime(time,-nodata);
t2 = time[1];

if t2 < t1 then begin
  if checkalert then alert = true;
end;

if false then plot1(c,"");

I haven't verified this but it should work in TS4. No idea about BS2Ki.
Set it to update every tick and enable the alert. The chart can run
minimized in the background. It won't plot anything but, if the feed
stops for more than 'nodata' minutes, it will pop up an alert.

-- 
   Dennis