System Trading

Unlock Trading Success with the AOCCI EA for MetaTrader 5
MetaTrader5
Unlock Trading Success with the AOCCI EA for MetaTrader 5

Idea by: Scriptor. MQL5 Code by: barabashkakvn. Meet the AOCCI Expert Advisor (EA) designed for MetaTrader 5! This handy tool leverages signals from the iCCI (Commodity Channel Index) and iAO (Awesome Oscillator) indicators, while also factoring in the current open prices from the last six bars, as well as the daily and hourly close prices for added accuracy. Key Inputs Lots: Position volume Stop Loss: Stop Loss in pips Take Profit: Take Profit in pips Trailing Stop: Trailing Stop in pips Trailing Step: Trailing step in pips For the CCI indicator, you can adjust the following parameters: CCI: Averaging period CCI: Type of price Additionally, the EA includes options to protect against unusually large candlesticks: Check for oversized candlesticks (n vs. n-1) Check for oversized candlesticks (n vs. n-2) Set to 1 if you want the angle close to 0 for the current initial bar number Don’t forget to set your magic number for tracking trades efficiently! Now, let’s take a look at some testing results using the "All ticks" mode across various symbols in the Market Watch: Symbol Pass Result Profit Expected Payoff Profit Factor Recovery Factor Sharpe Ratio Custom Equity DD % Trades USDCAD 5 3271.70 271.70 0.91 1.16 0.73 0.05 0 11.13 297 USDCHF 3 3145.29 145.29 0.78 1.10 0.35 0.04 0 13.84 186 GBPUSD 2 3015.10 15.10 0.05 1.01 0.02 0.01 0 16.90 308 EURUSD 0 3012.18 12.18 0.05 1.01 0.04 0.01 0 9.12 263 EURCAD 9 3008.58 8.58 0.02 1.00 0.02 0.00 0 11.59 382 USDRUB 12 3000.00 0.00 0.00 0.00 0.00 0 0.00 0 NZDUSD 13 2989.06 -10.94 -0.06 0.99 -0.03 0.00 0 12.47 176 USDJPY 1 2977.87 -22.13 -0.11 0.99 -0.06 0.00 0 12.33 195 EURJPY 8 2867.50 -132.50 -0.44 0.94 -0.22 -0.02 0 19.53 301 AUDUSD 4 2857.16 -142.84 -0.78 0.91 -0.24 -0.03 0 17.20 183 EURCHF 6 2853.93 -146.07 -0.88 0.90 -0.39 -0.03 0 12.12 166 GBPCHF 10 2725.23 -274.77 -0.97 0.90 -0.53 -0.03 0 17.18 283 EURGBP 7 2637.06 -362.94 -2.59 0.80 -0.70 -0.07 0 16.57 140 AUDJPY 15 2398.46 -601.54 -2.84 0.71 -0.78 -0.12 0 24.90 212 GBPJPY 14 2338.56 -661.44 -1.75 0.81 -0.77 -0.07 0 26.86 377 USDCNH 11 1401.68 -1598.32 -2.01 0.37 -1.00 -0.37 0 53.28 797 With these insights, you can start to see how the AOCCI EA performs across various currency pairs. Whether you're a seasoned trader or just starting, this EA could be a valuable addition to your trading toolkit!

2018.07.14
Maximize Your Trading with Exp_GStop_Tm: Your Go-To EA for MetaTrader 5
MetaTrader5
Maximize Your Trading with Exp_GStop_Tm: Your Go-To EA for MetaTrader 5

If you're looking for a reliable way to manage your trades, the Exp_GStop_Tm is an Expert Advisor (EA) designed for MetaTrader 5 that can really help you out. This EA automatically closes all open positions when either your total profits exceed your set Take Profit level or your total losses go beyond your designated Stop Loss level. Plus, it can close all positions after a specific time interval that you define in the settings. In essence, this EA acts as a global take profit and stop loss manager, ensuring that all your open positions are handled simultaneously. It even logs the actions taken, so you can keep track of any losses stopped and positions closed. Key Features of Exp_GStop_Tm Customizable Profit and Loss Levels: Set your preferred take profit and stop loss levels according to your trading strategy. Time-Based Trading: The EA allows you to close positions based on specific time intervals you set. Logging Actions: Every action taken by the EA is recorded in a log file for your reference. Setting Up Your EA Here’s a quick look at how you can configure your EA: //+----------------------------------------------+ //| Options to calculate the losses | //+----------------------------------------------+ enum StopMode   {    ENUM_PERCENT,     // losses and profits in percents    ENUM_CURRENCY     // losses and profits in the deposit currency units   }; //+----------------------------------------------+ //| Input parameters of the EA indicator | //+----------------------------------------------+ input StopMode LMode=ENUM_PERCENT;  // method of detecting losses and profits input double StopLoss=20.0;         // stop loss level input double TakeProfit=100.0;         // take profit level The EA also offers options to control trading based on specific time intervals: input bool TimeTrade=true; // Permission to trade by time intervals input HOURS StartH=ENUM_HOUR_0; // Trading start (Hours) input MINUTES StartM=ENUM_MINUT_0; // Trading start (Minutes) input HOURS EndH=ENUM_HOUR_23; // Trading end (Hours) input MINUTES EndM=ENUM_MINUT_59; // Trading end (Minutes) With two variables for start time and two for end time, you have complete control over your trading schedule. By default, the EA is set to trade around the clock, from 00:00 to 23:59. If you set the start time later than the end time, the EA will simply close positions the following day at your specified time. This can be a game-changer for your trading strategy. Give Exp_GStop_Tm a try and take the stress out of managing your positions!

2018.07.14
Maximize Your Trading with the Exp_GTakeProfit_Tm EA for MetaTrader 5
MetaTrader5
Maximize Your Trading with the Exp_GTakeProfit_Tm EA for MetaTrader 5

Unlocking the Power of Exp_GTakeProfit_Tm Hey there, fellow traders! If you're looking to streamline your trading strategy, let me introduce you to the Exp_GTakeProfit_Tm Expert Advisor (EA) for MetaTrader 5. This handy tool helps you manage your open positions by automatically closing them when your total profits hit a predefined Take Profit level or when the clock runs out. Think of it as your personal trading assistant, ensuring that you lock in profits and avoid leaving money on the table! How It Works This EA acts as a global take profit function, which means it can close all your open positions at once. Here’s how it breaks down: Profit Calculation: You can set the EA to measure profits in either percentages of your deposit or in the actual currency units of your account. Input Parameters: Customize your experience by adjusting the input parameters to fit your trading style. //+----------------------------------------------+ //|  Options to calculate the profits    | //+----------------------------------------------+ enum TakeMode   {    ENUM_PERCENT,     //profits in percents of the deposit    ENUM_CURRENCY     //profits in deposit currency units   }; //+----------------------------------------------+ //| Input parameters of the EA indicator | //+----------------------------------------------+ input TakeMode LMode=ENUM_PERCENT;     //method of detecting profits input double TakeProfit=100.0;         //take profit level input bool   TimeTrade=true;      //Allow trading in the specified interval Time Management The EA also lets you control when to trade. You can set specific time intervals during which trading is allowed: Start and End Times: Define the hours and minutes for when you want to start and stop trading. Full Control: If your start time is later than your end time, don’t worry! The EA will automatically close positions the next day at the specified time. input bool TimeTrade=true; //Permission to trade by time intervals input HOURS StartH=ENUM_HOUR_0; //Trading start (Hours) input MINUTS StartM=ENUM_MINUT_0; //Trading start (Minutes) input HOURS EndH=ENUM_HOUR_23; //Trading end (Hours) input MINUTS EndM=ENUM_MINUT_59; //Trading end (Minutes) Default Settings By default, the Exp_GTakeProfit_Tm EA is set to trade the entire session, starting at 00:00 and closing all positions at 23:59. This means you can sit back and let the EA do the heavy lifting for you throughout the day! If you're serious about maximizing your trading profits while minimizing the stress of manual management, the Exp_GTakeProfit_Tm EA is definitely worth a look. Happy trading!

2018.07.14
Maximize Your Trading Efficiency with the Exp_GStopLoss_Tm EA for MetaTrader 5
MetaTrader5
Maximize Your Trading Efficiency with the Exp_GStopLoss_Tm EA for MetaTrader 5

Introducing the Exp_GStopLoss_Tm EA If you're a trader looking to manage your risk effectively, the Exp_GStopLoss_Tm Expert Advisor (EA) for MetaTrader 5 could be a game-changer for you. This EA is designed to automatically close all open positions when total losses exceed a predefined Stop Loss level or when you need to wrap up trading beyond a specified time window. How Does It Work? The Exp_GStopLoss_Tm functions as a global stop loss mechanism, acting on all your open positions at once. When the EA takes action, it logs the details in a file, providing you with insights into your trading decisions. Key Features Loss Calculation Options: Choose how you want to measure losses, either in percentage or in your account's currency units. Time-Based Trading: You can set specific time intervals for when trading is allowed, ensuring you're only active during your preferred hours. Input Parameters //+----------------------------------------------+ //|  Options to calculate the losses    | //+----------------------------------------------+ enum LossMode   {    ENUM_PERCENT,     //losses in percents    ENUM_CURRENCY     //losses in deposit currency units   }; //+----------------------------------------------+ //| Input parameters of the EA indicator | //+----------------------------------------------+ input LossMode LMode=ENUM_PERCENT;  //method of detecting losses input double StopLoss=20.0;         //stop loss level With the above parameters, you can easily set your desired loss detection method and Stop Loss level. But that's not all! Time Control Features This EA also allows you to restrict trading to specific hours: input bool TimeTrade=true; //Permission to trade by time intervals input HOURS StartH=ENUM_HOUR_0; //Trading start (Hours) input MINUTES StartM=ENUM_MINUT_0; //Trading start (Minutes) input HOURS EndH=ENUM_HOUR_23; //Trading end (Hours) input MINUTES EndM=ENUM_MINUT_59; //Trading end (Minutes) You'll find that you can set both start and end times for trading, allowing for tailored trading sessions. By default, this EA is set to trade from 00:00 to 23:59, but you can adjust as needed. If your start time falls after the end time, don't worry! The EA will automatically close positions the following day based on your specified schedule. Conclusion With the Exp_GStopLoss_Tm EA, you can take control of your trading strategy and manage your risk like a pro. This tool is perfect for traders looking to streamline their operations and safeguard their investments.

2018.07.14
Maximize Your GBPUSD Trading with Alexav D1 Profit EA for MetaTrader 5
MetaTrader5
Maximize Your GBPUSD Trading with Alexav D1 Profit EA for MetaTrader 5

Idea by: Scriptor. MQL5 Code by: barabashkakvn. Are you looking to enhance your GBPUSD trading strategy? The Alexav D1 Profit Expert Advisor (EA) for MetaTrader 5 might just be the tool you need. This EA opens up four positions with varying Take Profit levels. Once one position is closed by Take Profit, the remaining positions are automatically adjusted to breakeven. This cycle continues until all positions are closed with profit. Input Parameters Lots - This defines the volume of each position. Moving Average: Averaging Period - Sets the period for the Moving Average indicator. RSI: Averaging Period - Configures the period for the RSI indicator. ATR: Averaging Period - Determines the period for the ATR indicator. Coefficient SL - This coefficient is used to calculate the Stop Loss (multiplied by the ATR value). Coefficient TP - This coefficient is used to determine the Take Profit (also multiplied by the ATR value). RSI Levels RSIUpperLimit - BUY positions can be initiated when the RSI is between the RSIUpperLevel and RSIUpperLimit, ensuring that the RSIUpperLevel exceeds the RSIUpperLimit. RSIUpperLevel - Similar to the RSIUpperLimit, this parameter helps define the range for opening BUY positions. RSILowerLevel - This sets the range for opening SELL positions, ensuring the RSILowerLevel surpasses the RSILowerLimit. RSILowerLimit - Defines the lower boundary for SELL positions in conjunction with the RSILowerLevel. MACD Settings Period for Fast Average Calculation Period for Slow Average Calculation Period for Averaging Their Difference MacdDiffBuy - The minimum difference required between the two bars to trigger a BUY signal. MacdDiffSell - The minimum difference required between the two bars to trigger a SELL signal. Additional Settings Magic Number - This is the unique identifier for the EA, allowing you to manage multiple EAs without confusion. Here's a sneak peek of the EA in action on the GBPUSD H1 chart:

2018.07.14
Mastering Candle Shadows: Your Go-To EA for MetaTrader 5
MetaTrader5
Mastering Candle Shadows: Your Go-To EA for MetaTrader 5

Idea by: Vlad. MQL5 code by: barabashkakvn. Introducing the Candle Shadows EA, designed specifically for your MetaTrader 5 trading platform. This expert advisor waits for the candlestick size to meet or exceed a specified Candle Size Minimum within a timeframe defined by The Position Can Be Opened Within N Minutes. Additionally, it takes into account the Length Opposite Shadow Max—where the lower shadow is used for Sell positions and the upper shadow for Buy positions. Here’s a crucial rule: only one position can be opened on the current bar. If your last trade was stopped out (where the DEAL_ENTRY_OUT property indicates DEAL_REASON_SL), the next position will open with a Factor of Reduction of Lot at SL—meaning it will be a smaller lot size to manage your risk better. There are also two nifty parameters worth noting: Position Lives N Bars: This sets how long a position can stay open in terms of bars before it's forcibly closed. Close the Profitable Position on Bar N: Automatically close a profitable position on bar N. Don’t forget, positions can only be opened within the hours specified by Start Hour and End Hour. You also have options for position size management: Constant position volume (set Lots > 0, and Risk = 0). Dynamic position volume (set Lots = 0, and Risk > 0). Plus, you have the flexibility to disable Stop Loss and Take Profit levels or even trailing if you want more control over your trades.

2018.07.14
Maximize Your Trading Success with Exp_XPeriodCandle_X2 for MetaTrader 5
MetaTrader5
Maximize Your Trading Success with Exp_XPeriodCandle_X2 for MetaTrader 5

If you're looking to ride the trend waves, the Exp_XPeriodCandle_X2 trading system is here to help. Built on the signals from two key indicators, XPeriodCandle, this system is designed to identify when to enter the market with precision. The first indicator gives you the lay of the land by determining the direction of the slow trend based on the color of the most recent candlestick. Meanwhile, the second indicator signals the perfect moment to make your trade when there's a color change in the candlestick. You'll get a solid signal when the following two conditions align: The signals from both the fast and slow trends agree. The direction of the fast trend shifts. Input Parameters for the EA //+-------------------------------------------------+ //| Input parameters of the EA indicator | //+-------------------------------------------------+ sinput string Trade="Trade Management";    //+============== TRADE MANAGEMENT ==============+ input double MM=0.1;              //Share of deposit in a trade input MarginMode MMMode=LOT;      //Method for determining lot values input uint    StopLoss_=1000;     //Stop Loss in points input uint    TakeProfit_=2000;   //Take Profit in points sinput string MustTrade="Trade Permissions";    //+============== TRADE PERMISSIONS ==============+ input int    Deviation_=10;       //Max price deviation in points input bool   BuyPosOpen=true;     //Permission to open long positions input bool   SellPosOpen=true;    //Permission to open short positions //+-------------------------------------------------+ //| Input parameters for the filter indicator | //+-------------------------------------------------+ sinput string Filter="SLOW TREND PARAMETERS";            //+============== TREND PARAMETERS ==============+ input ENUM_TIMEFRAMES TimeFrame=PERIOD_H6;                     //Chart period for the trend input uint Cperiod=5;                                          //Candlestick calculation period input int MA_Length=3;                                        //Smoothing depth input int MA_Phase=100;                                        //Smoothing parameter input uint SignalBar=1;                                        //Bar number to receive the entry signal input bool   BuyPosClose=true;                                 //Permission to close long positions by trend input bool   SellPosClose=true;                                //Permission to close short positions by trend //+-------------------------------------------------+ //| Input parameters of the entry indicator | //+-------------------------------------------------+ sinput string Input="ENTRY PARAMETERS";                         //+=============== ENTRY PARAMETERS ===============+ input ENUM_TIMEFRAMES TimeFrame_=PERIOD_M30;                   //Chart period for entry input uint Cperiod_=5;                                         //Candlestick calculation period input int MA_Length_=3;                                        //Smoothing depth input int MA_Phase_=100;                                        //Smoothing parameter input uint SignalBar_=1;                                        //Bar number to receive an entry signal input bool   BuyPosClose_=false;                               //Permission to close long positions by signal input bool   SellPosClose_=false;                              //Permission to close short positions by signal //+-------------------------------------------------+ The string parameters in the input settings help enhance the user experience and make navigating the EA easier. The indicators XPeriodCandle_HTF used in the EA are solely for convenient trend visualization during backtesting and won't operate in any other mode. To ensure your EA runs smoothly, make sure that the compiled indicator files XPeriodCandle.ex5 and XPeriodCandle_HTF.ex5 are located in the <terminal_data_directory>\MQL5\Indicators folder. Also, don't forget that the TradeAlgorithms.mqh library file enables the use of Expert Advisors with brokers offering nonzero spreads and allows you to set Stop Loss and Take Profit simultaneously with position opening. The testing results below were based on the default input parameters of the Expert Advisor. During these tests, Stop Loss and Take Profit were not applied. Here's a look at the performance on XAUUSD for the year 2016, utilizing a slow trend on Daily and entering via a fast trend on H1: Fig 1. Examples of deals on the chart Fig. 2. Testing results chart

2018.07.09
Harnessing the CaudateXPeriodCandle EA for MetaTrader 5
MetaTrader5
Harnessing the CaudateXPeriodCandle EA for MetaTrader 5

If you're looking to elevate your trading game, the CaudateXPeriodCandle might just be the tool you need. This trading system is built around a unique indicator that signals trades while allowing you to set a fixed holding time for your positions. Essentially, when a bar closes and a caudate candlestick appears, that's your cue to act! One of the standout features of this system is the ability to close your position automatically once it reaches your predetermined holding time. Here’s how you can set it up: input bool   TimeTrade=true;      //Enable position exit by time input uint   nTime=240;           //Open position holding time in minutes To ensure that your Expert Advisor (EA) runs smoothly, make sure the compiled CaudateXPeriodCandle.ex5 file is located in the <terminal_data_directory>\MQL5\Indicators folder. This is crucial for the EA to function as intended. Also, keep in mind that the TradeAlgorithms.mqh library file is a game-changer. It allows you to use EAs with brokers that have non-zero spreads, and lets you set Stop Loss and Take Profit parameters right when you open a position. If you're interested, you can check out more variants of this library here: Trade Algorithms. The testing results below were obtained using the default input parameters of the EA, with no Stop Loss or Take Profit applied during the tests. Fig. 1. Examples of deals on the chart When we tested this EA for 2016 with GBPUSD on the H4 timeframe, the results were impressive: Fig. 2. Testing results chart

2018.07.09
Unlocking Trading Success with Exp_WAMI_Cloud_X2 for MetaTrader 5
MetaTrader5
Unlocking Trading Success with Exp_WAMI_Cloud_X2 for MetaTrader 5

If you're into trend-following strategies, let me introduce you to the Exp_WAMI_Cloud_X2, a nifty trading system designed for MetaTrader 5. This system leverages signals from two powerful indicators: WAMI. The first indicator helps pinpoint the direction of the slow trend based on where the main and signal lines are positioned. The second indicator comes into play to signal when it's time to enter a trade, specifically when these lines intersect. A signal is generated as a bar closes, provided that two crucial conditions are met: Both the fast and slow trend signals align. The fast trend direction has shifted. Input Parameters for the Expert Advisor //+-------------------------------------------------+ //| Input Parameters of the EA Indicator | //+-------------------------------------------------+ sinput string Trade="Trade Management";    //+============== TRADE MANAGEMENT ==============+ input double MM=0.1;               //Share of deposit in a deal input MarginMode MMMode=LOT;      //Lot value detection method input uint    StopLoss_=1000;      //Stop Loss in points input uint    TakeProfit_=2000;      //Take Profit in points sinput string MustTrade="Trade Permissions";    //+============== TRADE PERMISSIONS ==============+ input int    Deviation_=10;       //Max price deviation in points input bool   BuyPosOpen=true;     //Permission to enter long positions input bool   SellPosOpen=true;    //Permission to enter short positions //+-------------------------------------------------+ //| Input Parameters of the Filter Indicator | //+-------------------------------------------------+ sinput string Filter="SLOW TREND PARAMETERS";            //+============== TREND PARAMETERS ==============+ input ENUM_TIMEFRAMES TimeFrame=PERIOD_H6;                     //1 Chart period for the trend input uint                 InpPeriodMA1      =  4             // First MA period input ENUM_MA_METHOD       InpMethodMA1      =  MODE_SMA      // First MA method input uint                 InpPeriodMA2      =  13            // Second MA period input ENUM_MA_METHOD       InpMethodMA2      =  MODE_SMA      // Second MA method input uint                 InpPeriodMA3      =  13            // Third MA period input ENUM_MA_METHOD       InpMethodMA3      =  MODE_SMA      // Third MA method input uint                 InpPeriodSig      =  4             // Signal MA period input ENUM_MA_METHOD       InpMethodSig      =  MODE_SMA      // Signal MA method input ENUM_APPLIED_PRICE   InpAppliedPrice   =  PRICE_CLOSE   // Applied price input uint SignalBar=1;                                        // bar number to receive the entry signal input bool   BuyPosClose=true;                                 // Permission to close long positions by trend input bool   SellPosClose=true;                                // Permission to close short positions by trend //+-------------------------------------------------+ //| Input Parameters of the Entry Indicator | //+-------------------------------------------------+ sinput string Input="ENTRY PARAMETERS";                         //+=============== ENTRY PARAMETERS ===============+ input ENUM_TIMEFRAMES TimeFrame_=PERIOD_M30;                   //2 Chart period for entry input uint                 InpPeriodMA1_      =  4            // First MA period input ENUM_MA_METHOD       InpMethodMA1_      =  MODE_SMA     // First MA method input uint                 InpPeriodMA2_      =  13           // Second MA period input ENUM_MA_METHOD       InpMethodMA2_      =  MODE_SMA     // Second MA method input uint                 InpPeriodMA3_      =  13           // Third MA period input ENUM_MA_METHOD       InpMethodMA3_      =  MODE_SMA     // Third MA method input uint                 InpPeriodSig_      =  4            // Signal MA period input ENUM_MA_METHOD       InpMethodSig_      =  MODE_SMA     // Signal MA method input ENUM_APPLIED_PRICE   InpAppliedPrice_   =  PRICE_CLOSE  // Applied price input uint SignalBar_=1;                                       // bar number to receive an entry signal input bool   BuyPosClose_=false                               // Permission to close long positions by signal input bool   SellPosClose_=false                              // Permission to close short positions by signal //+-------------------------------------------------+ Just a heads up: the string parameters in the code are there for better visualization in the input parameter window of the expert. The indicators, WAMI_Cloud_HTF, integrated into the EA, are primarily for visualizing trends in the Strategy Tester and won’t function in other modes. For the EA to run smoothly, ensure that the compiled files WAMI.ex5 and WAMI_Cloud_HTF.ex5 are located in the <terminal_data_directory>\MQL5\Indicators folder. Also, don’t forget that the TradeAlgorithms.mqh library file allows you to use Expert Advisors with brokers that offer a nonzero spread and the option to set Stop Loss and Take Profit at the same time as position opening. You can find more variations of this library at this link: Trade Algorithms. During the tests shown below, we used the default input parameters for the Expert Advisor. Notably, Stop Loss and Take Profit were not applied in these tests. Here’s a look at the testing results for 2016 on the EURUSD, with the slow trend analyzed on H4 and entry signals generated from the fast trend on M30: Fig 1. Examples of deals on the chart Fig. 2. Testing results chart

2018.07.09
First Previous 14 15 16 17 18 19 20 21 22 23 24 Next Last