Example #1
0
 /// <summary>
 /// Function: SignalInfoSetInteger
 /// Description: Sets the value of
 /// URL: http://docs.mql4.com/signals/signalinfosetinteger.html
 /// </summary>
 /// <param name="property_id">[in] Signal copy settings property identifier. The value can be one of the values of the enumeration.</param>
 /// <param name="value">[in] The value of signal copy settings property.</param>
 public bool SignalInfoSetInteger (ENUM_SIGNAL_INFO_INTEGER property_id, long value)
 {
     List<Object> parameters = new List<Object>();
     parameters.Add(property_id.ToString());
     parameters.Add(value);
     MQLCommandManager.getInstance().ExecCommand(MQLCommand.SignalInfoSetInteger_1, parameters); // MQLCommand ENUM = 141
     while (MQLCommandManager.getInstance().IsCommandRunning())
     {
         //Thread.Sleep(1);
     }
     MQLCommandManager.getInstance().throwExceptionIfErrorResponse();
     return (bool) MQLCommandManager.getInstance().GetCommandResult();
 }
Example #2
0
 /// <summary>
 /// Function: SignalInfoGetInteger
 /// Description: Returns the value of
 /// URL: http://mm.l/mql4/docs.mql4.com/signals/signalinfogetinteger.html
 /// </summary>
 /// <param name="property_id">[in] Signal copy settings property identifier. The value can be one of the values of the enumeration.</param>
 public long SignalInfoGetInteger(ENUM_SIGNAL_INFO_INTEGER property_id)
 {
     List<Object> parameters = new List<Object>();
     parameters.Add(property_id.ToString());
     MQLCommandManager.getInstance().ExecCommand(MQLCommand.SignalInfoGetInteger_1, parameters);
         // MQLCommand ENUM = 138
     while (MQLCommandManager.getInstance().IsCommandRunning()) Thread.Sleep(1);
     return (long) MQLCommandManager.getInstance().GetCommandResult();
 }