Login Page - Create Account

Support Board


Date/Time: Sat, 12 Jul 2025 06:30:26 +0000



Post From: Speed of market

[2025-06-15 16:02:54]
Sawtooth - Posts: 4238
want to look for 2000 volume in 3 seconds
The easiest way to do this is to add a 3 second chart to your chartbook, and use this formula on the Alerts tab of the Color Bar Based On Alert Condition study:
V>=2000

Another way is to add a 2000 volume chart to your chartbook and use this formula on the Alerts tab of the Color Bar Based On Alert Condition study:
=FRACTIME(BARENDDATETIME)-BARTIME<=3/86400

FYI:
- Volume is not the same as Number of Trades.
- FRACTIME(BARDATETIME) is the same as BARTIME. (The FRACTIME function removes the DATE from the DATETIME.)
- BARENDDATETIME is the bar's last update DATETIME, so this value increments as the current bar forms, but is the bar's end DATETIME in previous bars.
- BARDATE, BARTIME, BARDATETIME, and BARENDDATETIME all use the SCDateTime format, where the integer is the number of days since 1/1/1900, and the decimal value is the portion of the day.
- There are 86400 seconds in 24hours, so 3/86400 is equal to 3 seconds in SCDateTime format.
Date Time Of Last Edit: 2025-06-15 18:48:21