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

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #162840 quote
    Daniele Maddaluno
    Participant
    Master

    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
    symbols.png symbols.png
    #162843 quote
    Daniele Maddaluno
    Participant
    Master

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

    #162860 quote
    Nicolas
    Keymaster
    Master

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

    Are you on MAC?

    TSLA-1-hour.png TSLA-1-hour.png
    #162864 quote
    JC_Bywan
    Moderator
    Master

    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 quote
    JC_Bywan
    Moderator
    Master

    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 quote
    Nicolas
    Keymaster
    Master

    Could you test the below code please?

    drawtext("▲ ▼ © ◦",barindex,0,dialog,bold,15)
    return
    #162868 quote
    JC_Bywan
    Moderator
    Master

    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

    Nicolas thanked this post
    #162925 quote
    Daniele Maddaluno
    Participant
    Master

    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 quote
    Nicolas
    Keymaster
    Master

    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 quote
    Daniele Maddaluno
    Participant
    Master

    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 quote
    Nicolas
    Keymaster
    Master

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

    Daniele Maddaluno thanked this post
    #162956 quote
    Daniele Maddaluno
    Participant
    Master

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

    JC_Bywan thanked this post
    #162958 quote
    Nicolas
    Keymaster
    Master

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

    JC_Bywan thanked this post
    #162960 quote
    JC_Bywan
    Moderator
    Master

    Just tried and… it works, thanks

    #163017 quote
    Daniele Maddaluno
    Participant
    Master

    Yes, it works thank you!

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

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


ProBuilder: Indicators & Custom Tools

New Reply
Summary

This topic contains 14 replies,
has 3 voices, and was last updated by Daniele Maddaluno
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/01/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...