System Trading

Bollinger Bands N Positions v2: Upgrade Your Trading with This MetaTrader 5 EA
MetaTrader5
Bollinger Bands N Positions v2: Upgrade Your Trading with This MetaTrader 5 EA

Welcome back, fellow traders! Today, we're diving into the latest upgrade of the Bollinger Bands N Positions Expert Advisor (EA) designed for MetaTrader 5. If you're looking to enhance your trading strategy using the iBands (Bollinger Bands) indicator, this update is just what you need! With this EA, you can automatically close opposite positions when a trading signal is received. Sounds simple, right? Let’s break down what’s new in version 2! What’s New in Version 2 Stop Loss – Set a Stop Loss value (0 to disable); Take Profit – Set a Take Profit value (0 to disable); Trailing Stop – Configure a Trailing Stop value (0 to disable); Trailing Step – Define your trailing step (make sure this is NOT set to zero if you enable Trailing Stop!); Max Positions – Limit the number of open positions (minimum allowed is 1 position). Key Features Operates on a new bar; No limits on the number of positions; Closes all SELL positions upon receiving a BUY signal; Closes all BUY positions upon receiving a SELL signal; Checks for sufficient funds for a double lot before opening a trade. Here's a sneak peek of the performance during testing with default parameters on EURUSD, H1, from June 6, 2017, to April 10, 2018: Input Values Trade Parameters: Lots – Volume of the position to open; Stop Loss (in pips) – Level for Stop Loss; Take Profit (in pips) – Level for Take Profit; Trailing Stop (in pips) – Value for trailing; Trailing Step (in pips) – Value for trailing step; Max Positions – Maximum allowed open positions at once. Bollinger Bands Parameters: Period of Moving Average – Period for calculating the average line; Shift – Horizontal shift of the indicator; Number of Standard Deviations – Number of deviations for the indicator; Type of Price – Price used for calculations. Arrow Parameters – Visualization settings for signals: Color for Buy signals; Color for Sell signals.

2018.06.06
ChannelEA1: Your Go-To System Trading Tool for MetaTrader 5
MetaTrader5
ChannelEA1: Your Go-To System Trading Tool for MetaTrader 5

ChannelEA1 is a nifty little system trading tool designed to work seamlessly with the ChannelInd indicator. The best part? You don't actually need the indicator for it to function since all the necessary calculations are handled directly within the EA. This EA trades on a set schedule. Based on the trading times you specify in the settings, it places two pending limit orders at the edges of the channel and sets Take Profit levels on the opposite side—without a Stop Loss. Once the trading period wraps up, all open positions are closed, and any untriggered orders are wiped clean. Keep in mind that this Expert Advisor is primarily intended for training purposes. ChannelEA1 comes with eight customizable input parameters: Begin Hour - when your trading session kicks off End Hour - when your trading session wraps up Expert's Magic Number - a unique ID for the EA's trades Lots - the trade volume you want to open Price Slippage - the maximum slippage you’re willing to accept when opening trades Spread Multiplier for Stops - a multiplier used to determine the proper distance for stop orders (*). Wait Time for Environment Update (in seconds) - how long to wait for the trading environment to refresh (**) Attempts to Get Environment State - how many tries to get an accurate read on the trading environment (***) * Keep in mind that for pending orders (as well as Stop Loss or Take Profit), there’s a minimum distance requirement known as StopLevel. This means that you can't position your pending order (including Stop Loss or Take Profit) too close to the market price. If StopLevel is set to zero, it doesn’t mean it doesn’t exist; it simply means it’s variable. Usually, the minimum distance equals the spread, but sometimes even double the spread isn’t enough. This parameter lets you set a custom multiplier for the spread to calculate your minimum order distance. ** When an order is sent to the server, delays can occasionally throw off the count of market positions. If this happens, the EA will wait for the specified seconds before rechecking the environment. *** The number of waiting periods you can set within one tick is adjustable in the EA settings. After all attempts to get an accurate environment, the EA will pause and wait for the next tick. If the environment hasn’t updated by then, the EA is ready to retry on the new tick. To evaluate the strategy, we ran tests with default settings using data from January 2, 2017, to March 29, 2018. Unfortunately, the EA didn’t perform well with these default settings. So, we optimized the trading start and end parameters (Begin Hour and End Hour) specifically for EURUSD on an H1 chart in the 1-minute OHLC mode. The results were much more promising this time:

2018.06.06
Cross_Line_Trader: Your Go-To Semi-Automatic EA for MetaTrader 5
MetaTrader5
Cross_Line_Trader: Your Go-To Semi-Automatic EA for MetaTrader 5

Meet the Cross_Line_Trader, a semi-automated trading system designed to help you make the most of your trading strategy on MetaTrader 5. This handy Expert Advisor (EA) opens positions based on the intersections of lines you draw on your chart, making it easier to capture profitable trades. Four Types of Lines Supported Trendline Trendline by Angle Vertical Line Horizontal Line Three Ways to Interact with the Lines Open a position in the direction indicated by the line's description; Only buy; Only sell. When the price crosses a line and a position is opened, that line becomes inactive, meaning it won’t trigger another trade. You can adjust the inactive line's type in the settings to prevent reopening after crossing. Currently, the EA only checks for intersections at the opening of a new bar. This means it looks for situations where the Open price of the previous bar and the Open price of the current bar are on opposite sides of the crossed line. Intersecting Trendlines The EA checks the “Ray to the right” parameter for trendlines: If enabled, any intersection at the current bar is counted; If disabled, the intersection is only valid if the right edge of the line is either on the current bar or to the right of it. If the price doesn’t cross the line before its right edge moves past the last bar, the line becomes inactive. Intersecting Horizontal Lines When the Open price of the last bar crosses the line along with the Open price of the current bar, a position opens based on your settings, and that line becomes inactive. Intersecting Vertical Lines As soon as the current bar opens behind the bar where the vertical line is set, a position opens according to your settings, and the line is then marked inactive. This EA is tailored for use on hedging accounts. If you attempt to use it on a netting account, you’ll receive a warning, and the EA will unload. You can customize the volume of positions opened by the EA in the settings. Additionally, you can set your stop loss and take profit in points. If invalid values are specified, the EA will adjust them to the minimum StopLevel allowed for the symbol. The EA also takes care of the lot size. If an incorrect value is entered, it will adjust the lot size to allow for a position to be opened. If there’s not enough capital to open even the minimum lot size, no position will be opened. The EA comes with 13 customizable input parameters: Direction of Opening Positions - Options for how to open positions: As per line description Always Buy Always Sell Description for Buy Position - The line description for opening Buy positions (default is Buy); Description for Sell Position - The line description for opening Sell positions (default is Sell); Inactive Line Style - The style of the inactive line; Expert Magic Number - A unique identifier for positions opened upon intersection; Lots - The volume of positions to open; Stop Loss in Points - The Stop Loss for a position in points; Take Profit in Points - The Take Profit for a position in points; Price Slippage - Maximum allowable slippage when opening a position; Multiplier for Stop Orders - Spread multiplier used for calculating the proper distance for stop orders (*). Environment Update Wait Time (in seconds) - Time to wait for a trading environment update (**); Number of Attempts to Check Environment State - Attempts to get an accurate trading environment (***); Log Messages - Option to log messages about line intersections (Yes/No). * For Stop Loss and Take Profit orders (as well as pending orders), there’s a minimum allowed distance for placing such orders - StopLevel. Stop Loss and Take Profit cannot be placed closer than this distance to the market price. If StopLevel is zero, it doesn’t mean it’s absent; it simply means it’s floating. This parameter allows you to customize the spread multiplier used to calculate the minimum distance for placing stop orders. ** When an order is sent to the server, delays in execution may lead to incorrect counts of market positions. If an “undefined” state is detected, the EA will wait for the specified seconds and then re-check the environment. *** The number of waiting periods within one tick can be set in the EA parameters. After exhausting the allowed attempts to get an accurate environment, the EA will exit processing and wait for the next tick. It will attempt to recheck on the new tick if the trading environment hasn’t updated by that time.

2018.04.19
Unlock Trading Success with the BHS System for MetaTrader 5
MetaTrader5
Unlock Trading Success with the BHS System for MetaTrader 5

Meet the Creators: Yuri is the mastermind behind this innovative system, with the mq5 code crafted by barabashkakvn. The BHS System is a powerful Expert Advisor that identifies the nearest upper and lower "round" price levels based on a defined Step of the "round" number. If you're curious about how these calculations work, simply comment out the line in the OnDeinit function: //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason)   { //--- how Math() function works:    return; } When you unload the EA from the chart, you'll see an example printed in the Experts tab. The EA evaluates the current price position relative to the iAMA (Adaptive Moving Average) indicator to set initial pending orders. If the Close price of bar #0 is above the indicator, a pending Buy Stop order is placed at the upper round price. If the Close price of bar #0 is below the indicator, a pending Sell Stop order is placed at the lower round price. Each pending order has a defined lifetime, which is calculated by adding the Life time of the pending order (in hours) to the last known server time. The BHS System also implements separate trailing methods for both BUY and SELL positions, allowing customization through Trailing Stop BUY and Trailing Stop SELL. Input Parameters Lots - volume; Stop Loss BUY - stop loss for the Buy Stop order; Stop Loss SELL - stop loss for the Sell Stop order; Trailing Stop BUY - trailing stop for Buy positions; Trailing Stop SELL - trailing stop for Sell positions; Step of the "round" number - the step value for the round price; Life time of the pending order (in hours) - pending order life time in hours; AMA: Period of calculation - AMA period; AMA: Period of fast MA - fast moving average period; AMA: Period of slow MA - slow moving average period; AMA: Horizontal shift - horizontal shift of the indicator; AMA: Type of price - price type used for the indicator calculation; Magic Number - unique identifier for the EA. For optimal results, this system has been tested on the EURUSD pair using the H1 timeframe:

2018.04.19
Unlocking the Power of SerialMA_EA: Your Guide to Trading Success on MetaTrader 5
MetaTrader5
Unlocking the Power of SerialMA_EA: Your Guide to Trading Success on MetaTrader 5

Hey fellow traders! Today, let's dive into the world of the SerialMA_EA, a powerful Expert Advisor designed for MetaTrader 5. This EA takes advantage of the SerialMA indicator to help you navigate the markets with ease. So, how does it work? The EA continuously adjusts the calculation period of the indicator, starting from the moment its line intersects with the price. Once it hits that intersection again, the calculation resets to the minimum value. It’s pretty slick! Trading Signals Made Simple Here's how the EA generates signals: If the closing price of the candlestick on the signal bar is above the indicator line, and the previous bar's indicator point was on the line, that’s your cue to open a long position. Conversely, if the closing price is below the indicator line, it’s time to consider a short position. Position Opening Modes The SerialMA_EA offers two modes for opening positions: Open one position for each signal, closing any existing opposite position. Only one position can be open in one direction at a time. The first signal opens the position, and if there's an opposing signal, the EA will close it before opening the new one. Please note: This EA is tailored for hedging accounts. If you try to run it on a netting account, you’ll get a warning, and the EA will shut down. To get the most out of the SerialMA_EA, make sure to save the compiled indicator file SerialMA.ex5 in your terminal's standard indicators folder (Your terminal directory\MQL5\Indicators). Customizable Features This Expert Advisor allows you to: Enable or disable long/short positions Reverse signals to open a sell instead of a buy and vice versa Set stop loss and take profit values in points If you input invalid Stop Loss and Take Profit values, the EA will adjust them to the minimum StopLevel permitted for the symbol. The same goes for lot sizes—if they’re too large, the EA will scale them down. If there's not enough balance for even the minimum lot, the signal will be skipped. Heads up: This EA is mainly for training purposes! Input Parameters The SerialMA_EA comes with 12 input parameters: Experts magic number - a unique ID for the EA's positions; Mode of opening positions - decide how you want to manage your trades; Long positions enabled - toggle this to allow long trades; Short positions enabled - toggle this for short trades; Reverse trade - choose to reverse signals if needed; Lots - set your position size; Stop loss in points - specify your stop loss; Take profit in points - set your take profit; Slippage of price - max allowable slippage; Multiplier spread for stops - customize spread multiplier for stop orders; Waiting for environment update (in seconds) - time to wait for environment updates; Number of attempts to get the state of the environment - set how many tries to get accurate market data. Note: There’s a minimum distance required for placing Stop Loss and Take Profit orders, known as StopLevel. If StopLevel is zero, it’s not absent; it just means it’s floating, which could be equal to the spread or even double the spread. Important: If the EA detects a delay in executing a trading order, it will wait for the specified seconds before checking the environment again. The strategy was tested with the default settings between January 4, 2017, and February 9, 2018, but unfortunately, the results were underwhelming. However, when tested in reverse mode, the outcomes improved significantly. Since this EA uses a dynamically calculated moving average, there aren’t any parameters to optimize just yet. But feel free to brainstorm ideas on what features you’d like to see added—maybe a trailing stop could be a good addition! Fig.1,2 Testing results.

2018.04.19
Unlock Trading Potential with OpenTime 2: Your MetaTrader 5 EA Upgrade
MetaTrader5
Unlock Trading Potential with OpenTime 2: Your MetaTrader 5 EA Upgrade

If you're looking to take your trading game to the next level, the new OpenTime 2 is a must-have upgrade from version 1. This Expert Advisor (EA) is designed specifically for MetaTrader 5, and it's packed with new features that can help enhance your trading strategy. What's New in Version 2 This EA now allows you to set two distinct time intervals for opening positions. You can specify the days of the week when trading is permitted. For each time interval, you can customize the following parameters: Trading type: BUY or SELL Stop Loss Take Profit It’s worth noting that the same lot size and trailing stop function apply across both intervals, with the EA limited to one open position per interval. A unique magic number is generated for each time interval. You can set the magic number for interval #1 directly in the input parameters: input ushort InpTakeProfitTwo = 90; // TakeProfit for time interval #2 (in pips) input string AdvisorOptions = "Advisor Options"; input ulong m_magic = 714479490; // MagicNumber for time interval #1 This magic number is stored in the internal m_magic_one variable, while the magic number for interval #2 is saved in m_magic_two, which is just one unit higher: //+------------------------------------------------------------------+ //--- #define m_magic_one m_magic #define m_magic_two m_magic_one + 1 //--- #include <Trade\PositionInfo.mqh> Input Parameters Positions Closing Options: Use Closing Time Interval #1 - Enable/disable closing by time for interval #1; Closing Time Interval #1 (ONLY hour:minute!) - Specify the time to close a position for interval #1; Use Closing Time Interval #2 - Enable/disable closing by time for interval #2; Closing Time Interval #2 (ONLY hour:minute!) - Specify the time to close a position for interval #2; Trailing Stop ("0" -> trailing OFF) (in pips) - Set the trailing stop function; 0 disables it; Trailing Step (in pips) - Define the trailing step value. Positions Opening Settings: Trade on Monday - Enable/disable trading on Monday; Trade on Tuesday - Enable/disable trading on Tuesday; Trade on Wednesday - Enable/disable trading on Wednesday; Trade on Thursday - Enable/disable trading on Thursday; Trade on Friday - Enable/disable trading on Friday; Opening Start Time Interval #1 (ONLY hour:minute!) - Define the start of time interval #1; Opening End Time Interval #1 (ONLY hour:minute!) - Define the end of time interval #1; Opening Start Time Interval #2 (ONLY hour:minute!) - Define the start of time interval #2; Opening End Time Interval #2 (ONLY hour:minute!) - Define the end of time interval #2; Duration in Seconds - Set the operation duration; Type of Trade in Time Interval #1 ("true" -> BUY, "false" -> SELL) - Set the allowed trading type for interval #1; Type of Trade in Time Interval #2 ("true" -> BUY, "false" -> SELL) - Set the allowed trading type for interval #2; Volume Transaction - Specify the volume for the position to open; Stop Loss Time Interval #1 (in pips) - Set the Stop Loss for positions in interval #1; Take Profit Time Interval #1 (in pips) - Set the Take Profit for positions in interval #1; Stop Loss Time Interval #2 (in pips) - Set the Stop Loss for positions in interval #2; Take Profit Time Interval #2 (in pips) - Set the Take Profit for positions in interval #2. Expert Advisor Options: MagicNumber for Time Interval #1 (time interval #2 == MagicNumber + 1) - The unique ID for positions in interval #1; the magic number for interval #2 is greater by one. Check out the testing results for EURUSD on the M30 chart:

2018.04.19
First Previous 19 20 21 22 23 24 25 26 27 28 29 Next Last