This is a discussion on Requests and Raw Ideas within the General Discussion forums, part of the Trading Forum category; Originally Posted by doc Dear Igor, I had checked the mod of my ea but I found an issue that ...
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???Code:static double bid_old = 0; bid_old = tick.bid; Print("bid_old :",bid_old);
Hi doc,
Try this ticks indicator for metatrader 5.
Follow my official trading theregulartrader blog
Follow my official trading theregulartrader blog
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
ticks__5.mq5
Last edited by doc; 05-13-2014 at 09:34 PM.
Bookmarks