Volceq
Volceq can automate breakout trading strategies. A box is formed by the highest and the lowest price levels during a certain period. Then we wait for price to break through any of these levels plus/minus a user defined buffer and we open a trade according to the direction of the breakout. There are versions for Metatrader 4 and Metatrader 5.
Entry and exit conditions
Box start hour: Start time for box calculation in hhmm format. Leading zeros can be omitted. It refers to GMT.
Box duration in minutes: Minutes of box duration.
Minimum box height: No trades are opened if the height of the box is less than the defined value.
Minimum box height type: Type of "Minimum box height". Pips means a value in pips, ATRMultiplier means an ATR based value and MinBoxHeight is calculated as a multiplier of ATR, BoxHeight means a multiplier of the height of the box, SLMultiplier means a multiplier of the stop loss value. The same types apply to the following settings as well.
Maximum box height: No trades are opened if the height of the box is more than the defined value.
Maximum box height type: Type of "Maximum box height".
Box buffer: After the box is formed, virtual pending orders are set above and below the box plus/minus the defined value.
Box buffer type: Type of "Box buffer".
Pending orders duration in minutes: Virtual pending orders are canceled after the defined minutes.
Minimum number of bars to close outside level: 0 means an entry signal is valid when bid price exceeds the breakout level, a value of 1 or greater defines the number of bars that should close beyond the breakout level for a valid entry.
Moving average breakout: A moving average is used for entries instead of candles.
Cancel opposite order: Once trade has been opened all opposite direction virtual pending orders are canceled.
Maximum entry distance: Entry distance from breakout level should not exceed the defined value. 0 disables this option.
MaxEntryDistanceType: Type of "Maximum entry distance".
Exit on an opposite signal: The entire trade is closed when an opposite entry signal, defined by the entry settings, occurs. NoExit disables this option, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Reverse signals: A long signal opens a short trade, closes a long trade and vice versa.
Trade settings
Magic number: Magic number of the trade. In case of multiple charts with the same pair the magic numbers should be different. Different pairs can have the same magic number.
Trade comment: Comment of the trade as shown at the Metatrader terminal.
Maximum open trades per direction: Maximum allowed number of simultaneously open trades of the same direction. It can be up to 99. 0 disables this option.
Maximum total trades per direction: Maximum total allowed number of open and closed trades of the same direction during each box breakout period. 0 disables this option.
Maximum total trades per session: Maximum number of trades that can be opened during each trading session. It includes open and closed trades. If there are no trading sessions, it refers to the whole day. 0 disables this option.
Maximum total trades per box: Maximum number of trades that can be opened during each box breakout period. 0 disables this option.
Swing stop loss: False means the stop loss value is relative to entry price. True means the stop loss is relative to the nearest swing plus spread for shorts. Value of "Stop loss" option is added as well. All stop loss and take profit settings are hidden from the broker.
Stop loss at opposite box side: The stop loss is set at the opposite side of the box without taking into account the buffer. Spread is added for shorts. Value of "Stop loss" option is added as well.
Minimum stop loss in pips: If "Swing stop loss" or "Stop loss at opposite box side" is selected, stop loss value should be at least the defined pips. "Swing stop loss" is valid only if "Minimum stop loss in pips" is greater than zero.
Maximum stop loss in pips: If stop loss is greater than the defined pips, it is reduced to "Maximum stop loss in pips". 0 disables this option.
Stop loss: Value of stop loss.
Stop loss type: Type of stop loss.
Multiplier for visible stop loss: Stop loss visible to brokers used in case of disconnection. It is a multiplier of hidden stop loss value.
Take profit: Value of take profit.
Take profit type: Type of take profit.
Multiplier for visible take profit: Take profit visible to brokers used in case of disconnection. It is a multiplier of hidden take profit value.
Breakeven trigger: The stop loss moves to the entry price after price is in profit for the defined value.
Breakeven trigger type: Type of breakeven trigger.
Lock profit: The stop loss moves to the entry price plus the defined value after price reaches "Breakeven trigger" level.
Lock profit type: Type of lock profit.
Trailing start: Trailing stop is activated when price goes above the entry price for longs or below the entry price for shorts, for the defined value.
Trailing start type: Type of "Trailing start".
Trailing stop: Value of trailing stop loss. Stop loss is continuously modified so that its distance from current price is always the defined value. 0 disables this option.
Trailing stop type: Type of trailing stop loss.
Trailing step: The trailing stop loss is modified when price exceeds the level at which the previous trailing stop modification occurred, for the defined value.
Trailing step type: Type of trailing step.
Close profitable trades after minutes: At the defined minutes after its opening, a profitable trade is closed.
Close losing trades after minutes: At the defined minutes after its opening, an unprofitable trade is closed.
Slippage: Maximum allowed slippage of trades.
Maximum spread: No trades are opened when spread is greater than the defined pips. 0 disables this option.
Hedging is allowed: True means that a long and short trade can be simultaneously open.
Minimum distance between trades: Each trade should be opened in a distance from the most recent open trade. This distance should be at least the defined value. 0 disables this option.
Distance type: Type of minimum distance between trades.
Additional trades: ProfitSide means each new trade should be opened lower for shorts or higher for longs, LossSide means each new trade should be opened higher for shorts or lower for longs, from the most recent open trade of the same direction. AnySide disables this option.
Open a new trade after a number of candles: Minimum number of candles between open trades of the same direction.
Send email: Disabled means no email, TradeOpening means an email is sent only when a trade is opened, TradeClosing means an email is sent only when a trade is closed, TradeOpeningOrClosing means an email is sent in both cases.
Send notification: Disabled means no push notification, TradeOpening means a notification is sent only when a trade is opened, TradeClosing means a notification is sent only when a trade is closed, TradeOpeningOrClosing means a notification is sent in both cases.
Show alert: Disabled means no alerts, TradeOpening means alerts only when a trade is opened, TradeClosing means alerts only when a trade is closed, TradeOpeningOrClosing means alerts in both cases.
Trading hours settings
All hour based settings are in hhmmhhmm format and refer to GMT. The first four digits define the start time and the last four digits the end time. Up to three trading sessions can be used. Set it to "00002400" to trade all day.
Automatic GMT offset: Difference between server time and GMT, defined automatically by the EA. It can’t be used during backtests.
Manual GMT offset: Difference between server time and GMT, defined manually.
DST offset: If "Manual GMT offset" is used, Daylight Saving Time correction is automatically applied according to the European Union rules.
First trading session: Trading hours restrictions for the first trading session.
Second trading session: Trading hours restrictions for the second trading session.
Third trading session: Trading hours restrictions for the third trading session.
Monday start trading hour: For each week, new trades are only opened after this hour of Monday. It is in hhmm format. Set it to blank to disable this option.
Friday stop trading hour: Hour of Friday when all trades are closed and no new ones are opened to avoid the weekend gap. It is in hhmm format. Set it to blank to disable this option.
Close trades on Friday: At "Friday stop trading hour" open trades are closed. NoExit means no trades are closed, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Daily stop trading hour: Hour of each day when all trades are closed and no new ones are opened till the next day. It is in hhmm format. Set it to blank to disable this option.
Daily close trades: At "Daily stop trading hour" open trades are closed. NoExit means no trades are closed, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Trade on Sunday: Trading is allowed on Sunday. There is a separate setting for each day.
News filter: No new trades are opened during news period.
Minutes before news to stop trading: The "News filter" is active for the defined number of minutes before news.
Minutes after news to start trading: The "News filter" is active for the defined number of minutes after news.
Money management settings
Lot size: The lot size if money management is not used.
Money management type: Disable means that the lot size is static, BalancePercent means the lot size is a percentage of account balance, EquityPercent means the lot size is a percentage of account equity, StopLossRisk means a percentage of account balance is lost if the trade hits stop loss.
Money management percent value: Lot size is calculated as percentage, depending of money management type.
Martingale type: NoMartingale means no lot size adjustment after stop loss is hit. Percentage means the lot size of the trades after the first one can be increased or decreased by the defined percentage of the lots of the first trade. A positive number means the lot size is increased and a negative number means it is decreased. Multiplication means the lot size is multiplied by this factor.
Martingale progression start: Lot change starts at the defined number of trades that have hit stop loss.
Maximum level of martingale progression: Lot change ends at the defined number of martingale progression. After that the trades take the lot size of the last trade.
Before installing this expert advisor, access the menu Tools → Options → Expert Advisors and make sure that "Allow DLL imports" is enabled.
Entry and exit conditions
Box start hour: Start time for box calculation in hhmm format. Leading zeros can be omitted. It refers to GMT.
Box duration in minutes: Minutes of box duration.
Minimum box height: No trades are opened if the height of the box is less than the defined value.
Minimum box height type: Type of "Minimum box height". Pips means a value in pips, ATRMultiplier means an ATR based value and MinBoxHeight is calculated as a multiplier of ATR, BoxHeight means a multiplier of the height of the box, SLMultiplier means a multiplier of the stop loss value. The same types apply to the following settings as well.
Maximum box height: No trades are opened if the height of the box is more than the defined value.
Maximum box height type: Type of "Maximum box height".
Box buffer: After the box is formed, virtual pending orders are set above and below the box plus/minus the defined value.
Box buffer type: Type of "Box buffer".
Pending orders duration in minutes: Virtual pending orders are canceled after the defined minutes.
Minimum number of bars to close outside level: 0 means an entry signal is valid when bid price exceeds the breakout level, a value of 1 or greater defines the number of bars that should close beyond the breakout level for a valid entry.
Moving average breakout: A moving average is used for entries instead of candles.
Cancel opposite order: Once trade has been opened all opposite direction virtual pending orders are canceled.
Maximum entry distance: Entry distance from breakout level should not exceed the defined value. 0 disables this option.
MaxEntryDistanceType: Type of "Maximum entry distance".
Exit on an opposite signal: The entire trade is closed when an opposite entry signal, defined by the entry settings, occurs. NoExit disables this option, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Reverse signals: A long signal opens a short trade, closes a long trade and vice versa.
Trade settings
Magic number: Magic number of the trade. In case of multiple charts with the same pair the magic numbers should be different. Different pairs can have the same magic number.
Trade comment: Comment of the trade as shown at the Metatrader terminal.
Maximum open trades per direction: Maximum allowed number of simultaneously open trades of the same direction. It can be up to 99. 0 disables this option.
Maximum total trades per direction: Maximum total allowed number of open and closed trades of the same direction during each box breakout period. 0 disables this option.
Maximum total trades per session: Maximum number of trades that can be opened during each trading session. It includes open and closed trades. If there are no trading sessions, it refers to the whole day. 0 disables this option.
Maximum total trades per box: Maximum number of trades that can be opened during each box breakout period. 0 disables this option.
Swing stop loss: False means the stop loss value is relative to entry price. True means the stop loss is relative to the nearest swing plus spread for shorts. Value of "Stop loss" option is added as well. All stop loss and take profit settings are hidden from the broker.
Stop loss at opposite box side: The stop loss is set at the opposite side of the box without taking into account the buffer. Spread is added for shorts. Value of "Stop loss" option is added as well.
Minimum stop loss in pips: If "Swing stop loss" or "Stop loss at opposite box side" is selected, stop loss value should be at least the defined pips. "Swing stop loss" is valid only if "Minimum stop loss in pips" is greater than zero.
Maximum stop loss in pips: If stop loss is greater than the defined pips, it is reduced to "Maximum stop loss in pips". 0 disables this option.
Stop loss: Value of stop loss.
Stop loss type: Type of stop loss.
Multiplier for visible stop loss: Stop loss visible to brokers used in case of disconnection. It is a multiplier of hidden stop loss value.
Take profit: Value of take profit.
Take profit type: Type of take profit.
Multiplier for visible take profit: Take profit visible to brokers used in case of disconnection. It is a multiplier of hidden take profit value.
Breakeven trigger: The stop loss moves to the entry price after price is in profit for the defined value.
Breakeven trigger type: Type of breakeven trigger.
Lock profit: The stop loss moves to the entry price plus the defined value after price reaches "Breakeven trigger" level.
Lock profit type: Type of lock profit.
Trailing start: Trailing stop is activated when price goes above the entry price for longs or below the entry price for shorts, for the defined value.
Trailing start type: Type of "Trailing start".
Trailing stop: Value of trailing stop loss. Stop loss is continuously modified so that its distance from current price is always the defined value. 0 disables this option.
Trailing stop type: Type of trailing stop loss.
Trailing step: The trailing stop loss is modified when price exceeds the level at which the previous trailing stop modification occurred, for the defined value.
Trailing step type: Type of trailing step.
Close profitable trades after minutes: At the defined minutes after its opening, a profitable trade is closed.
Close losing trades after minutes: At the defined minutes after its opening, an unprofitable trade is closed.
Slippage: Maximum allowed slippage of trades.
Maximum spread: No trades are opened when spread is greater than the defined pips. 0 disables this option.
Hedging is allowed: True means that a long and short trade can be simultaneously open.
Minimum distance between trades: Each trade should be opened in a distance from the most recent open trade. This distance should be at least the defined value. 0 disables this option.
Distance type: Type of minimum distance between trades.
Additional trades: ProfitSide means each new trade should be opened lower for shorts or higher for longs, LossSide means each new trade should be opened higher for shorts or lower for longs, from the most recent open trade of the same direction. AnySide disables this option.
Open a new trade after a number of candles: Minimum number of candles between open trades of the same direction.
Send email: Disabled means no email, TradeOpening means an email is sent only when a trade is opened, TradeClosing means an email is sent only when a trade is closed, TradeOpeningOrClosing means an email is sent in both cases.
Send notification: Disabled means no push notification, TradeOpening means a notification is sent only when a trade is opened, TradeClosing means a notification is sent only when a trade is closed, TradeOpeningOrClosing means a notification is sent in both cases.
Show alert: Disabled means no alerts, TradeOpening means alerts only when a trade is opened, TradeClosing means alerts only when a trade is closed, TradeOpeningOrClosing means alerts in both cases.
Trading hours settings
All hour based settings are in hhmmhhmm format and refer to GMT. The first four digits define the start time and the last four digits the end time. Up to three trading sessions can be used. Set it to "00002400" to trade all day.
Automatic GMT offset: Difference between server time and GMT, defined automatically by the EA. It can’t be used during backtests.
Manual GMT offset: Difference between server time and GMT, defined manually.
DST offset: If "Manual GMT offset" is used, Daylight Saving Time correction is automatically applied according to the European Union rules.
First trading session: Trading hours restrictions for the first trading session.
Second trading session: Trading hours restrictions for the second trading session.
Third trading session: Trading hours restrictions for the third trading session.
Monday start trading hour: For each week, new trades are only opened after this hour of Monday. It is in hhmm format. Set it to blank to disable this option.
Friday stop trading hour: Hour of Friday when all trades are closed and no new ones are opened to avoid the weekend gap. It is in hhmm format. Set it to blank to disable this option.
Close trades on Friday: At "Friday stop trading hour" open trades are closed. NoExit means no trades are closed, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Daily stop trading hour: Hour of each day when all trades are closed and no new ones are opened till the next day. It is in hhmm format. Set it to blank to disable this option.
Daily close trades: At "Daily stop trading hour" open trades are closed. NoExit means no trades are closed, ExitOnProfit means only profitable trades are closed, ExitOnLoss means only losing trades are closed, ExitAlways means all trades are closed.
Trade on Sunday: Trading is allowed on Sunday. There is a separate setting for each day.
News filter: No new trades are opened during news period.
Minutes before news to stop trading: The "News filter" is active for the defined number of minutes before news.
Minutes after news to start trading: The "News filter" is active for the defined number of minutes after news.
Money management settings
Lot size: The lot size if money management is not used.
Money management type: Disable means that the lot size is static, BalancePercent means the lot size is a percentage of account balance, EquityPercent means the lot size is a percentage of account equity, StopLossRisk means a percentage of account balance is lost if the trade hits stop loss.
Money management percent value: Lot size is calculated as percentage, depending of money management type.
Martingale type: NoMartingale means no lot size adjustment after stop loss is hit. Percentage means the lot size of the trades after the first one can be increased or decreased by the defined percentage of the lots of the first trade. A positive number means the lot size is increased and a negative number means it is decreased. Multiplication means the lot size is multiplied by this factor.
Martingale progression start: Lot change starts at the defined number of trades that have hit stop loss.
Maximum level of martingale progression: Lot change ends at the defined number of martingale progression. After that the trades take the lot size of the last trade.
Before installing this expert advisor, access the menu Tools → Options → Expert Advisors and make sure that "Allow DLL imports" is enabled.