Description:
Have you ever wanted to streamline your trading strategy? The e-PSI(at)PROC EA for MetaTrader 4 takes a unique approach by initially placing virtual orders. If those virtual trades yield a profit, it transitions to executing real market orders. Each strategy comes with its own success rating, expressed as a percentage, and only strategies that exceed a certain threshold—what we call MinRating—are eligible to open market orders.
To enhance the scaling of new strategies within the advisor, some adjustments to the code were necessary. Additionally, we've incorporated two new 'neural' strategies from different developers and one based on the MA-Nike approach. The first neural network offers three methods for constructing the Perceptron, which includes:
- VarPerceptron 0: Perceptron based on Close/Open
- VarPerceptron 1: Utilizing iStochastic
- VarPerceptron 2: Based on the CCI
To top it all off, I've included my library for capital management, which you can find here.
Each strategy is assigned a unique Magic number derived from the base Base.Magic, allowing for easy management with the b-PSI@ICManager. It’s advisable to register all used Magics in the Allowed_Magics list using commas.
If you find yourself with an excess of strategies, don't worry! We've added a feature for Trailing Total Profit, which can operate in two modes: Classic and MA (TrailProfitByMA = TRUE). When using the latest mode, the advisor will set a minimum profit line for active trades, adjusting the stop-loss as the price moves.
Each strategy also allows for customizable trailing stop options with two settings: Tx.Var.STOP, where 0 is classic and 1 is based on MA. Additionally, take-profits can be set up in two different ways, based on whether Tx.TP is defined.
You can also manage the number of active trades through MAX_OrdersOnTC, and tailor the indicators to your preferred timeframe with Period.Indicators, which does not have to match the chart period.
For more detailed insights, feel free to check out the full article here.

In the archives, you'll find all the work associated with this library advisor. As I mentioned earlier, you can easily add your own strategies to this system. The number of strategies processed by the advisor is governed by the constant #define MAX_TC. You can specify the conditions for opening and closing orders and add them to the external configuration variables to make your strategy work seamlessly!
WARNING!
All external variables linked to the dimension of the quotes are set for 4-digit pricing. When you input a value for 4-digit pricing, the advisor automatically recalibrates based on the quotes received from the dealer!
Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Mastering Bullish and Bearish Harami Patterns with Stochastic in MT5
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies