Can't get notifications.playsound to work

Created at 21 Nov 2012, 02:03
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!
lec0456's avatar

lec0456

Joined 14.11.2012

Can't get notifications.playsound to work
21 Nov 2012, 02:03


I can't get the notifications.playsound to work? I tested it out like so, below: 

 

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot]
    public class NewRobot : Robot
    {
        protected override void OnStart()
        {
            Notifications.PlaySound(@"C:\Users\lcespedes\Documents\cAlgo\Sources\Robots\test.mp3");
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}


@lec0456
Replies

lec0456
21 Nov 2012, 08:42

RE: It seems notifications only work live.

So when backtesting notifications, I could not get them to work.  But when I ran the robot live it played the sound and emailed successfully.  I think the notifications should also work while backtesting, just my opinion


@lec0456

admin
21 Nov 2012, 14:23

Thank you for the suggestion, we will take it under consideration.

 


@admin