last ...
This commit is contained in:
@@ -54,11 +54,11 @@ class XCXOM1EAExpert : public XCBase
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Management ...
|
// Management ...
|
||||||
bool eaAllowGuards; // Allow Guards
|
bool eaAllowGuards; // Allow Guards
|
||||||
bool eaAllowTrade; // Allow Trade on Signals
|
bool eaAllowTrade; // Allow Trade on Signals
|
||||||
bool eaAllowLongs; // Allow Long Trades
|
bool eaAllowLongs; // Allow Long Trades
|
||||||
bool eaAllowShorts; // Allow Short Trades
|
bool eaAllowShorts; // Allow Short Trades
|
||||||
double eaMaxAllowedDrawdownFactor; // Max Allowed DrawDown for Trade
|
double eaMaxAllowedDrawdownFactor; // Max Allowed DrawDown for Trade
|
||||||
|
|
||||||
//
|
//
|
||||||
// Volume ...
|
// Volume ...
|
||||||
@@ -543,63 +543,66 @@ class XCXOM1EAExpert : public XCBase
|
|||||||
eaTradeManager.SetSymbolConfigurations(eaSymbolConfiguration);
|
eaTradeManager.SetSymbolConfigurations(eaSymbolConfiguration);
|
||||||
count = eaTradeManager.FillSymbolConfigurations(symbolConfigurations);
|
count = eaTradeManager.FillSymbolConfigurations(symbolConfigurations);
|
||||||
has = IsValidSize(count);
|
has = IsValidSize(count);
|
||||||
|
if (has)
|
||||||
//
|
|
||||||
// Here we Apply Symbols,Periods and Configs ...
|
|
||||||
|
|
||||||
//
|
|
||||||
// Configure Indicator ...
|
|
||||||
XOM1Inputs iDZoneOMInputs;
|
|
||||||
iDZoneOMInputs.Default();
|
|
||||||
iDZoneOMInputs.showFiboZone = true;
|
|
||||||
|
|
||||||
//
|
|
||||||
// Configure Signaller ...
|
|
||||||
XOM1SignallerConfig iDZoneSignallerConfig;
|
|
||||||
iDZoneSignallerConfig.processAllTicks = false;
|
|
||||||
|
|
||||||
//
|
|
||||||
// Make Instance Signaller Class ...
|
|
||||||
|
|
||||||
//
|
|
||||||
XCXOM1SignallerBase *iDZoneSignaller = NULL;
|
|
||||||
|
|
||||||
//
|
|
||||||
// Define Signaller ...
|
|
||||||
iDZoneSignaller = new XCXOM1SignallerBase(
|
|
||||||
"XDZN",
|
|
||||||
"XAUUSDb",
|
|
||||||
PERIOD_M5,
|
|
||||||
iDZoneOMInputs,
|
|
||||||
iDZoneSignallerConfig);
|
|
||||||
if (iDZoneSignaller != NULL)
|
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Attach Signaller OnSignal Event Handlers ...
|
// Configure Indicator ...
|
||||||
count = ArraySize(mOnSignalEventHandlers);
|
XOM1Inputs iDZoneOMInputs;
|
||||||
has = IsValidSize(count);
|
iDZoneOMInputs.Default();
|
||||||
if (has)
|
iDZoneOMInputs.showFiboZone = true;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Configure Signaller ...
|
||||||
|
XOM1SignallerConfig iDZoneSignallerConfig;
|
||||||
|
iDZoneSignallerConfig.processAllTicks = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
XCXOM1SignallerBase *iDZoneSignaller = NULL;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Configure Signallers ...
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
for (int i = 0; i < count; i++)
|
// Define Signaller ...
|
||||||
|
iDZoneSignaller = new XCXOM1SignallerBase(
|
||||||
|
"XDZN",
|
||||||
|
symbolConfigurations[i].symbol,
|
||||||
|
symbolConfigurations[i].period,
|
||||||
|
iDZoneOMInputs,
|
||||||
|
iDZoneSignallerConfig //
|
||||||
|
);
|
||||||
|
if (iDZoneSignaller != NULL)
|
||||||
{
|
{
|
||||||
iDZoneSignaller.AddOnSignalEventHandler(mOnSignalEventHandlers[i]);
|
//
|
||||||
|
// Attach Signaller OnSignal Event Handlers ...
|
||||||
|
count = ArraySize(mOnSignalEventHandlers);
|
||||||
|
has = IsValidSize(count);
|
||||||
|
if (has)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
iDZoneSignaller.AddOnSignalEventHandler(mOnSignalEventHandlers[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Register Signaller ...
|
||||||
|
Add(
|
||||||
|
iDZoneSignaller,
|
||||||
|
eaSignallers //
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Register Signaller ...
|
// Cleanup Resources ...
|
||||||
Add(
|
iDZoneOMInputs.Clean();
|
||||||
iDZoneSignaller,
|
iDZoneSignallerConfig.Clean();
|
||||||
eaSignallers //
|
ZeroMemory(iDZoneSignaller);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
SpecifiedClean(symbolConfigurations);
|
||||||
//
|
|
||||||
// Cleanup Resources ...
|
|
||||||
iDZoneOMInputs.Clean();
|
|
||||||
iDZoneSignallerConfig.Clean();
|
|
||||||
ZeroMemory(iDZoneSignaller);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user