Translate MetaStock code

 

Hello,

 

I was wondering if someone could tell me how to translate the following into MQL4:

Mov(H-L,period,S)

 It's the simple moving average of 'H-L' with the parameter "period".

 That I understand.

 

What I don't is how to calculate it over "H-L"... 

 
svaningelgem:

What I don't is how to calculate it over "H-L"... 

See PRICE_MEDIAN
Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants
Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Price Constants - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: