Forum

How to Distinct Symbols of Open and Pending Orders in MT5

Dear Experts, I want to get distinct list of symbols which has open or pending orders . My code is giving me the list of only open positions. Can you help me with modification so that it would get the symbols of both open and pending orders. Thank you in Advance! string SyMass[]; bool Find( string

Need help to convert the code into MT4

Hello, I want to print the list of symbols having open orders buy,sell and pending orders . I have a MT5 version of code but could not make it working in MT4. Would very much appreciate if you can help me to convert this code into MT4 version. Thanks. string SyMass[]; bool Find( string aSymbol) {

How to Create Object Label

Dear Experts! I have created object line to show me the highest price line. But I wanted to put some test label on the line which would move together with the line up or down but not getting idea how to do it. below is my object line code. Any guidance will be highly appreciated! void OnTick () {

CTrade vs MqlTradeRequest which one is the best and effective

Hi, I am just learning mql5 where I can see CTrade and MqlTradeRequest to open orders. I am bit confused which one of them should I use in my learning and codding? which one of them can be considered effective in terms of codding and execution?? Any feedback will be highly appreciated. Thanking you