Golden Dragon II, E-mail notification assistance.

Created at 10 Mar 2017, 16:02
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!
CA

carlosagc86

Joined 04.08.2016

Golden Dragon II, E-mail notification assistance.
10 Mar 2017, 16:02


Hello!

Has anyone tried to set up a “opened position” e-mail notification in this bot? I’ve done as followed:

 

 

protected override void OnPositionOpened(Position openedPosition)

        {

            Notifications.SendEmail("xxxxx@hotmail.com", "xxxxx@hotmail.com", "Golden Dragon", "Position Opened");

 

            switch (openedPosition.TradeType)

            {

                case TradeType.Buy:

                    LongPositions++;

                    break;

                case TradeType.Sell:

                    ShortPositions++;

                    break;

            }.

 

But still can’t get the bot to send me the notification, has anyone had any luck with this issue?


@carlosagc86