No, I am talking about the last trade made on the market, does not matter if it is mine or someone's else...
OK, now your question makes sense maybe someone will have an answer for you, I have no experience of using Market Depth on MT5 so I don't know it's capabilities, sorry.
ROMAN5: I am not at my computer at the moment. Compare previous MqlTick and current MqlTick then you will know the different. I will test it on Monday when the market is open. I am curious too.
I added Ask, Bid, Last on my USDJPY H1 TF chart to check and test. Last price shows 0.000 all the time. I wonder why?
//+------------------------------------------------------------------+//| Expert tick function |//+------------------------------------------------------------------+voidOnTick()
{
string s = "";
MqlTick last_tick;
if (SymbolInfoTick(Symbol(),last_tick))
{
s = s + "Ask:"+DoubleToString(last_tick.ask,SymbolInfoInteger(Symbol(),SYMBOL_DIGITS))+
"; Bid:"+DoubleToString(last_tick.bid,SymbolInfoInteger(Symbol(),SYMBOL_DIGITS))+
"; Last:"+DoubleToString(last_tick.last,SymbolInfoInteger(Symbol(),SYMBOL_DIGITS))+
"; Volume:"+DoubleToString(last_tick.volume,SymbolInfoInteger(Symbol(),SYMBOL_DIGITS));
if(last_tick.ask==last_tick.last)
s = s + " --> It is a BUY" + "\r\n";
if(last_tick.bid==last_tick.last)
s = s + " --> It is a SELL" + "\r\n";
Comment(s);
}
}
If the last trade was made during the last tick . . . then yes. When was the last trade made ?
Perhaps there are some crossed wires in this thread . . . . Are you talking about all trades or just the trades you have placed ?
If the last trade was made during the last tick . . . then yes. When was the last trade made ?
Perhaps there are some crossed wires in this thread . . . . Are you talking about all trades or just the trades you have placed ?
No, I am talking about the last trade made on the market, does not matter if it is mine or someone's else...
No, I am talking about the last trade made on the market, does not matter if it is mine or someone's else...I am not at my computer at the moment. Compare previous MqlTick and current MqlTick then you will know the different. I will test it on Monday when the market is open. I am curious too.
I added Ask, Bid, Last on my USDJPY H1 TF chart to check and test. Last price shows 0.000 all the time. I wonder why?
I added Ask, Bid, Last on my USDJPY H1 TF chart to check and test. Last price shows 0.000 all the time. I wonder why?
no answer to this thread ?