I´m practicing on a ForexTime metatrader 5 demo account and i found a function that displays the direction of the volume (whether buy or sell) of the last tick. If you see the little red "circles" in the attachment you should understand where I´m pointing to. I have access to level 2 data and tried hard to figure out how the direction is calculated. Actually I want to write something that maybe can make use of this information but i don´t know to access it or how to calculate it for myself. Maybe someone could tell me? - or maybe there is something related to orderbooks that i don´t understand at all and there is something "readable" that teaches me how to do this?
Thank you and greetings
This information is provided by the broker. That's what level 2 data are for.
Anyway, Forex market is not centralized and these information are only about what happened at broker side.