/////////////////////////////////////////////////////////////// // // SaherElm IT Center MQL5 XCHLH Signal Provider Library Inputs // ----------------------------------------------------------- // // 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 // input group "XCHLH Provider"; // input group "XCHLH Common"; input bool xCHLHEnableProvider = true; // Enable Provider input bool xCHLHEnableAlerts = false; // Enable Events Alert input int xCHLHNumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick // input group "XCHLH Trader"; input int xCHLHMagicNumber = 16940562; // Trader MagicNumber input int xCHLHSlippage = 10; // Trader Slippage // input group "XCHLH Trade Management"; input bool xCHLHAllowLongTrades = true; // Allow Long Trades input bool xCHLHAllowShortTrades = true; // Allow Short Trades // input group "XCHLH Risk Management"; input int xCHLHMaxAllowedTrades = 5; // Max Allowed Trades at Same Time input int xCHLHMaxInProfitTradeAge = 0; // Max In Profit Trades Age input int xCHLHMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age input double xCHLHStaticVolume = 0.02; // Static Volume input double xCHLHVolumeMultiplier = 2; // Volume Multiplier input double xCHLHMinRewardPerTradeInPips = 2; // Min Reward Per Trade In Pips input double xCHLHFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades input double xCHLHBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades // input bool xCHLHEnableSupportTrades = true; // Enable Support Trade input int xCHLHMaxAllowedSupportTrades = 5; // Max Allowed Support Trade // // Validate Inputs before Initialization ... bool XCHLHValidateInputs() { // bool result = false; // // TODO: Fix this ... result = true; // return result; }