/////////////////////////////////////////////////////// // // SaherElm IT Center MQL5 Class Library // -------------------------------------- // Name: XCRestrictions // Description: provides all Requirements for Apply Restrictions ... // // // Maintainer: // ------------ // Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) // ////////////////////////////////////////////////////// // // Global Properties ... #property library #property copyright "Copyright 2023, SaherElm IT Center" #property link "https://www.saherelm.ir" #property version "1.00" #property strict // // Imports ... #include "../Classes/x-saherelm.base.class.mq5" // // Definitions ... // // All awailable Restrictions Period ... enum ENUM_X_TRADE_RESTRICTIONS_PERIOD { X_TRADE_RESTRICATION_NONE, // None X_TRADE_RESTRICATION_HOURLY, // Per Hour X_TRADE_RESTRICATION_DAILY, // Per Day X_TRADE_RESTRICATION_WEEKLY, // Per Week X_TRADE_RESTRICATION_MONTHLY, // Per Month }; // // Converts to String ... string ToXString(ENUM_X_TRADE_RESTRICTIONS_PERIOD value) { // string result = NULL; // result = EnumToString(value); // return result; } // // Check Has Restrictions or not ... bool HasRestrictions(ENUM_X_TRADE_RESTRICTIONS_PERIOD value) { // bool result = false; // result = value != X_TRADE_RESTRICATION_NONE; // return result; } // // Implementation ... class XCRestrictions : public XCBase { // // Public ... public: // // Protected ... protected: // // Private ... private: // }; //