Files
xMQL5/Libraries/x-saherelm.xchma.provider.inputs.lib.mq5
T
2024-01-25 04:09:42 +03:30

63 lines
2.1 KiB
Plaintext

///////////////////////////////////////////////////////////////
//
// SaherElm IT Center MQL5 XCHMA 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 "XCHMA Provider";
//
input group "XCHMA Common";
input bool enableXCHMAPProvider = true; // Enable Provider
input bool xCHMAEnableAlerts = false; // Enable Events Alert
input int xCHMANumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick
//
input group "XCHMA Trader";
input int xCHMAMagicNumber = 16940561; // Trader MagicNumber
input int xCHMASlippage = 10; // Trader Slippage
//
input group "XCHMA Trade Management";
input bool xCHMAAllowLongTrades = true; // Allow Long Trades
input bool xCHMAAllowShortTrades = true; // Allow Short Trades
//
input group "XCHMA Risk Management";
input int xCHMAMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
input int xCHMAMaxInProfitTradeAge = 0; // Max In Profit Trades Age
input int xCHMAMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age
input double xCHMAStaticVolume = 0.02; // Static Volume
input double xCHMAVolumeMultiplier = 2; // Volume Multiplier
input double xCHMAMinRewardPerTradeInPips = 2; // Min Reward Per Trade In Pips
input double xCHMAFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades
input double xCHMABalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
input bool xCHMAEnableSupportTrades = false; // Enable Support Trade
//
// Validate Inputs before Initialization ...
bool XCHMAValidateInputs()
{
//
bool result = false;
//
// TODO: Fix this ...
result = true;
//
return result;
}