Messages and subscriptions
            
                 24 Apr 2025, 15:15
            
                    
Hi,
I'm trying to use Messages and MessageSubscription 
but I cant find a full sample code in the documentation so I tried it like this
using cAlgo.API;
namespace cAlgo.Robots
{
    [Robot(AccessRights = AccessRights.None)]
    public class TestEvents : Robot
    {
        protected override void OnStart()
        {
            Messages.Send("Test", "Test");
        }
        
        protected override void OnTick()
        {
            // Handle price updates here
        }
        protected override void OnStop()
        {
            // Handle cBot stop here
        }
    }
}but Im getting an error that says
Crashed in OnStart with MissingMethodException: Method not found: 'cAlgo.API.Messages cAlgo.API.Internals.Algo.get_Messages()'.
Target Framework is .NET 6 and I also select compiler to 6.0
cTrader version is 5.1.14.xxxx
Is there something I need to add?
I tested it in ICMarkets and Pepperstone
Replies
                     agent.xzxz
                     27 Apr 2025, 12:59
                                    
RE: Messages and subscriptions
firemyst said:
help . ctrader . com /ctrader-algo/guides/messages-and-subscriptions/
Yes, thats where I read that.
But I got an error which stated above.
@agent.xzxz
                     agent.xzxz
                     13 May 2025, 15:23
                                    
This problem has been solved with the latest update of ctrader.
Thank you!
@agent.xzxz

firemyst
27 Apr 2025, 02:53
help . ctrader . com /ctrader-algo/guides/messages-and-subscriptions/
@firemyst