Last ...
This commit is contained in:
@@ -326,6 +326,18 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
signal.time = TimeCurrent();
|
||||
signal.target = conditions.target;
|
||||
|
||||
//
|
||||
bool canReplaceTarget =
|
||||
hasLong
|
||||
? signal.target > signal.tp
|
||||
: signal.target < signal.tp;
|
||||
if (canReplaceTarget)
|
||||
{
|
||||
//
|
||||
signal.tp = conditions.target;
|
||||
signal.target = tp;
|
||||
}
|
||||
|
||||
//
|
||||
// Configure Signal Protecting ...
|
||||
// if (hasXPVOBSignal ||
|
||||
@@ -1180,6 +1192,38 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
//
|
||||
setupDir = mXTWPVConditions.dir;
|
||||
setupTime = mXTWPVConditions.setupTime;
|
||||
|
||||
// //
|
||||
// if (!isSetuped)
|
||||
// {
|
||||
// //
|
||||
// bool hasParent = mXTWPVConditions.HasParentPivot();
|
||||
// if (hasParent)
|
||||
// {
|
||||
// //
|
||||
// XCBaseObject *objs[];
|
||||
// mPOIDrawer.DrawPivot(
|
||||
// mXTWPVConditions.parentPivot,
|
||||
// objs,
|
||||
// true, // Drawing State ...
|
||||
// true // Drawing Ticks Zone ...
|
||||
// );
|
||||
// AddObjectsIfNotExists(objs);
|
||||
// }
|
||||
|
||||
// //
|
||||
// bool hasChild = mXTWPVConditions.HasChildPivot();
|
||||
// if (hasChild)
|
||||
// {
|
||||
// //
|
||||
// XCBaseObject *objs[];
|
||||
// mPOIDrawer.DrawPivot(
|
||||
// mXTWPVConditions.childPivot,
|
||||
// objs //
|
||||
// );
|
||||
// AddObjectsIfNotExists(objs);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
result = isSetuped;
|
||||
if (!result)
|
||||
@@ -1581,9 +1625,22 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
|
||||
|
||||
//
|
||||
x121Inputs.showFibo2Levels = false;
|
||||
x121Inputs.showFibo3Levels = true;
|
||||
x121Inputs.showFibo3Levels = false;
|
||||
x121Inputs.showFibo4Levels = false;
|
||||
|
||||
//
|
||||
x121Inputs.showSar = false;
|
||||
x121Inputs.showPeaks = true;
|
||||
x121Inputs.showVales = true;
|
||||
x121Inputs.showVWap = false;
|
||||
x121Inputs.showDonchain = true;
|
||||
|
||||
//
|
||||
x121Inputs.showOpen = true;
|
||||
x121Inputs.showHigh = true;
|
||||
x121Inputs.showClose = true;
|
||||
x121Inputs.showLow = true;
|
||||
|
||||
//
|
||||
// Initialize Cycle Helpers ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user