Forum

TCP Connection Issue

Hello, I am trying to use the ZeroMQ library in order to send information on a TCP socket When I use my first line of ZMQ code in my Expert Advisor... ex: Context context( "PROJECT" ); ...and try to execute, I am asked by MT5 the following: I accept but nothing happens after that, I can the the same

Geting TP and SL from existing Positions

Hi, First post here, and sorry in advance because i will my problem is trivial... I have this code and don't understand why I get only "0" values for all the data I try to get back from my opened positions. If someone can help, thank you in advance. for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--)