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

Exp_NRTR_Duplex - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Exp_NRTR_Duplex - indicator for MetaTrader 5

Exp_NRTR_Duplex - indicator for MetaTrader 5

Exp_NRTR_Duplex - indicator for MetaTrader 5

Two identical trading systems (long and short positions) based on the indicator signal NRTR can be configured differently in one EA. For this purpose, all inputs of the EA are divided into two main groups:

 //+------------------------------------------------------------------------+
//|EA input parameters for long positions |
//+------------------------------------------------------------------------+
Input unit L_magic= Chapter 777 ; //L magic number
Enter double L_MM= 0.1 ; //L share of deposit in a transaction
Enter the margin mode L_MMMode=LOT; //L lot detection method
//+------------------------------------------------------------------------+
//|EA input parameters for short positions |
//+------------------------------------------------------------------------+
Input unit S_magic= Chapter 555 ; //S magic number
Enter double S_MM= 0.1 ; //S share of deposit in a transaction
Enter the margin mode S_MMMode=LOT; //S lot detection method

These two trading systems use different magic numbers and are absolutely independent of each other. Real financial markets are rarely symmetrical, so typically bullish and bearish trades require absolutely different parameters of the same trading system. For ease of setting up the EA, you should initially test only one of the two trading systems and disable the second trading system using the relevant switches.

 Enter Boolean L_PosOpen= true ; //L allows entry into long positions
Enter Boolean value L_PosClose= true ; //L allows closing of long positions

After setting up the first system, you should only enable and set up the second system.

In order for the EA to run, the compiled NRTR.ex5 indicator file must be located in \MQL5\Indicators folder.

Default EA inputs are used in the following tests. Stop Loss and Take Profit were not used in the test.

Exp_NRTR_Duplex - indicator for MetaTrader 5

Figure 1. Example trade in chart with symmetrical setup.

2016 GBPJPY H4 test results:

Exp_NRTR_Duplex - indicator for MetaTrader 5

Figure 2. Test results chart.

Exp_NRTR_Duplex - indicator for MetaTrader 5

Figure 3. Example trade with asymmetric setup on the chart.


Attachment download

📎 tradealgorithms.mqh (223.62 KB)

📎 nrtr.mq5 (9.91 KB)

📎 exp_nrtr_duplex.mq5 (18.52 KB)

Source: MQL5 #21183

Exp_NRTR_Duplex - Important points before using the MetaTrader 5 script

This page has been supplemented with structured instructions, focusing on the purpose of trading scripts, MT4/MT5 platform compatibility, testing procedures and risk control. Before downloading or deploying, it is recommended to first determine whether it is consistent with your own variety, cycle and account environment.

Suitable for who to use

  • Users who want to quickly screen trading scripts and are willing to do simulation verification first.
  • People who need to compare MT4/MT5 EAs, indicators, scripts or source code projects.
  • Traders who wish to record backtests, parameters and risk boundaries before placing a trade.

Testing and risk control suggestions

  • First verify the default parameters in the strategy tester or demo account, and then adjust the symbol, period, spread and trading period one by one.
  • Scalping, grid, martin, and high-frequency strategies should focus on observing maximum drawdowns, consecutive losses, slippage, and trading frequency.
  • It is not recommended to run any document directly on the real disk. At least observe the simulated disk performance for 2-4 weeks first.

FAQ

Can MT4 and MT5 be used interchangeably?
Usually cannot be used directly. EX4/MQ4 corresponds to MT4, EX5/MQ5 corresponds to MT5, and the source code needs to be compiled in the corresponding MetaEditor.

Is this resource guaranteed to be profitable?
cannot. EAs, indicators and scripts can only be used as trading tools, and the results depend on parameters, market environment, spreads, slippage and risk control.

What else can I continue to watch?
Forex EA download , foreign exchange indicator download , EA evaluation , MQL5 CodeBase .

English Search Notes

This page is also optimized for English search intent around Exp_NRTR_Duplex - MetaTrader 5 script . Related search terms include: trading script, MT4 script, MT5 script. Test any Forex EA, Expert Advisor, MT4/MT5 indicator, script or MQL source code with historical data and a demo account before live trading.

Verification code Refresh