Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Sierra Chart sound alert every 'x' ticks (range) to gauge momentum
I am hopeful someone could code an indicator for Sierra that will sound an alert every 'x' ticks, where x is a range. For example, I can apply this indicator to my ES 100,000 volume chart and set it to sound an alert every 4 ticks in range (1 ES point, so for example, alert triggers at 1370 and then 1371 and then 1372, if price moves back down then 1371, 1370, 1369, so forth).
The sound alert would just be a very brief 'click' type of noise, I would use this to bring my attention to my charts should the market start to move faster.
I'd like it to work on any bar type - it is not triggered on close of bar, bar type/size is irrelevant.
Let's suppose that the price reaches 1372: alert.
Then 1371.75
Then 1372 again: alert? or should we wait for the price to reach 1371 before an alert be triggered again at 1372?
There should be an increase/decrease of 'x' ticks between alerts. So if alert triggered at 1372, and the 'x' is set to 4 ticks, then it cannot trigger again until price is >= 1373 or <= 1371.
First, thank you... since your request allowed me to discover that is was possible to redirect sound from a VPS to my home computer. It is probably obvious for everybody. Never too late for me!
Enclosed please find a proposition (v1).
Inputs:
- Number of ticks between alerts: 4 in your ES example (1371, 1372, etc.)
- Offset in ticks: 0 (if you choose 1, the levels become 1371.25, 1372.25, etc.)
- Alert sound number: the sound number you want for the alert.
When relevant, the study:
- produces the sound associated with the chosen "Alert sound number" (this choice can be made in Global Settings / General Settings), and
- prints a line in the Alerts log (Window / Show/Hide Alerts Log), which is not the normal log; this line explains why the alert was triggered (which level was reached and what are the two next levels).
Note: at least for me, Sierra Chart does not produce any sound with pre-release 879. I had to downgrade to build 877.
I do not pretend that this code is perfect. I am new to the coding with Sierra Charts. Any comment welcome!
I also applied to Euro, which is formatted 0.1234, the alert seems to only look at 1.22 format (two decimals). I checked the value format option in the indicator and I have it set to .0001.
Here is a log sample:
Chart: @EU#C 10000 vol #8 | Study: Gauge Momentum | 3/ 8/2012 4:20:31 Price (1.22) reached previous level (1.22) + 10 ticks. New alert level is 1.22 +/- 10 ticks | Alert 4 | 2012-08-03 04:20:30
The alert does seem to work on Euro correctly in spite of this, so no big deal!
All the logic uses sc.TickSize, so it should only be a problem in the display within the Alerts log.
It is due to the way the numbers are truncated during the print in the Alerts log.
To avoid this and obtain 1.2345, you could find-and-replace the 6 "%.2f" by "%.4f" or any format you will prefer (I am not very familiar with these C-like fprintf formats).
Hi Nicolas, I've installed this in Sierra and it works well. But I have tried to change the Alert Sound to a different one
and it still plays the original one. Any advice ? Thank you.