Do I get it right, that the purpose of the function void FastMethod() is to assign the enum type variable m_method_fast with a value from ENUM_MA_METHOD? Then why is the function FastMethod called nowhere in the further code?
edit: ah, ok .. I see; I answered before the second file (MA.mq5) was uploaded
Do I get it right, that the purpose of the function void FastMethod() is to assign the enum type variable m_method_fast with a value from ENUM_MA_METHOD? Then why is the function FastMethod called nowhere in the further code?
edit: ah, ok .. I see; I answered before the second file (MA.mq5) was uploaded
Apologies Chris70, I edited the question and added the indicator with my attempt and the expert advisor code.
Thanks for the timely response.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi All,
I want to make the Simple Moving Averages ( SMA5 and SMA34 as defined in the code uploaded) to apply the median price, but when I add it to my code it and test it using expert advice it still uses the close price not the median price.
Please help.
Thank you in advance