Apply XCHICHWap EURUSDb Level 1 Fix ...
This commit is contained in:
Binary file not shown.
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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 ...
|
||||||
|
|
||||||
|
|||||||
+9285
-1
File diff suppressed because it is too large
Load Diff
+11470
-1
File diff suppressed because it is too large
Load Diff
+16450
-1
File diff suppressed because it is too large
Load Diff
+11007
-1
File diff suppressed because it is too large
Load Diff
+10819
-1
File diff suppressed because it is too large
Load Diff
+13547
-1
File diff suppressed because it is too large
Load Diff
+12644
-1
File diff suppressed because it is too large
Load Diff
+12465
-1
File diff suppressed because it is too large
Load Diff
+9836
-1
File diff suppressed because it is too large
Load Diff
+10482
-1
File diff suppressed because it is too large
Load Diff
+5259
-1
File diff suppressed because it is too large
Load Diff
+6082
-1
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user