bool CloseAlg(AlgId tAlg)
tAlg. Moniker of opened indicators calculation algorithm instance.
The CloseAlg operation closes indicators calculation algorithm instance.
To execute the operation, in the tAlg field specify the calculation algorithm instance moniker to be closed. The operation results in the logical True if the object was closed successfully.
Below is the example of closing calculation algorithm instance. The request contains moniker of opened calculation algorithm instance. The response contains whether closing is successful.
{
"CloseAlg" :
{
"tAlg" :
{
"id" : "S1!M!S!C1"
}
}
}
{
"CloseAlgResult" : "1"
}
public static bool CloseAlg(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseAlg()
{
tAlg = new AlgId() { id = moniker }
};
//Close indicators calculation algorithm instance
var result = somClient.CloseAlg(tClose);
return result;
}
See also: