Initial Commit ...
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
///////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center MQL5 XTF 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 "XTF Provider";
|
||||
|
||||
//
|
||||
input group "XTF Common";
|
||||
input bool xTFEnableProvider = true; // Enable Provider
|
||||
input bool xTFEnableAlerts = false; // Enable Events Alert
|
||||
input int xTFNumberOfItemsPerTick = 110; // Number Of items Readed In Each Tick
|
||||
|
||||
//
|
||||
input group "XTF Trader";
|
||||
input int xTFMagicNumber = 16940567; // Trader MagicNumber
|
||||
input int xTFSlippage = 10; // Trader Slippage
|
||||
|
||||
//
|
||||
input group "XTF Trade Management";
|
||||
input bool xTFAllowLongTrades = true; // Allow Long Trades
|
||||
input bool xTFAllowShortTrades = true; // Allow Short Trades
|
||||
|
||||
//
|
||||
input group "XTF Risk Management";
|
||||
//
|
||||
// Trade Count ...
|
||||
input int xTFMaxAllowedTrades = 5; // Max Allowed Trades at Same Time
|
||||
input int xTFMaxAllowedSupportTrades = 3; // Max Allowed Support Trades for Single Position
|
||||
//
|
||||
// Trades Age ...
|
||||
// 1 Day = 288
|
||||
// 14 Day = 4320
|
||||
input int xTFMaxInDrawDownTradeAge = 0; // Max In DrawDown Trades Age
|
||||
//
|
||||
// Trade Volume ...
|
||||
input double xTFStaticVolume = 0.02; // Static Volume
|
||||
input double xTFVolumeMultiplier = 2; // Volume Multiplier
|
||||
input double xTFMaxSupportedVolumePerTradeInLots = 3; // Max Supported Volume Per Trade in Lot
|
||||
//
|
||||
// Trade Profits ...
|
||||
input double xTFMinRewardPerTradeInPips = 8; // Min Reward Per Trade In Pips
|
||||
input double xTFRiskFreeTradesInPips = 3; // Make Trades Risk Free in Pips
|
||||
input int xTFMinRewardPerSupportTradesInPips = 2; // Min Reward for Support Trade
|
||||
input int xTFSupportTradesPriceDistanceInPips = 2; // Distance Price to Open Support Trade In Pips
|
||||
//
|
||||
// 1000000 Pips = 100$ in EURUSD ...
|
||||
input double xTFMaxAllowedDrawDownPerTradesInPips = 0; // Max Allowed Drawdown Per Trade In Pips
|
||||
input double xTFRiskFreeRate = 0.5; // Volume Multiplier for Risk Free
|
||||
//
|
||||
// Account ...
|
||||
input double xTFFreeMarginFactorForOpenTrades = 0.8; // Minimum Free Marging for Open Trades
|
||||
input double xTFBalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
|
||||
|
||||
//
|
||||
// Validate Inputs before Initialization ...
|
||||
bool XTFValidateInputs()
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
// TODO: Fix this ...
|
||||
result = true;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user