NexusFi: Find Your Edge


Home Menu

 





Sierra Chart sound alert every 'x' ticks (range) to gauge momentum


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Nicolas11 with 10 posts (9 thanks)
    2. looks_two Big Mike with 4 posts (0 thanks)
    3. looks_3 freestyler with 3 posts (1 thanks)
    4. looks_4 Stillgreen with 2 posts (0 thanks)
    1. trending_up 7,995 views
    2. thumb_up 10 thanks given
    3. group 9 followers
    1. forum 18 posts
    2. attach_file 4 attachments




 
Search this Thread

Sierra Chart sound alert every 'x' ticks (range) to gauge momentum

  #1 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608

Hi guys,

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.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
33 thanks
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Bigger Wins or Fewer Losses?
23 thanks
Tao te Trade: way of the WLD
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

Hi @Big Mike,

Question on your specification...

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?

Nicolas

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608



Nicolas11 View Post
Hi @Big Mike,

Question on your specification...

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?

Nicolas

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.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

@Big Mike,

I confirm that I work on this study.

The logics seems to work.
The output in the log (temporary feature) seems OK.
But I have a problem with the alerts.
I need a little more time...

Nicolas


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

@Big Mike,

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!

Nicolas

Attached Files
Elite Membership required to download: MomentumGauge_forBigMike.cpp
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608


Nicolas11 View Post
@Big Mike,

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!

Nicolas

You rock, I will go try it now and report back. I am still on 877.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608

So far so good on ES.

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!

Chart: @EU#C 10000 vol #8 | Study: Gauge Momentum | 3/ 8/2012 4:43:28 Price (1.22) reached previous level (1.22) minus 10 ticks. New alert level is 1.22 +/- 10 ticks | Alert 4 | 2012-08-03 04:43:27


Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769

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).

Nicolas

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
 
Stillgreen's Avatar
 Stillgreen 
Oregon
 
Experience: Beginner
Platform: Sierra Chart
Trading: ES
Posts: 196 since May 2014
Thanks Given: 356
Thanks Received: 248


Nicolas11 View Post
@Big Mike,

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!

Nicolas

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.

Reply With Quote
  #10 (permalink)
 
Nicolas11's Avatar
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769


@Wewe,

Have you associated "Alert 2", "Alert 3", etc. with other .wav sound files?
Refer to General Settings - Sierra Chart

Nicolas

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on May 31, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts