Profile Picture

BrokerPluginService exception aboue function get_SimBroker()

Posted By RE_Fans 5 Years Ago

BrokerPluginService exception aboue function get_SimBroker()

Message
Posted Friday October 19 2012
Hi,

I created a broker interface plugin for RE, and set the function named IsLiveBroker to return true:

      

        public bool IsLiveBroker()
        {
            return true;
        }

      

Then The following procedure results in an exception:

*) create a new "empty" trading system
*) select a symbol folder, and set it's broker to the new 'sample' service.
*) select a symbol in the folder and connect live
*) run the "empty" system live...

I have 0 lead bars, and 'run full sim before starting' is not selected.

The inner exception suggests the sample should be implementing the ISimBroker instead of IBroker (or both)? or did I miss something else here?

Thanks,
RE_Fans

The service plugin BrokerPluginService threw an exception of type RightEdge.Common.RightEdgeError
   at RightEdge.Shared.ServiceWrapper.DoError(Exception e)
   at RightEdge.Shared.BrokerWrapper.SetAccountInfo(IAccountInfo accountInfo)
   at RightEdge.Common.BaseSystemHistory.set_Broker(ISimBroker value)
   at RightEdge.Common.SystemData.set_Broker(ISimBroker value)
   at RightEdge.Shared.SystemWrapper.SetSystemBroker(BrokerAccountState accountState)
   at RightEdge.Shared.SystemWrapper.SwitchToLiveMode(ServiceFactory brokerFactory, PortfolioXml existingPositions, Boolean bFullSim, Boolean bSameBroker)
   at RightEdge.Shared.SystemWrapper.SwitchToLiveMode(ServiceFactory brokerFactory, PortfolioXml existingPositions, Boolean bFullSim, Boolean bSameBroker)
   at RightEdge.Shared.TradingModuleWrapper.SwitchToLiveMode(ServiceAppDomainFactory brokerFactoryFactory, PortfolioXml existingPositions, Boolean bFullSim, Boolean bSameBroker)
   at RightEdge.LiveSystemwindow.StartLiveSystem(xfb471916970b0c9e liveDataWindow, SharedSystemRunData runData, RightEdgeCompiler compiler)

Inner Exception:
The broker did not implement the ISimBroker interface
   at RightEdge.Shared.BrokerWrapper.get_SimBroker()
   at RightEdge.Shared.BrokerWrapper.SetAccountInfo(IAccountInfo accountInfo)




Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems