-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of £ in the symbol name #13
Comments
It would help to see how you set it up. Could you add some screenshots of what conditions/actions you set and of what happens when they should get triggered? |
So, you get to 40 points in profit on that symbol, but the AP doesn't trigger? Looks like a bug to me. Which broker offers those £-symbols so I could test this? |
OK, this is on CMC Markets, MT4 SB accounts. You might need to appear as if you are in the UK, but maybe not for a Demo account. Let me know if you need help opening an account. This link may help you: https://oaf.cmcmarkets.com/en-gb/onboarding-start? |
That is weird! No, I am on the same CMC Markets server: both Demo and Live accounts of this type are on the same server. Both my Demo and Live accounts have a £ where you have the J in the symbol. Perhaps the PC that runs your MT4 does not have £ in their character set and has substituted it in MT4? Really not sure, but grasping at straws. The language on my server is actually set to English (United States) though. |
Got it. Once I switched my Windows' settings for non-Unicode display language to English UK, the pound symbol started appearing and I was able to reproduce this issue. Will look into it. PS: As a temporary workaround, you can switch that setting to something else on your PC, and it will probably switch to J and will start working in the AP. |
OK, great. Thank you! It appears that my Window's settings for displaying non-Unicode programs (system locale) are currently set to English (United States). So I'm not sure what I'd have to set it to. And I'm a little concerned it may break some things to change it now, but potentially at the weekend when the markets are closed. |
For some reason, after I recompiled Account Protector.mq4, it started working even with the £ character. Could you please try that? |
Oh cool. OK, I've recompiled it on my Live account and the £ is showing up now in the title bar correctly. I copied the file over another copy in my Demo MT4 and I noted that the file size has changed as a result of the recompilation. On my Demo account, I quickly got a notification as a result of ticking the Equity >= 0 and I've got some stuff in the logs: it looks like it is working. |
Would you like me to create a separate issue for this?
P.S. I had 'Ignore losing' turned on and 'Floating profit rises to points 1' as I was trying to make this trigger quickly for testing. |
Hi, I've been trying to get the Account Protector EA to work without success and I have noticed that it says
in the title bar and it occurred to me that maybe the problem is that the EA does not handle symbols with £ in them correctly, not just for the display of the title, but also in other places, e.g. the Filters, which causes the actions to not actually happen. Do you think this could be the issue?
The symbol in this case is actually EURUSD.£
I don't see anything in the Experts tab apart from it being initialized or uninit.
The text was updated successfully, but these errors were encountered: