apply some changes on signal senario 1 ...

This commit is contained in:
2025-03-09 22:42:47 +03:30
parent 202ae585dd
commit 09f7f9e27a
5 changed files with 1434 additions and 1443 deletions
@@ -268,6 +268,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
type //
);
//
double spread = GetSpread(conditions.symbol);
//
double slAddition = 0;
sl =
@@ -317,8 +320,10 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
hasXWZSignal)
{
//
// Configuring Amount Percent and ETC ...
bool ignoreEAVolume = mXWZConditions.reward > 0 &&
// Configuring Amount Percent and etc ...
// TODO: Enable if required ...
bool ignoreEAVolume = false &&
mXWZConditions.reward > 0 &&
mXWZConditions.amountPercent > 0;
if (ignoreEAVolume)
{
@@ -379,6 +384,13 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
}
}
//
// Apply Spread on Signal's TP ...
signal.tp =
hasLong
? signal.tp + spread
: signal.tp - spread;
//
hasLong = false;
hasShort = false;
@@ -692,7 +704,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
{
//
useXWZSignal = true;
useXWZSignalGuard = false;
useXWZSignalGuard = true;
//
string symbol = GetSymbol();
@@ -735,7 +747,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
bool showAll = false;
//
x121Inputs.showRSI = false;
x121Inputs.showRSI = showAll || false;
//
// XPV ...
@@ -791,7 +803,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XPV ...
x121Inputs.xpvInputs.showSar = showAll || false;
x121Inputs.xpvInputs.showSar = showAll || true;
x121Inputs.xpvInputs.showPeaks = showAll || true;
x121Inputs.xpvInputs.showVales = showAll || true;
x121Inputs.xpvInputs.showGoldenZones = showAll || true;
@@ -810,7 +822,7 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
//
// XSTR ...
x121Inputs.xstrInputs.showStr = showAll || false;
x121Inputs.xstrInputs.showStr = showAll || true;
x121Inputs.xstrInputs.showStrUpper = showAll || false;
x121Inputs.xstrInputs.showStrLower = showAll || false;