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 0.01 to 50.0
- Slippage – Slippage in pips – Values 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 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 0.0 to 1.0
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.
- TakeProfit – The take profit (Setting to 0 disables) – Values 0 to 200 depending on the pair being traded.
- TakeProfitD1ATR – Take profit based on a multiple D1 ATR (Setting to 0 disables) – Values from 0.25 to 1.5.
- GMTOffsetHours – Offset in hours for your broker’s time zone – Values -12 to 12.
- StartHour – Start bar hour – Values 0 to 24.
- StartMin – Start bar minutes – Values 0 to 59.
- EndHour – End bar hour – Values 0 to 24.
- EndMin – End bar minutes – Values 0 to 59.
- PreviousBarsForBOBox – Number of previous bars to use for the breakout box from start bar – Values 1 to 10.
- BOBoxGap – Gap in pips from previous high low when creating the breakout box – Values 0 to 10.
- TrailingBars – Number of bars to take into account when trailing stops (0 disables trailing stops) – Values 0 to 10.
- MinTrailingStopLoss – Minimum stop loss size in pips when trailing – Values 0 to 50.
- DeleteInactiveStopOrder – When enabled once a buy or sell is triggered the order in the opposite direction is cancelled – TRUE/FALSE
Optimization & Defaults
Default input values are for USDJPY M30, just remember to adjust GMTOffsetHours to match your brokers time zone. If optimizing, optimization of StartHour, StartMin, EndHour and EndMin are needed to find the best results. Trailing can be enabled after optimisation to improve results and adjust MinTrailingStopLoss to match the pair being tested.