Input Settings
Order Settings
- MagicOrderNumber – Unique number for the EA to identify its trades. Any integer.
- Lots – Number of fixed lots per trade if money management is off. Values from 0.01 to 50.0.
- Slippage – Slippage in pips. Values from 1 to 10.
- MoneyManagement – If turned on trade lot sizes are calculated on account risk, true/false.
- MoneyManagementRisk – Risk per trade if money management is on. Values from 0.01 to 0.1.
- AllowNewTrades – Turn this of to disable new trades, true/false.
- AccountProfitLock – If money management is on the EA will stop trading if the account balance drops to this fraction of the maximum account balance (0.5 = 50% of account balance). Values from 0.0 to 1.0.
- NFA_FIFOCompliant – Turn this on if you need this to be NFA and FIFO compliant, true/false.
Entry Settings
- TimeFrame – Timeframe drop-down selection to lock EA to a timeframe so that selection of the chart timeframe doesn’t affect the EA. When testing ensure the tester timeframe is set to the same value.
- MaxSpread – Maximum spread in pips that the EA will trade. Values from 1.0 to 10.0.
- Reverse – If turned on trades are reversed, true/false.
- TrendFilter – If turned on trades are filtered by trend direction, true/false.
- TrendTimeFrame – Timeframe drop-down selection for the trend detection.
- GMTOffsetHours – Offset in hours for your broker’s time zone – Values -12 to 12.
- StartCandleHour – Start bar hour – Values 0 to 24.
- EndCandleHour – End bar hour – Values 0 to 24.
- TakeProfit – The take profit (Setting to 0 disables). Values from 2 to 10 depending on the pair being traded.
- StopLoss – The fixed stop loss visible to the broker – Values 25 to 200 depending on the pair being traded.
- RSIPeriod – The RSI period used as entry signal – Values 1 to 40.
- RSIThreshold – The RSI threshold used as entry signal – Values 1 to 40.
- ATRPeriod – The ATR filter period – Values 1 to 100
- ATRThreshold – The ATR threshold in pips – Values 0 to 10
- ATRFilterOnAveraging – If enabled applies the ATR filter on averaging trades, true/false.
- MaxTradeCount – Maximum number of trades open – Values 1 to 10.
- TradeGroupsPerNight – Maximum number of trade groups per night – Values 1 to 10.
- TradeDayAfterLoss – If turned on trading will be disabled the day after a loss, true/false.
- TradeAllOfFirstHour – If turned on ignores MaxTradeCount for the first hour of trading, true/false.
Optimization & Defaults
Default input values are for EURUSD M5. If optimizing, optimization of StartCandleHour, EndCandleHour, TakeProfit, StopLoss, RSIPeriod, MaxTradeCount and TradeGroupsPerNight are needed to find the best results.