drawtext: some characters are not working as they did in previous PRT versions

Forums ProRealTime English forum ProBuilder support drawtext: some characters are not working as they did in previous PRT versions

Viewing 15 posts - 1 through 15 (of 15 total)
  • #162840

    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…

    1. Do you all have the same problem on your platforms?
    2. If it’s a common problem, what is the current charset used? Knowing that I’ll find a substitute char that fits my needs.
    3. 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
    #162843

    I think it happens since one of the last updates of February. Previously I already had the v11.1 and everything was fine…

    #162860

    I do not have that problem on any version of the platform (see picture attached).

    Are you on MAC?

    #162864

    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)

    #162865

    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).

    #162866

    Could you test the below code please?

     

    #162868

    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

     

    1 user thanked author for this post.
    #162925

    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

    #162935

    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.

    #162948

    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).

    #162949

    Ok, so that seems only related to Windows OS! Thanks a lot for your assistance.

    1 user thanked author for this post.
    #162956

    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”.

    1 user thanked author for this post.
    #162958

    A quick fix has been deployed, need a fresh restart to get it.

    1 user thanked author for this post.
    #162960

    Just tried and… it works, thanks

    #163017

    Yes, it works thank you!

Viewing 15 posts - 1 through 15 (of 15 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login