This commit is contained in:
2024-11-30 17:36:39 +03:30
parent eca4870c03
commit 4d472bf7e8
3 changed files with 497 additions and 16 deletions
@@ -527,6 +527,14 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
int samePivots = 40;
int requiredPivots = 10;
//
bool useVisionState = false;
bool useConsolidationState = false;
bool useVerificationState = false;
bool useAnalyseState = false;
bool useDecisionState = true;
bool useTriggerState = false;
//
DetectOrderFlow(
cIndex,
@@ -534,7 +542,15 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
requiredPivots,
mTriggerCycleHelper,
mOrderFlow,
mOrderFlowDir //
mOrderFlowDir,
//
// Filling Pivot State ...
useVisionState, // Use Vision State ...
useConsolidationState, // Use Consolidation State ...
useVerificationState, // Use Verification State ...
useAnalyseState, // Use Analyse State ...
useDecisionState, // Use Decision State ...
useTriggerState // Use Trigger State ...
);
//
@@ -567,6 +583,51 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
return result;
}
//
// Draw Last Sar Change ...
string iVLineName = sarChangeBar.GetTag("XSAR");
CChartObjectVLine *iVLineObj;
iVLineObj = new CChartObjectVLine();
result = iVLineObj.Create(
ChartID(),
iVLineName,
0,
sarChangeBar.time //
);
if (result)
{
iVLineObj.Color(clrYellow);
}
//
// Detect Nearest Momentum or Rejection Bar ...
XOHCL decisionBar;
result = mDecisionCycleHelper.DetectNearestDecisionBar(
decisionBar,
marketStructureDir,
cBar //
);
if (!result)
{
return result;
}
//
// Draw Last Decision Bar ...
string iVLineNameDecision = decisionBar.GetTag("XDECISION");
CChartObjectVLine *iVLineDecisionObj;
iVLineDecisionObj = new CChartObjectVLine();
result = iVLineDecisionObj.Create(
ChartID(),
iVLineNameDecision,
0,
decisionBar.time //
);
if (result)
{
iVLineDecisionObj.Color(clrYellow);
}
//
// TODO: Remove This ...
bool ignoreSwingHighs = true;
@@ -688,7 +749,15 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
XC121SMCCycleHelper *pivotHelper, // XPV Helper ...
XPVPivot &orderFlow[], // OrderFlows ...
ENUM_X_DIRECTION &orderFlowDirection, // Order Flow Direction ...
int maxAllowedLoopbackBars = 576 //
//
bool useVisionState = true, // Use Vision State ...
bool useConsolidationState = true, // Use Consolidation State ...
bool useVerificationState = true, // Use Verification State ...
bool useAnalyseState = true, // Use Analyse State ...
bool useDecisionState = true, // Use Decision State ...
bool useTriggerState = true, // Use Trigger State ...
//
int maxAllowedLoopbackBars = 576 //
)
{
//
@@ -975,12 +1044,12 @@ class XCX121SMCTestStrategy : public XCX121SMCBaseStrategy
//
FillPivotSate(
i,
false, // Use Vision State ...
false, // Use Consolidation State ...
false, // Use Verification State ...
false, // Use Analyse State ...
true, // Use Decision State ...
false // Use Trigger State ...
useVisionState, // Use Vision State ...
useConsolidationState, // Use Consolidation State ...
useVerificationState, // Use Verification State ...
useAnalyseState, // Use Analyse State ...
useDecisionState, // Use Decision State ...
useTriggerState // Use Trigger State ...
);
}
}