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

Re: Single alerts within a bar in realtime



PureBytes Links

Trading Reference Links

Hello  Thomas,

at  least  it  will  now only beep once per so many minutes.

=============================
input:tyme(5);
var:nextyme(0);

if d>d[1]then nextyme=timetominutes(Sess1FirstBarTime)+tyme;
if timetominutes(t)>=nextyme then begin 
nextyme=nextyme+tyme;

"whatever you want here"

 end;
=============================

TA> Good evening happy traders!

TA> I tried about two years ago to code an alert that would
TA> only trigger once in a bar on a real-time chart. What seems
TA> to happen is that the alert, once triggered, is retriggered
TA> for every tick after that in the bar. You can set single
TA> real-time alerts well enough in Radar Screen. But the last
TA> I heard from Omega was that to do it in a chart you needed
TA> some kind of third-party global routine to do it in a
TA> chart. 

TA> Has anyone come up with a workaround or clever method?

TA> May all your ticks be golden.
TA> ta



--

Have a Great Day, Mark

http://www.markbrown.com