where was last trade made ; from bid or from ask ?
Hello,
It is a very novice question, but for me is very hard. I want to find from where was last trade made; from BID price or from ASK price.
Thank you in advance for your reply !
If it was a Buy it was from Ask, if it was a Sell it was from Bid, vis versa when closing the trades . . . . . a Sell is closed with a Buy at Ask.
Sorry maybe my question was not so clear. I want to check in mql5 language if last trade was made from bid (or ask). How can I do it? In other words find if last trade was done at bid price or ask price. Hope now is clear!
Sorry maybe my question was not so clear. I want to check in mql5 language if last trade was made from bid (or ask). How can I do it? In other words find if last trade was done at bid price or ask price. Hope now is clear!
You mean if it is a sell or a buy ?
And one more specification: Is not about a trade in the past.
I want to use the code in an expert advisor, so I want to know in real time : "was the last trade a buy or a sell ?".
Sorry maybe my question was not so clear. I want to check in mql5 language if last trade was made from bid (or ask). How can I do it? In other words find if last trade was done at bid price or ask price. Hope now is clear!
And one more specification: Is not about a trade in the past.
I want to use the code in an expert advisor, so I want to know in real time : "was the last trade a buy or a sell ?".
- www.mql5.com
double Last() - See https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfolast
Hello,
It is a very novice question, but for me is very hard. I want to find from where was last trade made; from BID price or from ASK price.
Thank you in advance for your reply !