All historical Bid price on every tick

 
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: 
double mA;
mA=iMA(NULL,1,1,0,MODE_SMMA,PRICE_MEDIAN,0); // Near current price averaging
mA= NormalizeDouble(mA,Digits);

can anyone help?

 

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

Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners
  • www.mql5.com
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
 
mfx123:

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

 
Buba Akhrakhadze :
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.

 
Buba Akhrakhadze:
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

 
Buba Akhrakhadze:

As you haven't answered my question

Keith Watford:

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.


 
Keith Watford:

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