last works on protection ...
This commit is contained in:
Binary file not shown.
@@ -144,6 +144,7 @@ input group "In Drawdown Positions Protecting";
|
|||||||
// Protect ...
|
// Protect ...
|
||||||
input group "Protect";
|
input group "Protect";
|
||||||
input bool eaAllowProtect = true; // Allow Proptecting
|
input bool eaAllowProtect = true; // Allow Proptecting
|
||||||
|
input int eaProtectionDelay = 60; // 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 = 50; // Protection Start Drawdown in Profit
|
input double eaProtectionStartDistance = 50; // Protection Start Drawdown in Profit
|
||||||
@@ -637,6 +638,7 @@ bool InitialEA()
|
|||||||
//
|
//
|
||||||
// Protect ...
|
// Protect ...
|
||||||
eaTradeHandler.AllowProtect(eaAllowProtect);
|
eaTradeHandler.AllowProtect(eaAllowProtect);
|
||||||
|
eaTradeHandler.ProtectionDelay(eaProtectionDelay);
|
||||||
eaTradeHandler.ProtectOnConditions(eaProtectOnConditions);
|
eaTradeHandler.ProtectOnConditions(eaProtectOnConditions);
|
||||||
eaTradeHandler.AllowDirectionProtct(eaAllowDirectionProtct);
|
eaTradeHandler.AllowDirectionProtct(eaAllowDirectionProtct);
|
||||||
eaTradeHandler.ProtectionStartDistance(eaProtectionStartDistance);
|
eaTradeHandler.ProtectionStartDistance(eaProtectionStartDistance);
|
||||||
|
|||||||
+4
-1
@@ -9,6 +9,9 @@
|
|||||||
"c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include\\Include",
|
"c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include\\Include",
|
||||||
"c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include"
|
"c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include"
|
||||||
],
|
],
|
||||||
"C_Cpp.clang_format_style": "{ BasedOnStyle: Microsoft, UseTab: Never, IndentWidth: 4, TabWidth: 4, ColumnLimit: 0}"
|
"C_Cpp.clang_format_style": "{ BasedOnStyle: Microsoft, UseTab: Never, IndentWidth: 4, TabWidth: 4, ColumnLimit: 0}",
|
||||||
|
"files.associations": {
|
||||||
|
"*.mq5": "cpp"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user