Getting started

Welcome to PlugTrader, where empowering your trading journey is just a few clicks away. Whether you're a seasoned trader or just starting, our tutorials will guide you through the key features of PlugTrader, ensuring you make the most of its powerful capabilities.


PlugTrader consists of 2 services:
  • Creation of trading strategies.
  • Deployment of strategies.


Introduction

PlugTrader is a powerful software plugin designed for Metatrader 5 on Windows, revolutionizing your trading experience. This innovative tool empowers you to effortlessly create trading strategies without the need for prior knowledge. With over 1.3*10^23 possible combinations, PlugTrader's generator utilizes indicators, candle patterns, and seasonalities randomly to produce the most robust strategies.

Only the cream of the crop makes it through, thanks to the genetic algorithm and rigorous optimization criteria. PlugTrader ensures strategy reliability through Walk Forward Validation, eliminating concerns of over-optimization. It operates swiftly using OHCL price values, requiring only M1 data for validation and OHCL data.

Take control of your portfolio with PlugTrader's intuitive features. Visualize generated strategies, subject them to Monte Carlo tests, and analyze correlations between strategies. Customize your money management and risk preferences – whether fixed lots or percentages – and seamlessly manage multiple assets across various timeframes. PlugTrader goes beyond, offering key performance indicators, regular software upgrades, a personalized ranking formula, and more. Transform your trading strategies with PlugTrader and take charge of your financial journey.


Requirements

To unleash the power of PlugTrader, ensure your system aligns with the following prerequisites:

  • Operating System: Microsoft Windows 2008/7/8/10 or higher
  • Processor: SSE2-enabled processor (Pentium 4/Athlon 64 or higher)
  • RAM: 256 MB or higher
  • Hard Disk Space: 50 MB or higher

Please note that PlugTrader exclusively operates on the Microsoft Windows OS platform.


First Steps

To access the full suite of PlugTrader features, users must first register and select their account type. After email validation, users can log in, choose their license – either FREE, BASIC or PRO – each serving specific needs. The FREE license allows exploration of the software's potential, but with limitations.

Regardless, users are encouraged to test the software's capabilities. The FREE version caters to those uncertain about its functionality.


Download

To download the software, users can navigate to their profile and select License. Depending on the active license, a Download button will be available, providing seamless access to the chosen version.


Credentials

Broker connection

PlugTrader needs access to some data from your broker, which is why for certain features, you will be prompted to connect your broker account with PlugTrader.

You will be prompted to enter your broker account number (real or demo), password, and the broker server.
Ensure MetaTrader is closed on your computer before connecting.

License connection
Additionally, to access all the features of PlugTrader, you must enter your license if you have a BASIC or PRO account. To do this, go to the Overview page of the PlugTrader software and you will see a window where you can enter your license. You can find your license in PlugTrader.co > Your User Profile > License.


Generator

In the Generator section allows users to configure various parameters for the strategy generation process. This includes defining Trading Symbols, Leverage, Portfolio Balance, Training Data range, Period and other additional optional settings.

GENERATOR SETTINGS

Parameters
  • Symbols

    Select all the assets you wish to include in your portfolio.

  • Leverage

    Leverage for trading.

  • Period

    Trading timeframe for the strategy.
    Options: Various timeframes ranging from Monthly to M1 (Minute 1).

  • Training Data

    Amount of historical data in years that will be used to create the strategies.

  • Portfolio Balance

    Initial balance for the trading account in dollars.

Additional optional settings
  • Sample Validation

    IS-OOS Period refers to the process of splitting the data into an in-sample (IS) set for developing the strategy and an out-of-sample (OOS) set for evaluating its performance under previously unobserved conditions.

  • Variability

    Enable/disable random variability between strategies.

  • Seasonality

    Choose between All, Yes, or No for daily and/or hourly seasonality.

  • Order Type

    Choose between All, Longs, Shorts, or Both for order types.

  • Risk

    Choose between All, Volatility or Ratio(1:3) for risk calculation.

  • Indicator

    Select a specific indicator for strategy generation.
    Options: A variety of indicators to choose from.

    • All: Includes all available trading strategies.
    • Trend and Breadth: Utilizes trend analysis and market breadth indicators.
    • Band and Moving Average Crossover: Involves trading signals based on bands and moving averages.
    • Parabolic SAR, Moving Averages, and RSI: Combines Parabolic SAR, moving averages, and the Relative Strength Index (RSI).
    • ADX, MACD, and Zero Line Crossing: Incorporates Average Directional Index (ADX), Moving Average Convergence Divergence (MACD), and zero line crossing signals.
    • Moving Average and MACD Crossover: Uses signals generated by the crossover of moving averages and MACD.
    • Trend: Focuses on identifying and following market trends.
    • Trend and Volatility: Considers both trend analysis and market volatility.
    • Momentum and RSI: Relies on momentum indicators and the Relative Strength Index (RSI).
    • Moving Average Crossover: Based on signals produced by the crossover of different moving averages.
    • Engulfing Bullish & Bearish: Looks for bullish and bearish engulfing candlestick patterns.
    • Bearish One Black Crowe: A bearish candlestick pattern indicating a potential reversal.
    • Rising Window: Identifies a rising window pattern in price charts.
    • IBS (Internal Bar Strength): Analyzes the strength of individual price bars.
    • William Percentage Range: Utilizes the Williams Percentage Range indicator for market analysis.
Generate

Clicking the 🚀 GENERATE button submits the form for strategy generation.
A modal window will open, and you will need to wait until the main progress bar is complete to finish the generation.


Results

In the Results section, in the menu, you can explore and analyze the performance of trading strategies generated by the system. In this tutorial, we'll guide you through understanding the ranking and details provided for each strategy.


Ordered by %

Upon entering this section, you'll find a ranking of strategies based on their percentage return. This ordering helps you quickly identify the most successful and less successful strategies.

Step 1: Exploring Individual Strategies
  • Each strategy is uniquely identified by its corresponding number.
  • Strategies are categorized into:
    • Best: The top-performing strategy.
    • Good: Strategies that fall between the best and the worse.
    • Worse: The least-performing strategy.

For each strategy, gain insights into the following details:

  • Percentage Return: Indicates the percentage return achieved by the strategy, providing a quick overview of its profitability.
  • Total Trades: The total number of trades executed by the strategy, giving you an idea of its trading frequency.
  • Profit Factor: A key metric representing the relationship between gross profit and gross loss. Higher values suggest a more profitable strategy.
  • Net Profit: The net profit generated by the strategy, reflecting its overall financial success.
  • Profit Trades: The number of trades classified as profitable, indicating the strategy's ability to generate positive returns.
  • Drawdown: A measure of the strategy's risk, showing the maximum decline in the account's balance.

Viewing Strategy Graphs

  • Each strategy comes with a graphical representation of its balance versus time.
  • The "out-of-sample" period is highlighted in green, allowing you to visually identify the performance during this specific period.
Step 2: Downloading Strategy and Report
  • Config/Strategy (.set file): Detailed information about the strategy, including its specific parameters and settings.
  • Report (.htm file): Comprehensive report that provide in-depth analysis and insights into the strategy's performance (default Metatrader Report).

Ordered by Ranking

In this section you have the power to customize strategy rankings based on your preferences. In this section, we'll guide you through the process of setting weights, understanding the ranking formula, and exploring individual strategies.

Step 1: Set Your Ranking Weights
  • Adjust the weights for "Profit Factor" (w1) and "Gain/Drawdown" (w2) to customize the ranking formula
  • Apply Default or Custom Weights
Step 2: Explore Detailed Strategy Information
  • Each strategy is assigned a ranking based on the customized formula.
  • The ranking ranges from "Best" for the top-performing strategy to "Worse" for the least-performing strategy.
  • For each strategy, gain insights into percentage return, total trades, profit factor, net profit, profit trades, and drawdown. For more information read the previus specifications
  • The strategies are categorized as "Best," "Good," or "Worse" based on their ranking.
Step 3: Downloading Strategy and Report

For more information read the previus specifications


Analyzer

The following steps outline the process to follow in the Analyzer section.
This tool allows you to deeply analyze and gain insights from your Metatrader 5 trading reports, whether they are from PlugTrader or not. In any case, they have to be Metatrader 5 reports. This will also help you create a robust portfolio.


Uploading Reports

  1. Navigate to the "Upload & Update" section.
  2. Upload your .htm or .html reports by dragging and dropping them here, or by clicking to select.
  3. Click the Upload & Update button to initiate the analysis.
  4. To Delete a Strategy: Utilize the trash icon next to a strategy's name to remove it from the analysis.

Analyzing the Portfolio

Strategies Table

A table will be displayed with all the uploaded strategies, showing the details of each one. You will be able to sort them as you wish.

Portfolio Metrics
  • Total Return ($): The aggregate profit or loss across all strategies in the portfolio.
  • Volatility: Measures the variation in the portfolio's returns.
  • Average Daily Profit ($): Average profit earned per day.
  • Trades: Total number of trades executed.
  • Maximum Drawdown ($): The most substantial cumulative loss from a peak to a trough.
  • Winning Percentage: The percentage of profitable trades.
  • Profit Factor: Ratio of total profit to total loss.
  • Average Winning Trade ($): Average profit per winning trade.
  • Average Losing Trade ($): Average loss per losing trade.

A comprehensive chart showcases the combined equity curve of the portfolio over time.

Strategies Correlation Matrix

This heatmap visualizes the correlation between different strategies in your portfolio:

  • Color Coding:

    • Red: Strong negative or positive correlation (strategies move in opposite or equal directions respectively).
    • Orange: Intermediate negative or positive correlation (strategies move in opposite or equal directions respectively).
    • Green: Little to no correlation.

  • Scale:

    • Values closer to -1 or 1 indicate a stronger correlation.
    • Values closer to 0 indicate a weaker or no correlation.
Monte Carlo Simulation

The Monte Carlo Simulation provides a dynamic way to evaluate the performance of your trading portfolio by considering a range of potential market scenarios.

  • The black line corresponds to your initial portfolio, while other colors represent simulation results.
  • To pass the Monte Carlo test, ensure that 95% or more of the 50 simulations conclude with a positive balance. If the majority of simulations result in a positive balance, your portfolio is deemed robust and resilient.
Returns Chart

The Returns Chart enhance your trading strategy analysis. This chart visualizes the returns achieved with each individual trade, providing valuable information about the performance of your portfolio.

Assets Distribution Chart

The Assets Distribution chart provides a visual representation of the trading activity across different assets, aiding in the evaluation of portfolio diversification and asset-specific performance.

  • The chart displays a circular representation of the various assets present in your portfolio.
  • Each segment represents a different asset, and the size of the segment corresponds to the number of trades involving that asset.
🌠 Find The Best Combination

This feature allows you to automatically search for the best combination of strategies using our genetic algorithm.
The genetic algorithm optimizes the combination of strategies by seeking to maximize the R² value. It uses an initial population of solutions, iteratively selecting, crossing, and mutating the best solutions to find the combination that maximizes the model fit (R²).

Inputs
Population Size

Purpose: Determines how many solutions (individuals) are in each generation.

Adjusted Ranges:

  • Small: 20-50 individuals
  • Medium: 50-100 individuals
Number of Generations

Purpose: Defines how many times the algorithm will evolve the population.

Adjusted Ranges:

  • Few: 50-100 generations
  • Moderate: 100-200 generations
Number of Parents

Purpose: Specifies how many individuals are selected to mate and produce the next generation.

Adjusted Ranges:

  • 10-30 parents (In this case, we can consider a smaller range due to the problem size)
Mutation Rate

Purpose: Indicates how often random changes are made to individuals to maintain genetic diversity.

Adjusted Ranges:

  • Low: 0.01-0.05
  • Moderate: 0.05-0.1

🌠 Launch Strategies

To deploy the trading strategies you've developed on either a live or a demo account, you have two main options.
  • Self Launch: Use your own Virtual Private Server (VPS) to host and run the strategies.
  • Or/And
  • Auto Launch: Launch the strategies directly through PlugTrader.

Self Launch

You can use your own Virtual Private Server (VPS) to host and run the strategies. This approach provides you with control over the server environment and the MT5 terminal.

Steps

  1. Before starting, open the MT5 platform provided by your broker and log in using your credentials. Ensure you are in the terminal of MT5, logged into the specific demo or real account you wish to use.
  2. In your MT5 program, navigate to Tools > Options > Expert Advisors. Check the Allow WebRequest for the following URLs: box and add https://plugtrader.co/.
  3. Enable Algorithmic Trading (shortcut: Ctrl + E).
    Image
    Enable Algorithmic Trading
  4. If you have not done so before, you must register the MetaTrader 5 account number you wish to use. To do this, go to the Self Launch section on the PlugTrader website at the menu. Enter the account number there.
  5. At your broker's MetaTrader 5, if you haven't installed the PlugTrader Expert Advisor, place the PlugTrader.ex5 file in the Experts folder. To locate this folder, in the MetaTrader file explorer, go to File > Open Data Folder > MQL5 > Experts.
  6. At the MT5 terminal, drag the PlugTrader expert onto the chart of the desired asset and timeframe.
  7. In the expert's settings, (1) upload the .set configuration file downloaded for the specific strategy. (2) Ensure correct entry of your email and license in the respective inputs.
    (3) Adjust the risk management as you desire.
    • Fixed lot: fixed lot size, calculated from input A.
    • Balance percentage: lots are based on the specified percentage in input B.
    Image
    Money Management in the expert configuration

    Image
    Steps in the expert configuration

    Finally, (4) click Accept to launch the robot
Image
Final view, expert properly functioning and note the blue 'hat'.

Auto Launch Beta

In PlugTrader, we make it easy for you to upload and launch your trading strategies in just a few clicks, without worrying about the server. Depending on the package you choose, you'll be able to deploy more or fewer strategies.

Steps

  1. In PlugTrader website, go to Auto Launch.
  2. First, you'll need to click on Add Strategy and there add the .set file you want to launch. You'll also need to set a name for your strategy.
  3. Then, you'll have to launch the strategy through the launch button. Before launching, you'll be prompted to enter the strategy's "Period" and "Symbol". You'll also be asked to input your MetaTrader 5 account credentials with your broker. Remember that the credentials won't be stored.
  4. Finally, click on Submit to launch the strategy. After a few seconds, if everything is correct, your strategy will be launched. Otherwise, you'll receive an error message upon launch.

FAQ & Tips

When strategies are created, they are set with a fixed lot size and the minimum lot. For example, for EURUSD, they will be generated at 0.01 lots. However, if you want to change the risk of the strategy, you'll need to update the .set file. There are 2 options to do this:

Option 1
  1. Go to Edit config (.set) file at PlugTrader software menu.
  2. Load the Strategy's .set File
  3. Modify Money Management Parameters and Magic Number:
    • Adjust the inputs related to Money Management according to your needs, and the Magic Number input.
Option 2 (manually)
  1. Go to Your MetaTrader 5:
    • Open MetaTrader 5 on your computer.
  2. Drag the PlugTrader.ex5 Robot to the Chart:
    • Drag the PlugTrader.ex5 robot to the corresponding chart (symbol and timeframe).
  3. Load the Strategy's .set File:
    • At the bottom, go to the Input Parameters tab.
    • Right-click on the parameter table and select Load.
    • Choose the .set file of your strategy.
  4. Modify Money Management Parameters:
    • Adjust the rows related to Money Management according to your needs, and the Magic Number input.
  5. Save the Updated .set File:
    • Once you've made the changes, right-click and select Save.
    • This will be your new, updated .set file.

By following these steps, you can customize the risk management settings for your trading strategies to better align with your trading goals and risk tolerance.

When constructing your portfolio of automated trading strategies, it's essential to consider the cumulative Drawdown (DD) of all selected strategies. Drawdown represents the maximum loss experienced by a strategy from its highest point to its lowest point. To effectively manage risk and maintain portfolio stability, it's advisable that the cumulative DD of all strategies does not exceed 50% of your total account balance. This means that when adding up the individual DDs of each strategy within the portfolio, the combined maximum loss should not surpass 50% of the total available capital. Adhering to this limit helps mitigate the risk of significant losses that could compromise the integrity of the entire portfolio. Distributing risk in this manner among multiple strategies aids in preserving financial health and sustaining stable long-term performance. It's crucial to evaluate and adjust each strategy to meet this cumulative DD criterion, thereby ensuring prudent risk management and sustainable portfolio growth.
It is crucial to maintain correlation between strategies within the optimal range of -0.4 to 0.4 in an automated trading portfolio. This recommendation is based on the need for effective risk diversification. When strategies have low correlation (between -0.4 and 0.4), it means their movements tend to be independent or weakly correlated. This diversification reduces the likelihood that all strategies will experience significant losses simultaneously due to similar market conditions. For instance, if one strategy performs poorly due to a specific market event, strategies with low correlation are less likely to be adversely affected by the same event. Moreover, maintaining low correlation between strategies can contribute to more stable and balanced performance over time. Diversifying the portfolio with strategies that are not strongly correlated can help mitigate risk and maintain a more consistent growth trajectory. Therefore, when building your automated trading portfolio, it is advisable to assess and select strategies that exhibit moderate correlation, ideally between -0.4 and 0.4, to optimize risk management and maximize opportunities for returns.

Support

For further questions, including partnership opportunities, please email us to hello@plugtrader.co or contact us using our contact form.