Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Puria Method - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Puria method - expert for MetaTrader 5

Puria method - expert for MetaTrader 5

The idea came from Sergei Deev

mq5 code author - Bara Bashkakon

Trading system based on Puria method. It uses a fast iMA indicator (Moving Average, MA), two slow iMA indicators (Moving Average, MA) and an iMACD indicator (Moving Average Convergence/Divergence, MACD).

If Use all ticks is set to "true", the EA will run on every price tick; if set to "false", the EA will run only on the appearance of a new bar. The EA only opens one position at a time, so it can be used on both hedging and netting accounts.

The main idea of ​​this method is to open a sell position as soon as the fast moving average moves above the two slow moving averages and receives confirmation from the MACD. In this implementation, the fast MA should be used larger than the minimum allowed value of the slow MA:

 if (((MA1 # 1 - MA0 # 1 )/m_symbol.Point()> 0.5 ) && ((MA2 # 1 - MA0 # 1 )/m_symbol.Point()> 0.5 )) ***
if (((MA0 # 1 - MA1 # 1 )/m_symbol.Point()> 0.5 ) && ((MA0 # 1 - MA2 # 1 )/m_symbol.Point()> 0.5 )) ***

Added partial closing, moving to breakeven when minimum profit is reached, and calculation of initial lot size for a given risk.

When the specified minimum profit for the minimum profit step is reached, part of the position is closed - the position size (as shown in the nitrogen diagram) multiplied by the draw coefficient :

Puria method - expert for MetaTrader 5

EURUSD, M30 test:

Puria method - expert for MetaTrader 5


Attachment download

📎 puria_method.mq5 (83.85 KB)

Source: MQL5 #23250

Verification code Refresh