Manage filling type

This commit is contained in:
Nkondog Anselme
2022-03-13 16:43:14 +01:00
parent d32c204f22
commit bd0871ff60
4 changed files with 7 additions and 7 deletions
Binary file not shown.
+6 -7
View File
@@ -60,8 +60,6 @@ void OnTick()
SymbolInfoTick(_Symbol,last_tick);
//isPinBar();
CheckOperationHours();
CheckPreChecks();
ScanPositions();
@@ -82,11 +80,12 @@ void OnTick()
return;
Print("Good for trading...");
Print("gEmergencyClose ", gEmergencyClose);
drawdownWatcher();
Print("gEmergencyClose ", gEmergencyClose);
CloseTransactions();
if(InpActivateRiskWatcher)
{
drawdownWatcher();
CloseTransactions();
}
getSignal();
ExecuteEntry();
Binary file not shown.
@@ -81,6 +81,7 @@ input double InpMinLotSize=0.01; //Minimu
input double InpMaxLotSize=100; //Maximum Position Size Allowed
input int InpMaxSpread=10; //Maximum Spread Allowed
input int InpSlippage=1; //Maximum Slippage Allowed in points
input bool InpActivateRiskWatcher=false; //Active risk watcher
input ENUM_MODE_SL InpStopLossMode=SL_FIXED; //Stop Loss Mode
input int InpDefaultStopLoss=200; //Default Stop Loss In Points (0=No Stop Loss)
input int InpMinStopLoss=0; //Minimum Allowed Stop Loss In Points