sound in code

Created at 30 Aug 2012, 16:09
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DA

daemon

Joined 30.08.2012

sound in code
30 Aug 2012, 16:09


Hi,

How can I add an alarm or sound in my code? e.g. if the price reaches some number.

Thank you in advance.


@daemon
Replies

admin
31 Aug 2012, 10:08

Hi

You can use the following function:

if(IsRealTime)//This makes sure that the sound will be played only for real time incoming data
{
	Notifications.PlaySound(@"C:\ExampleSound.mp3");
}

 


@admin