Apply XCHICHWap EURUSDb Level 1 Fix ...

This commit is contained in:
2024-09-30 22:37:48 +03:30
parent af802243f9
commit 8c17528584
15 changed files with 129378 additions and 13 deletions
Binary file not shown.
+28
View File
@@ -0,0 +1,28 @@
//
// Check At Least 5 Candle Which is Passed Distance ...
bool isPriceBreakeDistance = true;
for (int ci = 1; ci < 6; ci++) {
//
XOHCL iBar;
isPriceBreakeDistance = iBar.Init(
position.symbol,
position.period,
ci //
);
if (!isPriceBreakeDistance) {
break;
}
//
double selectedPrice =
isLong
? MathMin(iBar.close, iBar.low)
: MathMax(iBar.close, iBar.high);
double iDrawdownInPoint = MathAbs(position.entry - selectedPrice);
//
isPriceBreakeDistance = MathAbs(iDrawdownInPoint) > MathAbs(protectDistance);
if (!isPriceBreakeDistance) {
break;
}
}
+4 -1
View File
@@ -147,7 +147,7 @@ input bool eaAllowProtect = true; // Allow Proptecting
input int eaProtectionDelay = 300; // Delay Between two Protection in Secconds input int eaProtectionDelay = 300; // Delay Between two Protection in Secconds
input bool eaProtectOnConditions = true; // Do Protection only when Conditions happens input bool eaProtectOnConditions = true; // Do Protection only when Conditions happens
input bool eaAllowDirectionProtct = false; // Allow also Directional Protect input bool eaAllowDirectionProtct = false; // Allow also Directional Protect
input double eaProtectionStartDistance = 100; // Protection Start Drawdown in Profit input double eaProtectionStartDistance = 100; // Protection Start Drawdown in Point
input double eaProtectionVolumeMultiplier = 1; // Protection Volume Multiplier input double eaProtectionVolumeMultiplier = 1; // Protection Volume Multiplier
// //
@@ -230,6 +230,9 @@ bool eaEnableHedging = false;
bool eaEnableTrailling = false; bool eaEnableTrailling = false;
bool eaEnableProtecting = false; bool eaEnableProtecting = false;
//
// VOLUME GUI ...
// //
// Event Handlers ... // Event Handlers ...