Files
xMQL5/BKPS/Series2/Temp/14-T/Libraries/x-saherelm.xobd.provider.inputs.lib.mq5
T
2024-01-25 04:09:42 +03:30

63 lines
2.0 KiB
Plaintext

///////////////////////////////////////////////////////////////
//
// SaherElm IT Center MQL5 XOBD 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 "XOBD Provider";
//
input group "XOBD Common";
input bool xOBDEnableProvider = true; // Enable Provider
input bool xOBDEnableAlerts = false; // Enable Events Alert
input int xOBDNumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick
//
input group "XOBD Trader";
input int xOBDMagicNumber = 16940563; // Trader MagicNumber
input int xOBDSlippage = 10; // Trader Slippage
//
input group "XOBD Trade Management";
input bool xOBDAllowLongTrades = true; // Allow Long Trades
input bool xOBDAllowShortTrades = true; // Allow Short Trades
//
input group "XOBD Risk Management";
input int xOBDMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
input int xOBDMaxInProfitTradeAge = 0; // Max In Profit Trades Age
input int xOBDMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age
input double xOBDStaticVolume = 0.02; // Static Volume
input double xOBDVolumeMultiplier = 2; // Volume Multiplier
input double xOBDMinRewardPerTradeInPips = 2; // Min Reward Per Trade In Pips
input double xOBDFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades
input double xOBDBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
input bool xOBDEnableSupportTrades = false; // Enable Support Trade
//
// Validate Inputs before Initialization ...
bool XOBDValidateInputs()
{
//
bool result = false;
//
// TODO: Fix this ...
result = true;
//
return result;
}