last ...
This commit is contained in:
@@ -85,10 +85,21 @@ input bool xAU5XCHMAMNAllowLongSignals = true; // Enable Long Signals
|
||||
input bool xAU5XCHMAMNAllowShortSignals = true; // Enable Short Signals
|
||||
|
||||
//
|
||||
bool xAU5IsTestMode = true;
|
||||
// Check in Test Mode or not ...
|
||||
bool xAU5IsTestMode = false;
|
||||
|
||||
//
|
||||
// Detect max Input Length of Indicators ...
|
||||
int xAU5MaxLengthOfInputs = 0;
|
||||
|
||||
//
|
||||
// Detect Calculated Bars ...
|
||||
int xAU5CalculatedBars = 0;
|
||||
|
||||
//
|
||||
// Check prevent Double Signalling on Same Candle ...
|
||||
bool xAU5WaitUntilNextCandle = false;
|
||||
|
||||
//
|
||||
// Signaller Variables ...
|
||||
//
|
||||
@@ -297,7 +308,7 @@ bool XAU5InitIndicators()
|
||||
|
||||
//
|
||||
// Make it Enable when we need to Log Market Conditions ...
|
||||
// xAU5IsTestMode = false; // IsRunningOnTestMode();
|
||||
xAU5IsTestMode = IsRunningOnTestMode();
|
||||
|
||||
//
|
||||
// Check and Calculate Max Length in Inputs ...
|
||||
@@ -865,7 +876,7 @@ bool XAU5HasLongSignal(
|
||||
{
|
||||
//
|
||||
// Only Log Signals Time Market Conditions if is in Testing Mode ...
|
||||
if (xAU5IsTestMode)
|
||||
if (xAU5IsTestMode || xAU5EnableSignalAlerts)
|
||||
{
|
||||
//
|
||||
XMarketConditions mConditions = xAU5Provider.GetLastMarketCondition();
|
||||
@@ -1021,7 +1032,7 @@ bool XAU5HasShortSignal(
|
||||
{
|
||||
//
|
||||
// Only Log Signals Time Market Conditions if is in Testing Mode ...
|
||||
if (xAU5IsTestMode)
|
||||
if (xAU5IsTestMode || xAU5EnableSignalAlerts)
|
||||
{
|
||||
//
|
||||
XMarketConditions mConditions = xAU5Provider.GetLastMarketCondition();
|
||||
|
||||
@@ -38,14 +38,14 @@ input int xAU5NumberOfItemsPerTick = 30; // Number Of items Readed In Each Tick
|
||||
// Alerts ...
|
||||
input bool xAU5EnableAlerts = true; // Enable Events Alert
|
||||
input bool xAU5EnableHourlyAlerts = false; // Send Alert on each new Hour
|
||||
input bool xAU5EnableDailyAlerts = false; // Send Alert on each new Day
|
||||
input bool xAU5EnableWeeklyAlerts = false; // Send Alert on each new Week
|
||||
input bool xAU5EnableDailyAlerts = true; // Send Alert on each new Day
|
||||
input bool xAU5EnableWeeklyAlerts = true; // Send Alert on each new Week
|
||||
input bool xAU5EnableMonthlyAlerts = true; // Send Alert on each new Month
|
||||
//
|
||||
// Reports ...
|
||||
input bool xAU5EnableDailyReports = false; // Send Report on each new Day
|
||||
input bool xAU5EnableWeeklyReports = false; // Send Report on each new Week
|
||||
input bool xAU5EnableMonthlyReports = true; // Send Report on each new Month
|
||||
input bool xAU5EnableMonthlyReports = false; // Send Report on each new Month
|
||||
|
||||
//
|
||||
// Trader and Expert Specific Configurations ...
|
||||
@@ -63,14 +63,12 @@ input bool xAU5AllowShortTrades = true; // Allow Short Trades
|
||||
// Risk Management Configurations ...
|
||||
input group "XAU5 Risk Management";
|
||||
//
|
||||
input bool xAU5UseVirtualTPSl = false; // Use Virtual TP SL
|
||||
//
|
||||
// Trade Count ...
|
||||
input int xAU5MaxAllowedTrades = 10; // Max Allowed Trades at Same Time
|
||||
input ENUM_X_CROSS_SIGNAL_METHOD xAU5CrossSignalsMethod = X_CROSS_SIGNAL_REGULAR; // Handle Cross Signals Method
|
||||
//
|
||||
// Max Allowed Trade Age ...
|
||||
input int xAU5MaxAllowedTradeAge = 2000; // Detect Long Time Trades
|
||||
input int xAU5MaxAllowedTradeAge = 1800; // Detect Long Time Trades
|
||||
input ENUM_X_GUARD_ACTIONS xAU5OldTradesAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_1; // What to do with Old Trades
|
||||
//
|
||||
// Trade Volume Specific Configurations ...
|
||||
@@ -87,9 +85,9 @@ input double xAU5RiskFreeStepInPips = 60; // Make Trades Risk Free Steps in Pips
|
||||
input double xAU5RiskFreeRate = 0.6; // Volume Multiplier for Risk Free Trades
|
||||
//
|
||||
// Guard Riskable Money and Profits ...
|
||||
input double xAU5CriticalDrawDownFactor = 0.43; // Critical Allowed Drawdown Factor based on Balance
|
||||
input double xAU5CriticalDrawDownFactor = 0.30; // Critical Allowed Drawdown Factor based on Balance
|
||||
input ENUM_X_GUARD_ACTIONS xAU5CriticalGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_5; // Specify Guard Action on Critical Drawdown
|
||||
input double xAU5MaxAllowedDrawDownFactor = 0.45; // Max Allowed Drawdown Factor based on Balance
|
||||
input double xAU5MaxAllowedDrawDownFactor = 0.40; // Max Allowed Drawdown Factor based on Balance
|
||||
input ENUM_X_GUARD_ACTIONS xAU5MaxAllowedGuardAction = X_GUARD_PARTIAL_CLOSE_MAX_IN_DD_10; // Specify Guard Action on Max Allowed Drawdown
|
||||
input int xAU5GuardStopoutFiredAfterTouches = 5; // Guard Stopout all Trades if Max Allowed Drawdown touched
|
||||
|
||||
@@ -98,6 +96,11 @@ input int xAU5GuardStopoutFiredAfterTouches = 5;
|
||||
input double xAU5BalanceFactorForOpenTrades = 0.5; // Minimum Balance for Open Trades
|
||||
input double xAU5FreeMarginFactorForOpenTrades = 0.8; // Minimum Free Margin for Open Trades
|
||||
|
||||
//
|
||||
// May be Used Later as Input Params ...
|
||||
bool xAU5UseVirtualTPSl = false; // Use Virtual TP SL
|
||||
bool xAU5EnableSignalAlerts = false; // Send Signal Alert
|
||||
|
||||
//
|
||||
// Validate Inputs before Initialization ...
|
||||
bool XAU5ValidateInputs()
|
||||
|
||||
@@ -513,6 +513,9 @@ void XAU5HandleOpenTrades()
|
||||
// Update Reports ...
|
||||
XAU5UpdateReports();
|
||||
|
||||
//
|
||||
xAU5WaitUntilNextCandle = true;
|
||||
|
||||
//
|
||||
// Open Long Trades ...
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user