63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
///////////////////////////////////////////////////////////////
|
|
//
|
|
// SaherElm IT Center MQL5 XTD 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 "XTD Provider";
|
|
|
|
//
|
|
input group "XTD Common";
|
|
input bool enableXTDPProvider = true; // Enable Provider
|
|
input bool xTDEnableAlerts = false; // Enable Events Alert
|
|
input int xTDNumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick
|
|
|
|
//
|
|
input group "XTD Trader";
|
|
input int xTDMagicNumber = 16940561; // Trader MagicNumber
|
|
input int xTDSlippage = 10; // Trader Slippage
|
|
|
|
//
|
|
input group "XTD Trade Management";
|
|
input bool xTDAllowLongTrades = true; // Allow Long Trades
|
|
input bool xTDAllowShortTrades = true; // Allow Short Trades
|
|
|
|
//
|
|
input group "XTD Risk Management";
|
|
input int xTDMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
|
|
input int xTDMaxInProfitTradeAge = 0; // Max In Profit Trades Age
|
|
input int xTDMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age
|
|
input double xTDStaticVolume = 0.02; // Static Volume
|
|
input double xTDVolumeMultiplier = 2; // Volume Multiplier
|
|
input double xTDMinRewardPerTradeInPips = 2; // Min Reward Per Trade In Pips
|
|
input double xTDFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades
|
|
input double xTDBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
|
|
input bool xTDEnableSupportTrades = false; // Enable Support Trade
|
|
|
|
//
|
|
// Validate Inputs before Initialization ...
|
|
bool XTDValidateInputs()
|
|
{
|
|
//
|
|
bool result = false;
|
|
|
|
//
|
|
// TODO: Fix this ...
|
|
result = true;
|
|
|
|
//
|
|
return result;
|
|
} |