Click or drag to resize

S#.RemoteManager

S# provides the ability to remotely manage strategies running on remote servers using the RemoteManagerControl module.

To use the module, it must be added as a WPF element to the screen form.

XAML
...
xmlns:xamlRemote= "clr-namespace:StockSharp.RemoteManager;assembly=StockSharp.RemoteManager"                      
...
<xamlRemote:RemoteManagerControl x:Name="RemoteManagerControl"/>
...

The module operates in two modes - server and client, or in two modes simultaneously.

To initialize the client module, the InitRemoteManagerClient method must be called and the Connector passed to it.

C#
    ...
RemoteManagerControl.InitRemoteManagerClient(Connector);
    ...

To initialize the server module, the InitRemoteManagerServer method must be called and passed to it the ObservableDictionary containing a list of available strategies, and the IList containing strategies launched for trading.

C#
...
//---------------------------------------------------------------------
DictionaryStrategies = new ObservableDictionary<Guid, Strategy>
{
    { new SmaStrategy().GetTypeId(), new SmaStrategy() },
    { new StairsTrendStrategy().GetTypeId(), new StairsTrendStrategy() },
    { new StairsCountertrendStrategy().GetTypeId(), new StairsCountertrendStrategy() }
};
//---------------------------------------------------------------------
...    
RemoteManagerControl.InitRemoteManagerServer(DictionaryStrategies, RealtimeLayoutGroup.Strategies, LogManager);

RemoteManagerControl is implemented in S#.Shell. For a detailed description of how to use it, see RemoteManager.

See Also

Other Resources