Platform PRT v11.1 – 1.8.0_202 with IG.
I used to use, without any problems, inside my probuilder indicators some symbols like the following:
▲ ▼ © ◦
(the last one for example was used in this indicator if you need to test on you own chart)
It’s a week that they are not plotted correctly on my charts, see attachment.
I think PRT has changed in one of the last updates the used charset encoding used inside of the drawtext method for charts and now those symbols are completely messed up…
- Do you all have the same problem on your platforms?
- If it’s a common problem, what is the current charset used? Knowing that I’ll find a substitute char that fits my needs.
- I have made many try and even chars from ASCII extended gives me problem in this moment. Just the 7bit ASCII seems a little bit limiting, I hope it’s not like that
I think it happens since one of the last updates of February. Previously I already had the v11.1 and everything was fine…
I do not have that problem on any version of the platform (see picture attached).
Are you on MAC?
I confirm same problem for me too during past few days, some special characters don’t work anymore (and I’m on PC, so not mac related)
I would add I only had this too on IG prt though, I just copied the indicator I noticed it on from IG prt account to the PRT trading account with Interactive Brokers, and it’s OK there (all on PC’s).
Could you test the below code please?
drawtext("▲ ▼ © ◦",barindex,0,dialog,bold,15)
return
Works on PRT trading premium v11 feb.19th version
Works on IG PRT real account v11 jan.26th version
Doesn’t work on IG demo v11 feb.24th version
Yes, I confirm that I have the same behaviour of Noobywan on IG (even tested on PC with “drawtext(“▲ ▼ © ◦”,barindex,0,dialog,bold,15)”):
Works on IG PRT real account v11 jan.26th version
Doesn’t work on IG demo v11 feb.24th version
Yes, but still working with Linux. Anyone with a MAC for testing please?
BTW, I confirm that the problem is spotted and will be shortly fixed, thanks for your help.
Just tested on my Mac too.
Tested both Demo and Premium with IG.
I can tell that on the Mac all works correctly (the code above “drawtext(“▲ ▼ © ◦”,barindex,0,dialog,bold,15)” is correctly shown on charts for both the accounts demo/premium).
Ok, so that seems only related to Windows OS! Thanks a lot for your assistance.
Anyway I don’t know if writing it here can help someone in the PRT development team group, but I think that they are using the “Windows-1252” (commonly mislabeled as ANSI).
You’ll see exactly my own incorrect symbols if, using this link to encode/decode online, you put the string “▲ ▼ © ◦” and then encode with “UTF-8” and decode with “Windows-1252”.
A quick fix has been deployed, need a fresh restart to get it.
Just tried and… it works, thanks