This commit is contained in:
2025-02-09 10:00:14 +03:30
parent 42fec0e906
commit e53ed9a5c0
8 changed files with 3661 additions and 618 deletions
+4 -60
View File
@@ -475,7 +475,7 @@ class XC121SMCExpert : public XCBaseExpert
/**
* Set Static Balance for Calculate Trade Volume ...
*
* @param value: Argument 1
* @param value: Argument 1
*/
void StaticBalance(double value)
{
@@ -502,7 +502,7 @@ class XC121SMCExpert : public XCBaseExpert
/**
* Set Balance Used In Each Trade ...
*
* @param value: Argument 1
* @param value: Argument 1
*/
void BalancePerTrade(double value)
{
@@ -1004,36 +1004,6 @@ class XC121SMCExpert : public XCBaseExpert
//
Alert(msg);
//
// Draw Signals and Conditions ...
if (eaDrawer != NULL)
{
//
XCBaseObject *objects[];
XCSignalObject *signalObject;
bool isCreated = eaDrawer.DrawSignal(
signal,
signalObject //
);
// DrawX121SMCStrategyConditions(
// conditions,
// objects,
// eaDrawer,
// true, // draw Market Structure ...
// true, // Draw Price Zones ...
// true // Draw Decision Zones ...
// );
//
Add(
(XCBaseObject *)signalObject,
objects //
);
//
Clean(objects);
}
}
//
@@ -1259,7 +1229,6 @@ class XC121SMCExpert : public XCBaseExpert
//
// Parsers ...
XSymbolParser _symbolParser;
eaDrawer = NULL;
//
// Single Symbol ...
@@ -1276,14 +1245,6 @@ class XC121SMCExpert : public XCBaseExpert
_Period //
);
//
if (eaDrawer == NULL)
{
//
eaDrawer = iX121SMCStrategy
.GetDrawer();
}
//
iX121SMCStrategy.AddXSignalEventHandler(OnSignalEventListener);
@@ -1349,14 +1310,6 @@ class XC121SMCExpert : public XCBaseExpert
_Period //
);
//
if (eaDrawer == NULL)
{
//
eaDrawer = iX121SMCStrategy
.GetDrawer();
}
//
iX121SMCStrategy.AddXSignalEventHandler(OnSignalEventListener);
@@ -1371,12 +1324,6 @@ class XC121SMCExpert : public XCBaseExpert
Clean(symbols);
}
//
if (eaDrawer != NULL)
{
mTradeHandler.SetDrawer(eaDrawer);
}
//
return result;
}
@@ -1830,8 +1777,8 @@ class XC121SMCExpert : public XCBaseExpert
strategy.AllowLong(AllowLong());
strategy.AllowShort(AllowShort());
strategy.MaxAllowedSpread(20);
strategy.MaxAllowedSaveTicks(150);
strategy.MinRequiredTicksForSpreadPass(100);
// strategy.MaxAllowedSaveTicks(150);
// strategy.MinRequiredTicksForSpreadPass(100);
//
if (Disabled())
@@ -1978,9 +1925,6 @@ class XC121SMCExpert : public XCBaseExpert
double mHedgingMinVolumeStep; // Minimum Volume Step for Hedging ...
double mHedgeingMinRequiredProfitPerVolumeStep; // Minimum Required Profit Per Volume Step for Hedging ...
//
XCPOIDrawer *eaDrawer; // EA Drawer ...
//
double CalculateAdditionalVolumeMultiplier(XSignal &signal)
{