Hi, I am trying to get the last deal type (Buy or Sell). I tried to find it in https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_chart_mode as I am using SYMBOL_VOLUME to get the last deal volume, but i couldn't find anything similar to that.
I also tried to find it in some topics, but the only thing I found was how to get my last deals types and I want anyone's deal type.
PositionsTotal will bring my opened positions, right?
I am trying to check anyone's deal, not mine.
SYMBOL_VOLUME will bring me information about the last deal, it doesn't need to be mine.
It does not specify a type of deal.
It can also specify the volume of the last deal.
Volume of the last deal
Or it can specify the min and max volume of the position you can take on.
Minimal volume for a deal
Maximal volume for a deal
Minimal volume change step for deal execution
Maximum allowed aggregate volume of an open position and pending orders in one direction (buy or sell) for the symbol. For example, with the limitation of 5 lots, you can have an open buy position with the volume of 5 lots and place a pending order Sell Limit with the volume of 5 lots. But in this case you cannot place a Buy Limit pending order (since the total volume in one direction will exceed the limitation) or place Sell Limit with the volume more than 5 lots.
I'm still not sure what you mean though.
I know it doesn't specify the type of the last deal and that's what I want.
Alain, it worked perfectly.
Thank you very much.