147 lines
6.7 KiB
Plaintext
147 lines
6.7 KiB
Plaintext
///////////////////////////////////////////////////////////////
|
|
//
|
|
// SaherElm IT Center MQL5 XTM Signal Provider Inputs Library
|
|
// -----------------------------------------------------------
|
|
// Name: XTMSignalProviderInputs
|
|
// Description: all Inputs for XTM based signal provider ...
|
|
//
|
|
//
|
|
// Maintainer:
|
|
// ------------
|
|
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
|
//
|
|
//////////////////////////////////////////////////////
|
|
//
|
|
input group "XTM Provider";
|
|
|
|
//
|
|
input group "XTM Common";
|
|
input bool enableXTMProvider = true; // Enable Provider
|
|
input bool xTMEnableAlerts = true; // Enable Events Alert
|
|
input int xTMNumberOfItemsPerTick = 5; // Number of reading Items per Tick
|
|
|
|
//
|
|
input group "XTM Indicator";
|
|
input int xTMMaPeriod = 28; // Period
|
|
input int xTMMaShift = 0; // Shift
|
|
input ENUM_MA_METHOD xTMMaMethod = MODE_EMA; // Method
|
|
input ENUM_APPLIED_PRICE xTMMaAppliedTo = PRICE_CLOSE; // Applied To
|
|
|
|
//
|
|
input group "XOBD Indicator";
|
|
input int xOBDLength = 5; // Market Length
|
|
input double xOBDArrowDistanceFromPrice = 0; // Arrow Distrance from Price
|
|
input uchar xOBDSwingHighArrowCode = 108; // Swing High Arrow Code
|
|
input color xOBDSwingHighArrowColor = clrMagenta; // Swing High Arrow Color
|
|
input uchar xOBDSwingLowArrowCode = 108; // Swing Low Arrow Code
|
|
input color xOBDSwingLowArrowColor = clrAqua; // Swing Low Arrow Color
|
|
|
|
//
|
|
input group "XTD Oscillator";
|
|
input int xTDLength = 14; // Market Length
|
|
input bool xTDDrawCrosses = false; // Draw Cross Arrows
|
|
input uchar xTDBullishArrowCode = 228; // Cross Over Arrow Code
|
|
input color xTDBullishArrowColor = clrAqua; // Cross Over Arrow Color
|
|
input uchar xTDBearishArrowCode = 230; // Cross Under Arrow Code
|
|
input color xTDBearishArrowColor = clrMagenta; // Cross Under Arrow Color
|
|
|
|
//
|
|
input group "XTPD Oscillatro";
|
|
input int xTPDLength = 14;
|
|
|
|
//
|
|
input group "XCHMA Oscillator";
|
|
input group "XCHMA Hot Areas";
|
|
input bool xCHMADrawHotAreas = true; // Draw Hot Areas Symbol
|
|
input uchar xCHMAHotBullishArrowCode = 228; // Hot Bullish Arrow Code
|
|
input color xCHMAHotBullishArrowColor = clrAqua; // Hot Bullish Arrow Color
|
|
input uchar xCHMAHotBearishArrowCode = 230; // Hot Bearish Arrow Code
|
|
input color xCHMAHotBearishArrowColor = clrFuchsia; // Hot Bearish Arrow Color
|
|
|
|
//
|
|
// LC Inputs ...
|
|
input group "XCHMA Long Cycle";
|
|
input group "XCHMA LC Market";
|
|
input int xCHMALcFastLength = 20; // Fast Length
|
|
input int xCHMALcSlowLength = 50; // Slow Length
|
|
input ENUM_MA_METHOD xCHMALcMethod = MODE_EMA; // Calculation Method
|
|
input ENUM_APPLIED_PRICE xCHMALcAppliedTo = PRICE_CLOSE; // Applied To
|
|
input group "XCHMA LC Style";
|
|
input int xCHMALcDrawWidth = 1; // Draw Width
|
|
input ENUM_DRAW_TYPE xCHMALcDrawType = DRAW_LINE; // Draw Type
|
|
input ENUM_LINE_STYLE xCHMALcDrawStyle = STYLE_DOT; // Draw Style
|
|
input color xCHMALcFastColor = clrAqua; // Fast Color
|
|
input color xCHMALcSlowColor = clrFuchsia; // Slow Color
|
|
input group "XCHMA LC Drawings";
|
|
input bool xCHMALcDrawFast = true; // Draw Fast
|
|
input bool xCHMALcDrawSlow = true; // Draw Slow
|
|
input bool xCHMALcDrawCrosses = true; // Draw Cross Lines
|
|
|
|
//
|
|
// MC Inputs ...
|
|
input group "XCHMA Medium Cycle";
|
|
input group "XCHMA MC Market";
|
|
input int xCHMAMcFastLength = 10; // Fast Length
|
|
input int xCHMAMcSlowLength = 30; // Slow Length
|
|
input ENUM_MA_METHOD xCHMAMcMethod = MODE_EMA; // Calculation Method
|
|
input ENUM_APPLIED_PRICE xCHMAMcAppliedTo = PRICE_CLOSE; // Applied To
|
|
input group "XCHMA MC Style";
|
|
input int xCHMAMcDrawWidth = 1; // Draw Width
|
|
input ENUM_DRAW_TYPE xCHMAMcDrawType = DRAW_LINE; // Draw Type
|
|
input ENUM_LINE_STYLE xCHMAMcDrawStyle = STYLE_DOT; // Draw Style
|
|
input color xCHMAMcFastColor = clrLime; // Fast Color
|
|
input color xCHMAMcSlowColor = clrRed; // Slow Color
|
|
input group "XCHMA MC Drawings";
|
|
input bool xCHMAMcDrawFast = true; // Draw Fast
|
|
input bool xCHMAMcDrawSlow = true; // Draw Slow
|
|
input bool xCHMAMcDrawCrosses = false; // Draw Cross Lines
|
|
|
|
//
|
|
// SC Inputs ...
|
|
input group "XCHMA Short Cycle";
|
|
input group "XCHMA SC Market";
|
|
input int xCHMAScFastLength = 7; // Fast Length
|
|
input int xCHMAScSlowLength = 14; // Slow Length
|
|
input ENUM_MA_METHOD xCHMAScMethod = MODE_EMA; // Calculation Method
|
|
input ENUM_APPLIED_PRICE xCHMAScAppliedTo = PRICE_CLOSE; // Applied To
|
|
input group "XCHMA SC Style";
|
|
input int xCHMAScDrawWidth = 1; // Draw Width
|
|
input ENUM_DRAW_TYPE xCHMAScDrawType = DRAW_LINE; // Draw Type
|
|
input ENUM_LINE_STYLE xCHMAScDrawStyle = STYLE_SOLID; // Draw Style
|
|
input color xCHMAScFastColor = clrLightBlue; // Fast Color
|
|
input color xCHMAScSlowColor = clrLightSalmon; // Slow Color
|
|
input group "XCHMA SC Drawings";
|
|
input bool xCHMAScDrawFast = true; // Draw Fast
|
|
input bool xCHMAScDrawSlow = true; // Draw Slow
|
|
input bool xCHMAScDrawCrosses = false; // Draw Cross Lines
|
|
|
|
//
|
|
input group "XTM Trader";
|
|
input int xTMMagicNumber = 16940563; // Trader MagicNumber
|
|
input int xTMSlippage = 10; // Trader Slippage
|
|
|
|
//
|
|
input group "XTM Trade Management";
|
|
input bool xTMAllowLongTrades = true; // Allow Long Trades
|
|
input bool xTMAllowShortTrades = false; // Allow Short Trades
|
|
input int xTMMaxOpenTrades = 1; // Max Open Trades at Same Time
|
|
input bool xTMEnableGridTrades = true; // Enable Grid Trades
|
|
input double xTMGridDistanceInPips = 20; // Grid to Long Price Distance in Pips
|
|
input double xTMGridVolumeMultiplier = 2; // Grid Volume Multiplier at Distance
|
|
|
|
//
|
|
input group "XTM Risk Management";
|
|
input double xTMR2r = 2; // Risk To Reward Ratio
|
|
input int xTMLoopback = 7; // Loopback Length for TP/SL Calculation
|
|
input int xTMMaximumTradeLife = 0; // Maximum Trade Life in Candles
|
|
input double xTMMaximumAllowedDrawDownFactorPerTrade = 0; // Maximum Allowed DrawDown per Trade
|
|
input double xTMMinimumBalanceFactorForTrade = 0.5; // Minimum required Balance for Trading
|
|
input double xTMMaximumEquityFactorForTrade = 0.2; // Minimum required Equity for Trading
|
|
input double xTMStaticVolume = 0.01; // Static Volume
|
|
input bool xTMUseDynamicVolume = true; // Enable Dynamic Volume
|
|
input double xTMBalanceIncreasedFactor = 0.5; // Balance Increase Multiplier
|
|
input double xTMVolumeIncreasedFactor = 0.01; // Volume Increase Multiplier
|
|
//
|
|
// END Inputs ...
|
|
//
|