Alert: Seting the sound from the code

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Alert: Seting the sound from the code

Postby arjfca » 27 Sep 2014

Hello

Maybe an amateur question but did not found a solution

From the code, could I set an alarm to play a define sound when a trend line is crossed. When triggered, it play the default sound ( voice message).

Could I code to select witch sound will be played when triggered.

Martin

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Alert: Seting the sound from the code

Postby JoshM » 27 Sep 2014

There is a PlaySound keyword, but as I understand correctly you want to change the alert settings programmatically? I'm not aware of a way to do that.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Alert: Seting the sound from the code

Postby arjfca » 27 Sep 2014

There is a PlaySound keyword, but as I understand correctly you want to change the alert settings programmatically? I'm not aware of a way to do that.
Good afternoon sir

Thanks for the reply

To your knowledge is there a function to detect if a specific trend line has been crossed or I need to do it by coding the
1- find Trend line price value,
2- compare the actual price with the TL value

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Alert: Seting the sound from the code

Postby TJ » 28 Sep 2014

There is a PlaySound keyword, but as I understand correctly you want to change the alert settings programmatically? I'm not aware of a way to do that.
Good afternoon sir

Thanks for the reply

To your knowledge is there a function to detect if a specific trend line has been crossed or I need to do it by coding the
1- find Trend line price value,
2- compare the actual price with the TL value

Martin
Look up

TL_GetValue


Return to “MultiCharts”