Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 09:48:10 +0000



Post From: Trigger Alert if price moves x ticks(or points) within y time (in ms)

[2023-12-23 21:45:19]
Sawtooth - Posts: 4120
Any ideas how to tackle this scenario?
There is no way to always avoid this, aside from a custom ACSIL study.

I think using a 6 tick range chart with the Bar Time Duration study, who's output is in SerialDateTime format, would be the easiest.
Then compare its output with 0.5/86400 (a half-second) in a formula like this:
=ID1.SG1<=0.5/86400
where ID1 is the Bar Time Duration study.

This also would work:
=ID1.SG1<=500/86400000

Spreadsheet Example Formulas and Usage: Formula Equivalents of Serial Date Time Values

However, this doesn't solve your no-alert-when-overlapping issue, but it might have fewer missed alerts.
Date Time Of Last Edit: 2023-12-24 00:40:03