December 2, 2026

Improve Your Algos with Profectus Machine Learning

Profectus Machine Learning analyzes your trading strategy after a backtest and suggests specific rules to improve performance

Tips that Actually Work

‍
You finally have a trading strategy you like. You built the rules, ran it through years of historical data, and the backtest shows pretty good results. But there is always this one question on your mind: could it be better? 

That question used to mean more hours in front of the charts, trying one idea after another and hoping the next backtest would tell you something useful. Even within Profectus AI, it could mean days of building and testing new additions, hoping the strategy would improve. You could change the trading session, add an indicator, adjust the stop loss, or experiment with a new condition. But where should you start? 

This is exactly why we built Profectus Machine Learning. Instead of asking you to guess at the next improvement, the feature looks at the strategy and its historical results and suggests a concrete change you can test. You still decide what belongs in your trading plan. The difference is that you now have a data-driven starting point rather than a blank canvas.

Prefer to see it in action? Watch the full YouTube tutorial alongside this guide.

What is Profectus Machine Learning?

Profectus Machine Learning is an optional analysis feature inside the Profectus AI backtester. When you run a strategy with Machine Learning enabled, it examines historical performance and looks for additional conditions that can improve performance. The result is a specific trading rule that you can add directly to your EA in the Profectus AI builder.
We call these the Machine Learning Tips. These ML Tips are designed to:

-Either increase profitability
-Decrease drawdown

These tips will always aim to improve the trade-off between profitability and drawdown. The goal is to explore a more attractive balance between returns, risk and consistency, rather than chase one impressive number. 

The Profectus Machine Learning Algorithms test candidate ideas against historical data and, as explained in the video, use both in-sample and out-of-sample testing when evaluating suggestions. This measure is helpful against overfitting but still requires you to test the results using your own sound judgement. 

Improving an Actual Backtest 

To demonstrate the feature, we started with the Inside Bar Breakout template in Profectus AI. The strategy already had its own entry logic and trade management, and we were not looking to rebuild it from scratch. Instead, we wanted to see whether Machine Learning could spot an additional condition to improve the overall performance. The original strategy produced a profitable result. But the interesting part came after the test, when the new Machine Learning suggestion appeared beside the run. 

Profectus Machine Learning for Inside Bar Breakout
Machine Learning tips in Profectus AI

The Machine Learning Tip was surprisingly simple: 
‍
“Only trade when the current price is above the current 4h candle Open price”

The Machine Learning panel explains the historical trade-off behind that idea. The results:

-Keep 234 out of the original 414 trades
-Net profit decreases to 124% from the original 144%
-Maximum drawdown decreases to 10.9% from the original 18.1% 

At first glance, this might look like the strategy got worse because the profit decreased. However, looking at the decrease in drawdown changes this. Profit dropped by about 15% while drawdown decreased by 40%. That is a huge improvement in the profit-to-drawdown ratio.

Profectus Machine Learning Tip
A Machine Learning Tip example

This is a type of improvement ML Tip that results in a reduction of drawdown. This can be very valuable overall.

How to Use Machine Learning in Profectus AI

We have added the Machine Learning feature to the Profectus in-house backtester to make it as easy as possible for you to use. If you have never tried it before, you can start with one of the built-in strategy templates; in the video, we use the Inside Bar Breakout.

  1. Open your strategy. Create a project or apply the Inside Bar Breakout template from the strategy library.

  2. Click TEST STRATEGY. In the upper-right corner of the builder, open the Profectus backtest settings.

  3. Choose the test settings. For the example, select XAUUSD, the D1 timeframe, 1-minute OHLC data, and a long historical date range. Use comparable settings when you later test the improved version.

  4. Enable PAI Machine Learning. Tick the optional Machine Learning setting, then start the backtest. The test runs in the cloud while you continue working in the builder.

  5. Read the suggestion in Backtests. When the run completes, expand it in the Backtests panel. Runs with Machine Learning tips are marked distinctly, and you can review the suggestion alongside the profit, profit factor, and win rate.

  6. Decide whether to add and test it. Treat the tip as a specific hypothesis. If you want, add the tip to the strategy. A Machine Learning tip should always be added just before the trade execution blocks.

Add the Machine Learning Tip to Your Strategy

Implementing the improvement is a short process. In the Inside Bar Breakout project, we place an additional Trade Rule toward the end of each relevant entry branch, just before the order and trade-count checks. This lets the original strategy identify its usual setups first; the new rule acts as one final condition before the algorithm is allowed to continue.

Create a Trade Rule block and configure the comparison between the current market price and the opening price of the still-forming 4-hour candle. The exact example displayed in the video is:

Market Property (Ask Price) > Candle Open (H4, Candle ID 0)

The detail that matters is Candle ID 0. This refers to the current 4-hour candle while it is still forming. Candle ID 1 would mean the last completed 4-hour candle, which is not the same test. Even though the strategy itself is being backtested on the daily timeframe, the new rule explicitly looks at the H4 timeframe through Advanced Options.

Also important to note, the tips given are the same for the buy- and sell-side of your strategy. That means that we make no distinction between buy and sell trading logic for the ML tips. We simply add them to the strategy exactly as they are described. 

Building the ML Improvement tips in Profectus AI
Adding the Machine Learning tip to your EA

‍

The Power of Profectus Machine Learning

Once the new rule was added, we ran the strategy again with the same symbol, timeframe and historical testing settings. This is the moment that matters. A Machine Learning suggestion can sound convincing, but the next backtest tells you what your implemented version actually did.

In the comparison shown in the video, the original run had a net profit of +139.8%, a profit factor of 1.42, and a win rate of 37.9%. After adding the rule, the new backtest showed +142.9% net profit, a 1.72 profit factor, and a 40.0% win rate.

The results of the ML tip are:

-Higher Profit Factor (1.42 to 1.72)
-Lower Drawdown (18.1% to 10.9%)
-Higher win rate (37.9% to 40%)

Improve MT5 EA Backtests with Profectus Machine Learning
Improve the backtests with ML tips

Profit factor is particularly useful here. It measures gross profit divided by gross loss, so the change from 1.42 to 1.72 tells us that, within this historical sample, the strategy generated more gross profit for each unit of gross loss.

There is a temptation in strategy development to keep adding filters until the equity curve looks almost perfect. The problem is that a rule can fit historical prices exceptionally well without continuing to work in the future. That is why the in-sample and out-of-sample approach described in the video is relevant, and why we still recommend testing suggested changes on additional time periods, market conditions, and ultimately forward data.

Machine Learning is also not a feature that silently replaces your trading logic or automatically starts trading a new strategy. The suggestions are visible and understandable, and you decide whether to add them. That matters for automated trading, because you should always know what the algorithm is doing and why a trade can or cannot be opened.

Start Improving Your Strategies with Machine Learning

The best way to learn is to simply start doing!
Go over to Profectus AI, open a strategy from your library or a pre-built template, run a backtest with ML enabled, and simply see for yourself how you can improve the strategy. 

Then add the rule yourself and run the test again. Keep the original result, the proposed change and the new result side by side so that you can see exactly what improved, and what did not. The ML feature's purpose is to make the research process more efficient while keeping you in control of the final trading plan. 

Ready to try it? Open Profectus AI and test your strategy with Machine Learning

For more details, read the Machine Learning Help Center guide or watch the full video walkthrough.

Disclaimer: Backtests and Machine Learning suggestions are for research and educational purposes only. Historical performance, including out-of-sample tests, does not guarantee future results.

‍