Spotware instead of the actual broker
Created at 28 Oct 2022, 15:46
Spotware instead of the actual broker
28 Oct 2022, 15:46
When calling Account.BrokerName on a multi broker cTrader back test I get Spotware instead of the actual broker. Is there a way to get the actual broker?
Thanks
Replies
eynt
09 Nov 2022, 12:47
( Updated at: 21 Dec 2023, 09:23 )
RE:
Hi
I ran a back test of the attached bot and got a print of "Spotware".
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None)]
public class NewcBot4 : Robot
{
[Parameter(DefaultValue = "Hello world!")]
public string Message { get; set; }
protected override void OnStart()
{
// To learn more about cTrader Automate visit our Help Center:
// https://help.ctrader.com/ctrader-automate
Print(Account.BrokerName);
}
protected override void OnTick()
{
// Handle price updates here
}
protected override void OnStop()
{
// Handle cBot stop here
}
}
}
@eynt
eynt
31 Oct 2022, 14:11
RE:
Hello
anything new on the subject?
@eynt