Nachkommastellen – Automatische Rundung Points/Pips

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #180090 quote
    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) ///
    #180116 quote
    Nicolas
    Keymaster
    Master

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

    Rainer (RFW) thanked this post
    #180184 quote
    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.

Nachkommastellen – Automatische Rundung Points/Pips


ProBuilder Support

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder Support
Language: German
Started: 10/21/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...