Candle Range Trader

Expert Advisor for Metatrader 4 platform that will create price range based on the X number of last closed price candles. This range is called “Candle Range” and is used to trade the Forex market like in a breakout trading system. Once market price will reach high/low level of that “Candle Range” EA will open trade(s). You need to set desired start and end trading hours, number of last X closed candles to be used to create “Candle Range”, any other parameters you need and EA will start trading at the high and low level of the “Candle Range”. EA can be set to trade only single “Candle Range” at a particular time or you can have EA trading for an unlimited time by redrawing “Candle Range” and opening new trades when price will continue to create new candles. Candle Range Trader can be used on any currency pair and any time frame. EA can be used on the same currency pair with different magic number to trade unlimited “Candle Range” boxes. You will find example trades illustrated in the images below.
Candle Range Trader features
- EA license works on 1 Real account and any Demo account
- EA is designed for Metatrader 4 platform
- Can handle two lines: high level for BUY signal and low level for SELL signal
- Allows to set number of candles when “Candle Range” expiry. Trades can be closed at that event
- Allows to add desired number of pips to widen range. You can set this in percentage as well
- EA can place regular pending orders or use hidden pending orders
- Stop Loss and/or Take Profit are set in percent of the range size or in pips
- Lot size can be fixed or EA can use Advanced Money management
- OCO supported. EA can cancel opposite pending order when one is triggered
- EA supports unlimited number of range boxes on the same currency pair
- All settings displayed on the chart at the left-top corner in the BlueBox
- Various custom settings can be configured to fit your needs
- Any desirable features can be added individually for additional payment if you purchase unlimited version
Candle Range Trader
Price for lifetime license €120 EUR for single MT4 account
We will contact You after we receive payment
Candle Range Trader (Unlimited)
Price for lifetime license €600 EUR unlimited MT4 accounts
We will contact You after we receive payment
How Candle Range Trader can be useful for me?
There are a lot of similar Forex Trading Systems were you have to take the last high and low price levels of the last X number of candles and open trades when price reach those levels. Usually these are Breakout Trading Systems where you should open BUY trade if price touch the high level and open SELL trade if price touch the low level. If you have full time job or just do not want to sit in front of the computer all day, you will likely miss those moments when you need to open the trade.
Candle Range Trader will help you with this. You just need to set your desired settings and it will monitor the Forex market 24/7 and open trades at the right moment. Many traders use last 4-8 closed candles on a hourly time frame at the London/Europe session open as this is the 4-8 hour range of the previous trading session, then draw lines at the high and low manually or use pending orders. They calculate lot sizes, stop loss, take profit levels manually and that can take much time and effort. Candle Range Trader will do all this automatically in a matter of seconds.
How to use Candle Range Trader?
- Once started EA will draw a range box of previous candles/bars according to your settings
- EA will open trade at high and low of the candle range box
- When running EA on many charts it is recommended to not use pending orders to avoid “Trading Context Busy” error
- If pending orders are disabled (UsePendingOrders=false) you will see two lines ar the high and low of the range box
- EA will open BUY trade when price touch top line
- EA will open SELL trades when price touch bottom line
- Lot Size, Stop Loss, Take Profit and any other settings are controlled by special EA settings which are described below
Some of the Candle Range Trader EA Inputs

there you can set which trades EA can open
EA will activate Trailing Stop function when trade goes in profit by pips value set in TrailStopStartPips. Once activated EA will move stop loss in profit every pips value set in TrailStopMovePips
sets how many pips trade should get into profit before stop loss is moved to the entry price. BreakEvenMovePips is used to set how many pips EA must add to the entry price if you want your trade to be closed in profit on reverse.
you can choose between two different Stop Loss and Take Profit methods. If this value is set to 1, EA will use TakeProfitPercent and StopLossPercent settings to calculate Stop Loss and Take Profit. If StopType value is set to 2, then EA will use TakeProfitPips and StopLossPips
this variable is used to set Take Profit in percent of the range box. Default is 50%. So if range box size is 80 pips, your take profit will be set to 40 pips. You must have StopType=1 to use this value.
this variable is used to set Stop Loss in percent of the Range Box. Default is 100%. So if Range Box size is 80 pips, your take profit will be set to 80 pips. You must have StopType=1 to use this value.
this will set Stop Loss and Take Profit to a fixed number of pips. You must have StopType=2 to use this value.
these variables are used to set the start and end time of the trading session. It must be broker time. By default EA is set to trade always. To use trading session you must have UseTradingSession=true
if this value is set to TRUE EA will close all trades and delete all pending orders at the end of trading session.
here you can set how many previous candles/bars must be used to draw range box.
there you can set after how many candles/bars your pending orders must expire and they will be deleted if not triggered until this time.
if this variable is set to TRUE EA will close all open trades and orders when range box expires after X amount of candles set by ExpiryAfterCandles
if this value is set to TRUE EA will reset range box after X amount of candles set by ExpiryAfterCandles regardless if there are any trades running. If this value is set to FALSE EA will not draw new range box until last trade is closed. This setting is only active if CloseTradesOnExpiry=False
if this variable set to TRUE EA will use pending orders, otherwise EA will use hidden pending orders (default). If pending orders are disabled (UsePendingOrders=false) you will see two lines at the high and low of the range box. When the price reach one of those lines a trade will be opened immediately.
these variables are used to set number of pips that EA will add to high and low of the range box to widen it. This is useful to avoid false breakouts
same as BoxHighAddPips and BoxLowAddPips, but only set in percent of the range box size. EA will widen range box using those values in percent. This is useful to avoid false breakouts.
set maximum allowed spread. If the spread will be higher than this value at the trade open moment, EA will skip the trade
select any desired range box color
when range box size in pips will exceed the MaxBoxRange value or will be less than MinBoxRange value, EA will use this color to draw the box. Easy to spot if range box is too big or small.
choose what colors to use when EA will draw BUY and SELL lines when using hidden entry
if this feature is set to true EA will use special function to calculate lot size. Otherwise it will use FixedLotSize value. Use Risk_Percent variable to set risk in percent. It is calculated using stop loss.
One-Cancels-Other. If set to TRUE EA will cancel opposite pending order when first one is triggered
if this variable is set to TRUE EA will draw additional lines: Take Profit, Stop Loss, Range High and Low lines. These lines helps to see those levels easily when pending orders are not used (UsePendingOrders=false).
Here is how Candle Range Trader works





