Nachkommastellen – Automatische Rundung Points/Pips

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #180090 quote
    Rainer (RFW)Rainer (RFW)
    Participant
    Senior

    Nochmals Hallo,
    um die Darstellung von Nachkommastellen instrumentenabhängig zu automatisieren, z.B. Bitcoin/Dow von manchmal 4 Nachkommastellen auf 1, Forex 5 auf 4, löse ich dies lt. nachfolgendem kurzem Code, siehe auch Screenshot. Meine Frage hierzu, ob es analog der Bid/Ask-Einstellung für die Charts auch hierzu eine übergreifende Plattform-Einstellung oder ggf. eine bessere Lösung gibt?
    Danke vorab und schönen erfolgreichen Tag.
    Liebe Grüße
    Rainer

    If PointSize < 1 Then // RDI = Variable
    RDI = 4
    Else
    RDI = 1
    EndIf
    
    /// .... Round(Close,RDI) ///
    4Nachkommastellen.png 4Nachkommastellen.png
    #180116 quote
    NicolasNicolas
    Keymaster
    Legend

    Es gibt eine neue Anweisung, die die Dezimalstellen des aktuellen Instruments zurückgibt: DECIMALS

    Rainer (RFW) thanked this post
    #180184 quote
    Rainer (RFW)Rainer (RFW)
    Participant
    Senior

    Hallo Nicolas,
    vielen Dank, das hilft.
    Schönes Wochenende und liebe Grüße
    Rainer

Viewing 3 posts - 1 through 3 (of 3 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

Nachkommastellen – Automatische Rundung Points/Pips


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Rainer (RFW)Rainer (RFW)
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 10/21/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...