Codes

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

This indicator calculates and displays the Euro Index and 2 definable moving averages. In order for it to work, the broker must provide prices for all the reference pairs, i.e. EURUSD, EURJPY, EURGBP, EURSEK, EURCHF

DXY Dollar Index for MetaTrader 4

This indicator calculates and displays the Dollar Index and 2 definable moving averages. Edited 18 September 2015 - updated link to official description and calculation from ICE Futures U.S

Forum

SymbolsTotal() problem?

So here is part of my program, in a function designed to loop through all the Symbols in Market Watch : Print ( "assetlist = " ,assetlist); bool selected = assetlist == "SELECTED" ? true : false ; Print ( "selected = " ,selected); if ( StringFind (assetlist, "," )< 0 ) number = SymbolsTotal

Coding valuewhen() too short for an article - lol

Introduction - the problem When developing an Expert Advisor, or an indicator, it is not uncommon that we want to find the value of a series x when series y last had a value z, or in other words when a condition was last satisfied. This is so common that other platforms and languages have developed

HELP REQUESTED - Conversion from MQ4 to MQ5 - Object properties setting

I am having difficulty with the following code: bool LabelCreate( const string name= "Label" , // label name const int x= 10 , // X coordinate const int y= 10 , // Y coordinate

Smoothed ADX on Heiken Ashi Bars (with thanks to TradingView)

TradingView calculates their DMI (equivalent to MT4 ADX) on the bars used, i.e. when you select Heiken Ashi bars for the price display, the Open and Close values for the ADX calculation are the modified HA values. In addition, their DMI takes an extra input, a smoothing period, by which the ADX line

Please help - iRSIOnArray

I am trying to plot the RSI of an indicator, "xxx.mq4", as follows: #property indicator_buffers 1 #property indicator_color1 Red #property indicator_width1 2 //---- buffers double ExtMapBufferCustomIndicator[]; double ExtMapBufferRSICustomIndicator[]; int i; string s= "xxx" ;

Help with array please

I wish to place external variables in an array. I have tried this: extern int Int1 = 0 ; extern string PString1 = "" ; extern string SString1 = "" ; extern int Int2 = 0 ; extern string PString2 = "" ; extern string SString2 = "" ; . . . string a [ 2 ] [ 3 ] = {