ma-shift Puria method
This software component for MetaTrader 5 is built to enhance the capabilities of your trading environment. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use ma-shift Puria method
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
The Expert Advisor is based on Puria method with a few changes.
The EA does not use the signal of intersection of fast and slow MAs, but uses their movement in one direction instead. The signal is confirmed by the crossover of MACD and its zero level and the slope of MA, which is measured as a number of pips per tick (parameter
Shift (vertically) between MA Fast and MA Slow
). The EA uses a traditional trailing stop function or the fractal-based trailing.
Optimization was performed using OHLC prices on the period of 2010, testing was performed in the Every Tick mode using data for 2010-2017:
Input Parameters
Manual lot: "true" -> use MANUAL lot, "false" -> use risk percent
- position volume calculation principle: manual or percent of free margin;
Lots
- manually set position volume;
Stop loss (in pips)
- stop loss value;
Take profit (in pips)
- take profit value;
Trailing stop, if use Fractal trailing - do not use Trailing (in pips)
- trailing stop value, the option should be disabled if fractal based trailing is used;
Trailing step (in pips)
- trailing step value;
Risk in percent for a deal from a free MARGIN
- risk per trade as percent of free margin;
Maximum number of positions in one direction
- sets the maximum number of open positions in one direction;
magic number
- Expert Advisor identifier;
Fractal trailing, if use Trailing stop - do not use Fractal trailing
- fractal based trailing, should be disabled if traditional trailing is used;
MA Fast: averaging period
- the averaging period of the fast Moving Average;
MA Slow: averaging period
- the averaging period of the slow Moving Average;
Shift (vertically) between MA Fast and MA Slow (in pips)
- minimum vertical distance between two Moving Averages;
MACD: period for Fast average calculation
- fast moving average period;
MACD: period for Slow average calculation
- slow moving average period.