bool SaveAlg(AlgId tAlg)
tAlg. Moniker of opened indicators calculation algorithm instance.
The SaveAlg operation saves indicators calculation algorithm instance.
The operation is called for the calculation algorithm instance opened for edit, after making all necessary changes. To execute the operation, in the tAlg field specify moniker of opened calculation algorithm instance. The moniker can be obtained on executing the OpenAlg operation.
The operation results in the logical True if the calculation algorithm was saved successfully.
Below is the example of saving calculation algorithm. The request contains opened calculation algorithm instance moniker. The response contains whether saving was successful.
{
"SaveAlg" :
{
"tAlg" :
{
"id" : "S1!M!S!C1"
}
}
}
{
"SaveAlgResult" : "1"
}
public static bool SaveAlg(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSave = new SaveAlg()
{
tAlg = new AlgId() { id = moniker }
};
//Save indicators calculation algorithm
var result = somClient.SaveAlg(tSave);
return result;
}
See also: