Category: Inputs

I_UseOptimizationLog

This tells the EA to write to the Optimization Log File.   It should only be turned on when using the optimizer and the optimization file will need to be cleared before each run of the optimizer to ensure that the file only contains data from the most recent run of the optimizer.

I_WeekendCloseHour

All open trades are closed before the weekend.   If the hour of the Brokers server is greater than or equal to this input, then all open orders will be closed.      PLEASE BE CAREFUL OF THE TWO SIMILAR INPUTS – WEEKDAY AND WEEKDEND CLOSE HOUR.

I_TradingEndHour

This input is one of two parameters used to restrict the time range of the trading day.   The input hour is with respect to the Brokers time, not the local computer, so 20 would be the equivalent of 20:00 am on the Brokers server.   Trading is allowed if the hour is less than

I_TradingStartHour

This input is one of two parameters used to restrict the time range of the trading day.   The input hour is with respect to the Brokers time, not the local computer, so 5 would be the equivalent of 05:00 am on the Brokers server.   Trading is allowed if the hour is greater than

I_MaxLotSize

To put a limit on the GAP risk that can occur in a trade, the Lot Size is capped so that it cannot exceed this value.

I_StoplossRiskInAcctCurrency

This is the amount to put at risk with each trade in the account currency, for example of it has a value of 100 in a GBP account, then £100 would be put at risk.   It is important to realise that at present commission and swap calculations are excluded from the calculation, so the

I_Slippage

Slippage occurs when an order is executed at a less favourable rate than originally set in the order.   This parameter is used extensively in MQL commands such as OrderSend and OrderClose to limit the value of the maximum price slippage when performing these operations.

I_RiskRewardRatio

Size of the TakeProfit relative to the StopLoss.   For example, if a trade has an I_RiskRewardRatio of 1.5 and 60 points of StopLoss then the TakeProfit should be roughly 90 points, if we ignore the Bid/Ask spread.