Initial Commit ...
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
///////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center MQL5 XTEST 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 "XTEST Provider";
|
||||
|
||||
//
|
||||
input group "XTEST Common";
|
||||
input bool xTESTEnableProvider = true; // Enable Provider
|
||||
input bool xTESTEnableAlerts = false; // Enable Events Alert
|
||||
input int xTESTNumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick
|
||||
|
||||
//
|
||||
input group "XTEST Trader";
|
||||
input int xTESTMagicNumber = 16940567; // Trader MagicNumber
|
||||
input int xTESTSlippage = 10; // Trader Slippage
|
||||
|
||||
//
|
||||
input group "XTEST Trade Management";
|
||||
input bool xTESTUseVirtualTPSL = true; // Use Virtual TP SL
|
||||
input bool xTESTAllowLongTrades = true; // Allow Long Trades
|
||||
input bool xTESTAllowShortTrades = true; // Allow Short Trades
|
||||
|
||||
//
|
||||
input group "XTEST Risk Management";
|
||||
input int xTESTMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
|
||||
input int xTESTMaxInProfitTradeAge = 0; // Max In Profit Trades Age
|
||||
input int xTESTMaxInDrawDownTradeAge = 576; // Max In DrawDown Trades Age
|
||||
input double xTESTStaticVolume = 0.01; // Static Volume
|
||||
input double xTESTVolumeMultiplier = 2; // Volume Multiplier
|
||||
input double xTESTMinRewardPerTradeInPips = 2; // Min Reward Per Trade In Pips
|
||||
input double xTESTFreeMarginFactorForOpenTrades = 0.5; // Minimum Free Marging for Open Trades
|
||||
input double xTESTBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
|
||||
input int xTESTMaxAllowedSupportTrades = 5; // Max Allowed Support Trade
|
||||
input int xTESTSupportTradesPriceDistanceInPips = 5; // Distance Price to Open Support Trade
|
||||
|
||||
//
|
||||
// Validate Inputs before Initialization ...
|
||||
bool XTESTValidateInputs()
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
// TODO: Fix this ...
|
||||
result = true;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user