last ...
This commit is contained in:
@@ -255,6 +255,7 @@ class XCXCAEASignaller : XCBase
|
||||
drawer,
|
||||
decisionZone,
|
||||
decisionZoneDir,
|
||||
unAvailableBoxes,
|
||||
conditions,
|
||||
zIndex,
|
||||
loopback //
|
||||
@@ -288,8 +289,20 @@ class XCXCAEASignaller : XCBase
|
||||
// Do What we Want ...
|
||||
barTraker.Waits();
|
||||
|
||||
//
|
||||
double pivot = isBullish
|
||||
? decisionZone.lower
|
||||
: decisionZone.upper;
|
||||
|
||||
//
|
||||
double point = isBullish
|
||||
? decisionZone.upper
|
||||
: decisionZone.lower;
|
||||
|
||||
//
|
||||
// Prepare Conditions ...
|
||||
mConditions.point = point;
|
||||
mConditions.pivot = pivot;
|
||||
mConditions.symbol = symbol;
|
||||
mConditions.period = period;
|
||||
mConditions.time = zBar.time;
|
||||
@@ -396,40 +409,32 @@ class XCXCAEASignaller : XCBase
|
||||
int toIDX = conditions.decisionZone.ToIndex();
|
||||
int fromIDX = conditions.decisionZone.FromIndex();
|
||||
|
||||
//
|
||||
|
||||
|
||||
// for (int i = fromIDX; i > toIDX; i--)
|
||||
// {
|
||||
// //
|
||||
// // Initializing iBar;
|
||||
// XOHCL iBar;
|
||||
// has = iBar.Init(
|
||||
// conditions.symbol,
|
||||
// conditions.period,
|
||||
// i //
|
||||
// );
|
||||
// if (!has)
|
||||
// {
|
||||
// //
|
||||
// iBar.Clean();
|
||||
// continue;
|
||||
// }
|
||||
|
||||
// //
|
||||
// // Retrieve Conditions ...
|
||||
// XCAEAConditions iConditions;
|
||||
// has = helper.GetConditions(
|
||||
// iConditions,
|
||||
// i,
|
||||
// 5 //
|
||||
// );
|
||||
// if (!has) {
|
||||
// //
|
||||
// iBar.Clean();
|
||||
// iConditions.Clean();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
XBoxZone decisionOBs[];
|
||||
ENUM_XCA_PIVOTS allowedTypes[];
|
||||
if (isBullish)
|
||||
{
|
||||
//
|
||||
Add(
|
||||
XCA_OB_BULL,
|
||||
allowedTypes //
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
Add(
|
||||
XCA_OB_BEAR,
|
||||
allowedTypes //
|
||||
);
|
||||
}
|
||||
int decisionOBsCount = detector.FillPivots(
|
||||
conditions.decisionZone,
|
||||
decisionOBs,
|
||||
unAvailableBoxes,
|
||||
allowedTypes,
|
||||
cTime //
|
||||
);
|
||||
|
||||
//
|
||||
CArrayObj *iObjects;
|
||||
@@ -594,15 +599,15 @@ class XCXCAEASignaller : XCBase
|
||||
|
||||
//
|
||||
// Handling RF ...
|
||||
// double rfReward = risk * 1.85;
|
||||
// double rfPrice =
|
||||
// isBullish
|
||||
// ? entry + rfReward
|
||||
// : entry - rfReward;
|
||||
// Add(
|
||||
// rfPrice,
|
||||
// conditions.targets //
|
||||
// );
|
||||
double rfReward = risk * 1.95;
|
||||
double rfPrice =
|
||||
isBullish
|
||||
? entry + rfReward
|
||||
: entry - rfReward;
|
||||
Add(
|
||||
rfPrice,
|
||||
conditions.targets //
|
||||
);
|
||||
|
||||
//
|
||||
// rfReward = risk * 2.85;
|
||||
@@ -853,7 +858,7 @@ class XCXCAEASignaller : XCBase
|
||||
inputs.caInputs.showFiboLevel5 = false;
|
||||
inputs.caInputs.showPeaksAndVales = true;
|
||||
inputs.caInputs.showPeakAndValeGolden = false;
|
||||
inputs.caInputs.showSupportAndResistance = false;
|
||||
inputs.caInputs.showSupportAndResistance = true;
|
||||
|
||||
//
|
||||
// XOSCS ...
|
||||
|
||||
Reference in New Issue
Block a user