last works ...
This commit is contained in:
@@ -559,34 +559,6 @@ class XCXCAEASignaller : XCBase
|
||||
? entry + reward
|
||||
: entry - reward;
|
||||
|
||||
// //
|
||||
// // Handling RF ...
|
||||
// double rfReward = risk * 1.95;
|
||||
// double rfPrice =
|
||||
// isBullish
|
||||
// ? entry + rfReward
|
||||
// : entry - rfReward;
|
||||
// Add(
|
||||
// rfPrice,
|
||||
// conditions.targets //
|
||||
// );
|
||||
|
||||
// //
|
||||
// rfReward = risk * 2.95;
|
||||
// rfPrice =
|
||||
// isBullish
|
||||
// ? entry + rfReward
|
||||
// : entry - rfReward;
|
||||
// Add(
|
||||
// rfPrice,
|
||||
// conditions.targets //
|
||||
// );
|
||||
|
||||
//
|
||||
// Handling Partial Close ...
|
||||
// conditions.partialCloseOnTPLevel = 1;
|
||||
// conditions.partialCloseMultiplier = 0.5;
|
||||
|
||||
//
|
||||
conditions.sl = sl;
|
||||
conditions.tp = tp;
|
||||
@@ -596,6 +568,58 @@ class XCXCAEASignaller : XCBase
|
||||
? X_POSITION_TYPE_LONG
|
||||
: X_POSITION_TYPE_SHORT;
|
||||
|
||||
//
|
||||
// Preparing Targets ...
|
||||
XTarget iTarget;
|
||||
double iPrice = 0;
|
||||
double iReward = 0;
|
||||
|
||||
//
|
||||
// Partial Close 25% of Volume in R2R 1 ...
|
||||
iReward = risk * 1;
|
||||
iPrice =
|
||||
isBullish
|
||||
? entry + iReward
|
||||
: entry - iReward;
|
||||
iPrice = NormalizePrice(iPrice, conditions.symbol);
|
||||
iTarget.target = iPrice;
|
||||
iTarget.volumeMultiplier = 0.25;
|
||||
AddRef(
|
||||
iTarget,
|
||||
targets //
|
||||
);
|
||||
|
||||
//
|
||||
// Partial Close 25% of Volume in R2R 2 ...
|
||||
iReward = risk * 1.90;
|
||||
iPrice =
|
||||
isBullish
|
||||
? entry + iReward
|
||||
: entry - iReward;
|
||||
iPrice = NormalizePrice(iPrice, conditions.symbol);
|
||||
iTarget.target = iPrice;
|
||||
iTarget.volumeMultiplier = 0.25;
|
||||
AddRef(
|
||||
iTarget,
|
||||
targets //
|
||||
);
|
||||
|
||||
//
|
||||
// Risk Free in R2R 3 ...
|
||||
iReward = risk * 2.90;
|
||||
iPrice =
|
||||
isBullish
|
||||
? entry + iReward
|
||||
: entry - iReward;
|
||||
iPrice = NormalizePrice(iPrice, conditions.symbol);
|
||||
// iTarget.doRF = true;
|
||||
iTarget.volumeMultiplier = 0.25;
|
||||
iTarget.target = iPrice;
|
||||
AddRef(
|
||||
iTarget,
|
||||
targets //
|
||||
);
|
||||
|
||||
//
|
||||
// Handling Targets ...
|
||||
bool hasTargets = HasChild(targets);
|
||||
|
||||
Reference in New Issue
Block a user