Round a contract Size

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200890 quote
    Kole96
    Participant
    New

    Hello everyone

    Can someone help me to round a contractsize with only 2 decimals?

    for example my contractsize is calculated automatically, but it gives me a lot of decimal number.

    thank you

    #200892 quote
    Nicolas
    Keymaster
    Master

    You can round with the chosen decimals, in your case round with argument “2”:

    lot = round(lotsize,2)
    Kole96 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Round a contract Size


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Kole96 @kole96 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
3 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/16/2022
Status: Active
Attachments: No files
Logo Logo
Loading...