Cut/ round digits after comma

Forums ProRealTime English forum ProBuilder support Cut/ round digits after comma

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • #86713

    Hi guys, i hope somebody can help me with the following issue.

    I wrote a little lot size calculator for my chart. The problem is i just want to get 2 digits after comma instead of 4. I tried a lot of different workarounds like “a=round(mashort*100)/100” and other calculations but nothing works for me.

     

     

    thanks in advance!

     

     

    #86722

    PRT does not allow to set a custom number of digits, so the only available option is to round numbers like you did!

    #86731

    You could do something like this and return the value as an text indicator of its own:

     

    1 user thanked author for this post.
    #86820

    good idea, i think that works! thx!

    #88209

    Question: Is it necessary to have PorOrder round calculated lot sizes or are they automatically adjusted/rounded upon position entry with IG? Does anybody know?

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

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