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

EURX - Finally, the calculation of the Euro Index found - here it is - MetaTrader 4 Script - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

EURX - Finally, having found the calculation for the Euro Index - here it is - indicator for MetaTrader 4

EURX - Finally, having found the calculation for the Euro Index - here it is - indicator for MetaTrader 4

In 2009 I released the DXY (USD Index) indicator which was well received and downloaded several times in English and Russian versions. Now that the definition of the Euro Index is found, I submit it for community use and comment.

Definitions can be found at: Forex Limited

EURX - Finally, having found the calculation for the Euro Index - here it is - indicator for MetaTrader 4

//+------------------------------------------------------------------+
//| euro index.mq4 |
//| Copyright © 2015, Andy Thompson |
//| Email to: andydoc1@googlemail.com |
//+------------------------------------------------------------------+
#Property Copyright "Copyright © 2015, Andy Thompson"
#property association "Email to: andydoc1@googlemail.com" #property strict #property -indicator_separate_window
#Property indicator buffer 3
#PropertyIndicator_color1 red #PropertyIndicatorWidth1 2
#PropertyIndicator_color2 yellow #PropertyIndicatorWidth2 1
#PropertyIndicatorStyle2 1
#PropertyIndicator_color3 Lime #PropertyIndicatorWidth3 1
#PropertyIndicatorStyle3 2
//---- buffer
Double ExtMapBuffer1[]; Double ExtMapBuffer2[]; Double ExtMapBuffer3[];
integer i; external integer Short_term_SMA_period = 20 ; external integer long_term_SMA_period = 40 ; //int winind;
//+------------------------------------------------------------------+
//|Custom indicator initialization function |
//+------------------------------------------------------------------+
integer_initialize ()
  { //---- indicator set index style ( 0 , draw line );
Set index buffer ( 0 ,ExtMapBuffer1);
  setindexlabel( 0 , "lilac" );
  Set index style ( 1 , draw line );
Set index buffer ( 1 ,ExtMapBuffer2);
  Set index label ( 1 , short_SMA_period + "SMA" );
  Set index style ( 2 , draw line );
Set index buffer ( 2 ,ExtMapBuffer3);
  Set index label ( 2 ,long_term_SMA_period+ "SMA" );
  Indicator abbreviation ( "Euro Index: EURX/" + short-term_SMA_period + "SMA/" + long_term_SMA_period+ "SMA" ); //---- Return ( 0 );
  } //+------------------------------------------------------------------+
//|Customized indicator initialization function |
//+------------------------------------------------------------------+
integer deinitialization()
  { //---- Return ( 0 );
  } //+------------------------------------------------------------------+
//|Custom indicator iteration function |
//+------------------------------------------------------------------+
integer start()
  {
Integer counted_bars=IndicatorCounted();
if (countbar < 0 ) return (- 1 );
if (number of bars > 0 ) counted_bars--;
integer limit = bar -counted_bars;
if (counted bars == 0 ) limit -= 1an>+long_term_SMA_period; //---- main loop for (i = 0 ; i<limit; i++) { ExtMapBuffer1[i] = 34.38805726 * mathpack (iClose( "EURJPY" , 0 ,i), 0.3155 ) * MathPack (iClose( "EURJPY" , 0 ,i), 0.1891 )* mathpack (iClose( "EURGBP" , 0 ,i), 0.3056 ) * MathPack (iClose( "EURGBP" , 0 ,i), 0.0785 ) * MathPack (iClose( "EURGBP" , 0 ,i), 0.1113 ); } for (i = 0 ; i<limit; i++) { ExtMapBuffer2[i]= 0 ; ExtMapBuffer3[i]= 0 ; for ( integer z= 0 ; z if(z  // - - Return ( 0 ) when completed; } //+------------------------------------------------------------------+


Attachment download

📎eurx.png (214.72 KB)

📎 eurx.mq4 (6.55 KB)

Source: MQL5 #13862

EURX - Finally, the calculation of the Euro Index is found - here it is - Important points before using the MetaTrader 4 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 EURX - Finally, found the Euro Index calculation - here it is - MetaTrader 4 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