iMA() is indicator handle.
Study the basis of MQL5 and practice.
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners - MQL5 Articles
- www.mql5.com
iMA() is indicator handle.
Study the basis of MQL5 and practice.
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners - MQL5 Articles
Just you not understand what I am trying to do
Hi, what I'm trying to do is I want to see historical bid price movement on every tick , Currently I using iMA and this is code that shows price closer that I am trying to do:
can anyone help?
In your code, the 'ma' variable is the indicator handle. No price normalization can be applied to the handle. Study the MQL5 Help - see how to create an indicator handle and how to get indicator values in MQL5.
Hi, what I'm trying to do is I want to see historical bid price movement on every tick, Currently I using iMA and this is code that shows price closer that I am trying to do:
can anyone help?
Please make it clear whether you are working with MQL5 or MQL4.
The above replies assume that you are working with MQL5 because you have not posted in the MQL4 section.
Thanks all what I mean is:
double mA; mA=iMA(NULL,0,1,0,MODE_SMMA,PRICE_CLOSE,0); // Near current price averaging mA= NormalizeDouble(mA,Digits);
This is what I wanted it works when PRICE_CLOSE is indicated with 0 bar
As you haven't answered my question
Please make it clear whether you are working with MQL5 or MQL4.
I will assume that you intended this for MQL4.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
As you haven't answered my question
I will assume that you intended this for MQL4.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
Ok its mql4 code above
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
can anyone help?