Hi doc,
I think it's not good idea to test tick data in the tester. Please try to test on the real market.
Regards,
Igor
Printable View
from this post: previous bid - MQL4 forum
This code doesn't work on mt5:
What I suppose to do for get the previous tick data of bid price??? :s:Code:static double bid_old = 0;
bid_old = tick.bid;
Print("bid_old :",bid_old);
Hi doc,
Try this ticks indicator for metatrader 5.
Hi Igor,
could you please take a look inside the code of ticks.mq5, there is something wrong...after sometime I get the error arrayoutofrange(76,16)
Best regardsCode:int max_index=ArrayMaximum(AskBuffer,startindex,depth);
max_index=max_index>=0?max_index:0;
int min_index=ArrayMinimum(BidBuffer,startindex,depth);
min_index=min_index>=0?min_index:0;
double MaxPrice=AskBuffer[max_index]+indent*_Point;
double MinPrice=BidBuffer[min_index]-indent*_Point;
doc
Attachment 6978