tick sounds

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
guest

tick sounds

Postby guest » 07 Aug 2006

Is there a way to cause the tick volume to make a sound? A click or something that would give volume flow info might be really annoying or useful to catch attention when volume picks up.

Thanks

User avatar
Stanley Miller
Posts: 556
Joined: 26 Jul 2005
Has thanked: 3 times

Postby Stanley Miller » 07 Aug 2006

Just create a custom indicator and use Alert function for sounds. Something like:

plot1(volume);
if volume > 100 then
Alert( "Volume Picks Up" ) ;

Guest

Postby Guest » 07 Aug 2006

Just create a custom indicator and use Alert function for sounds. Something like:

plot1(volume);
if volume > 100 then
Alert( "Volume Picks Up" ) ;


Stanly,

Thanks. I don't know how to apply code like that. I was thinking more along the lines of every tick makes a click, the rate would give the aural volume flow. Does the alert show up on the screen? I would prefer not to have that.

guest

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 07 Aug 2006

You'll need to create an indicator - activate the PowerLanguage Editor (the button with a green F in the toolbar), create a new indicator in it, select a name for it, paste the code into the text field and press the F3 button to complile.

The code

plot1(volume);
if volume > 100 then
Alert( "Volume Picks Up" ) ;

does the following - if the value of the data series surpasses 100, an alert is triggered.

After this the new indicator will be accessible through the Add Study menu - add it to your chart, then right-click the chart background and select Format Studies. In the Alerts tab check Enable Alerts, select and assign a .wav file you'd like to use - find a "click" sound somewhere, and uncheck Visual Alert so the text message is not shown.

Guest

Postby Guest » 07 Aug 2006

Alex,

Thanks for the directions, it's "beeping" and as I predicted it is annoying, but it is information.

Is it possible to get a seperate sound for up and down volume? A high and low beep or click? What would a script for that look like, now that I know how to paste into the editor...

thanks so much for your response

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 08 Aug 2006

You can simply create two separate indicators, i.e. add another one that would read:

plot1(volume);
if volume < 50 then
Alert( "Volume Drops" ) ;


Create a study just as before (substitute 50 with a value that is meaningful for your case), save it under a different name and apply to the chart the same way; in the alert settings assign a different .wav file to it.


Return to “User Contributed Studies and Indicator Library”