Round a contract Size

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200890 quote
    Kole96Kole96
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
4 years ago.

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