implicit conversion from 'number' to 'string' warning

 
Hi all,

I have an EA that has been converted from mql4 to mql5. When I compile the code in MetaEditor I am getting an error that states this

implicit conversion from 'number' to 'string' londonv1.mq5 192 28
implicit conversion from 'number' to 'string' londonv1.mq5 259 28 

I believe that the issue has something to do with a coding error that may not have been an issue in mql4 but now poses a problem on mql5. File is attached.

I would really be grateful if there is an individual that would be willing to take a look at the problem and possibly rectify the problem. I am certain that it will be a very simple solution, though I am still building my skills and understanding of mql5 so I am not clever enough to fix it myself yet.

Thank you.
Files:
london V1.mq5  19 kb
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

The function PositionSelect() is used mainly for "netting" accounts and selects the open position based on the symbol's name (a "string" data-type) and not based on a position index (an "int" data-type).

It is a major logic flaw in your code and you will need to revise it. Consider using PositionGetSymbol() instead, but you will have to change your code accordingly.

PS! The purpose of forum is mainly to help users learn to code in MQL5 for themselves and answer their uncertainties, not to code things for them. If you need someone to fully review and correct your code for you, consider using the Freelance section.