get previous bid

To add comments, please log in or register
metbright
101
metbright  

Hi,

How do I get previous bid?

Thanks for help.

qjol
3195
qjol  

store it into Array or a var.

https://www.mql5.com/en/forum/130461

Boeing747
241
Boeing747  
metbright:

Hi,

How do I get previous bid?

Thanks for help.

for example, this code shows how to catch a previous bid
#property indicator_chart_window

 double i;
//----
int start()
  {
   double k=i; // k = previous bid, 
   i=Bid;      // i = current bid
   Alert(DoubleToStr(i,Digits),"     ",DoubleToStr(k,Digits));
   return(0);
} 
metbright
101
metbright  
Boeing747:
for example, this code shows how to catch a previous bid


hey thanks !
To add comments, please log in or register