mirror of
https://github.com/rithsila/MT5-EA-Sniper-Strategy.git
synced 2026-08-13 02:38:08 +00:00
Manage filling type
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user