63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
///////////////////////////////////////////////////////////////
|
|
//
|
|
// SaherElm IT Center MQL5 XTM 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 "XTM Provider";
|
|
|
|
//
|
|
input group "XTM Common";
|
|
input bool enableXTMPProvider = true; // Enable Provider
|
|
input bool xTMEnableAlerts = false; // Enable Events Alert
|
|
input int xTMNumberOfItemsPerTick = 72; // Number Of items Readed In Each Tick
|
|
|
|
//
|
|
input group "XTM Trader";
|
|
input int xTMMagicNumber = 16940560; // Trader MagicNumber
|
|
input int xTMSlippage = 10; // Trader Slippage
|
|
|
|
//
|
|
input group "XTM Trade Management";
|
|
input bool xTMAllowLongTrades = true; // Allow Long Trades
|
|
input bool xTMAllowShortTrades = true; // Allow Short Trades
|
|
|
|
//
|
|
input group "XTM Risk Management";
|
|
input int xTMMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
|
|
input int xTMMaxInProfitTradeAge = 0; // Max In Profit Trades Age
|
|
input int xTMMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age
|
|
input double xTMStaticVolume = 0.02; // Static Volume
|
|
input double xTMVolumeMultiplier = 2; // Volume Multiplier
|
|
input double xTMMinRewardPerTradeInPips = 1; // Min Reward Per Trade In Pips
|
|
input double xTMFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades
|
|
input double xTMBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
|
|
input bool xTMEnableSupportTrades = false; // Enable Support Trade
|
|
|
|
//
|
|
// Validate Inputs before Initialization ...
|
|
bool XTMValidateInputs()
|
|
{
|
|
//
|
|
bool result = false;
|
|
|
|
//
|
|
// TODO: Fix this ...
|
|
result = true;
|
|
|
|
//
|
|
return result;
|
|
} |