Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 15:34:03 +0000



Alert condition for tick charts

View Count: 546

[2022-08-10 17:44:30]
User973745 - Posts: 13
Hi,
I am using a chart with Number of Trades set to 2000 with the Countdown Timer study. What will be the alert condition for the Countdown Timer if I want it to trigger every time there is 500 trades left in the chart?
[2022-08-10 19:04:30]
John - SC Support - Posts: 36295
You can not do the alert based on the Countdown Timer. The Countdown Timer does not output the remaining trades in a bar.

But, you can use the Spreadsheet Formula in combination with the Main Price Graph data for the Number of Trades to do what you want.

In the Spreadsheet Formula, you would enter the following formula:
=2000 - ID0.SG5

ID0 is the Main Price Graph and SG5 is the # of Trades. So this will give you the remaining number of trades for a bar.

Then to get the alert, just set it up on the Alert tab of the Spreadsheet Formula and enter the following alert condition:
= ID1 < 500

You will also want to enable the option for "Only Alert Once per Bar" or you will get an alert for every update once the number of trades is less than 500.

Refer to the following for the Spreadsheet Formula study:
Spreadsheet Formula
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-08-10 20:24:58]
Sawtooth - Posts: 4120
Here's a custom spreadsheet study that does this:
https://www.sawtoothtrade.com/free-stuff-11.html

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account